How to get username from Application claims in Azure B2C

Mattias Jarl 20 Reputation points
2024-08-30T17:03:18.6933333+00:00

Hi,

We have a user policy that I like the get username from loggin user.

Feels little over kill to create a custom policy just to get username?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,456 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vahid Ghafarpour 21,160 Reputation points
    2024-08-31T21:42:39.6066667+00:00

    Thanks for posting your question in the Microsoft Q&A forum.

    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.

    https://learn.microsoft.com/en-us/answers/questions/765324/how-to-get-the-signin-name%28username%29-as-a-claims-a

    ** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful **

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.