How to create new accounts with a part of email as username when my IDP only sends email as an value?

60 views 0

You can add a regular expression to the attribute name(email) to extract the username for the user.

Follow the below steps to add a regular expression to the username.

  • Navigate to User profile tab in the plugin.
  • Select Apply regular expression on the username field.
  • Add a regular expression (eg: ^.*?(?=@) ) in the Regular expression text field.
  • Save settings.

For example, you can use regular expression ^.*?(?=@) to extract demo from username demo@example.com

Was this helpful?