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.

Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,650 questions
{count} votes

Accepted answer
  1. Shweta Mathur 27,711 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.

    0 comments No comments

2 additional answers

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.

    0 comments No comments

  2. 2023-02-06T22:13:18.0033333+00:00

    We also added custom policy and login functionality is working with accent characters in username but forgot password scenario isn't working. Any help appreciated!

    0 comments No comments