Azure AD B2C - username field not support Non alphanumeric characters

Balamurugan Mani 21 Reputation points
2023-01-13T14:59:31.3233333+00:00

Hello,

Azure AD B2C sign in not accepting Non alphanumeric characters in username field. We are using Azure AD B2C signIn user flow. So, we could not update that username regex.

User's image

French characters also not working
User's image

I do not find a solution to this issue in documentations provide by Microsoft and any demand was made in Azure Feedback. So, I write to you in order know if my problem has a solution and if it’s the case, how to configure my b2c tenant.

Azure Active Directory External Identities
{count} votes

Accepted answer
  1. Shweta Mathur 11,081 Reputation points Microsoft Employee
    2023-01-16T08:52:55.0966667+00:00

    Hi @Balamurugan Mani ,

    Thanks for reaching out and apologies for delay in response.

    Unfortunately, as of now Azure AD B2C only supports Alphanumerical characters, and you cannot signup or sign-in with usernames containing non-alphanumeric values.

    Currently username must begin with an alphabetical character or number and can only contain alphanumeric characters along the following symbols '_' and '-'.

    There is similar request raised in User forum regarding non-alphanumeric characters which you can vote it for future requirement for product team.

    Thanks,

    Shweta


    Please remember to "Accept Answer" if answer helped you.

    No comments

1 additional answer

Sort by: Most helpful
  1. Balamurugan Mani 21 Reputation points
    2023-01-25T11:56:30.1833333+00:00

    Hi,

    I used Azure B2C custom policy to achieve non alphanumeric characters not support in username field . Now able to login user which has any special characters including French characters also. SignIn flow working fine but in the forgot password page I am unable to read the user data when username field has Accent characters like (é,ë,è) . Other special characters it's working only for Accent characters it's not working.

    Please help me to fix this issue. Thanks in advance.

    No comments