Is it possible to have an alternative login id in azure b2c?

Stefan K 1 Reputation point


we are planning to use azure ad b2c to authenticate our customers.

At the moment our customers can either use their email + password OR their customer number + password to login to our apps.

Is this possible in azure ad b2c?

regards Stefan

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,722 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Arturo 46 Reputation points

    It's just a matter of configuring both values as identities for the customer. One would be the email address identity and the other the username identity.

    Are you accepting a different username other than email address and customer number at this moment?

    0 comments No comments

  2. Krumböck, Stefan 1 Reputation point


    thanks for the responce.

    Maybe I didn't understand you correct.

    We don't have two identities. It should be the same customer but the customer can either enter his customer number OR email adress to login. (the password and other attributes stay the same).


    0 comments No comments

  3. AmanpreetSingh-MSFT 56,466 Reputation points

    @Krumböck, Stefan Yes, this can be done by using custom policy in B2C. Please refer to this sample:

    With built-in user flows, you can either use username or email address for sign-in but not both.


    Please "Accept as answer" wherever the information provided helps you to help others in the community.

    0 comments No comments