How to get the signin-name(username) as a claims after login

Korodi, Ashith Vijay 21 Reputation points
2022-03-09T11:32:11.91+00:00

We have a User ID signup and use the built in Azure B2C userflow (sign-up and sign-in)
During the sign-up we give the "username" input but the same is not returned as a claims.
and there is no option to select username to return as a claim.

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,677 questions
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,316 Reputation points
    2022-03-14T08:03:43.507+00:00

    Hi @Korodi, Ashith Vijay • Yes, the username claim is not returned by default and there is no out-of-box option to add it as an output claim to be passed to the application. As of now, the only options that you have is:

    1. Use custom policy rather than user flow.
    2. Create a custom attribute to capture username and then pass that in the token.

    You can also post feedback at https://feedback.azure.com to add this option in the user flows as well. These feedbacks are monitored by the product group for feature enhancements.


0 additional answers

Sort by: Most helpful