Azure saml Unique user identifier claim

Skip Hofmann 191 Reputation points
2021-10-20T15:25:01.67+00:00

Hello

In Azure the default User identifier claim is user.userprincipalname. For this particular application it wants samaccountname, not upn. How do i modify the default User
identifier claim to use user.Samaccountname instead of user.principalname ?

142191-image.png

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,971 Reputation points Moderator
    2021-10-21T08:42:11.57+00:00

    Hi @Skip Hofmann • Thank you for reaching out.

    You can simply click on Unique User Identifier (Name ID) and set the Source Attribute to user.onpremisessamaccountname. Optionally, you can change the Name Identifier format as well, as shown below:

    142276-image.png

    Once done, onpremisessamaccountname attribute will be used as Name ID in the SAML token, as highlighted below:

    142387-image.png

    -----------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    Was this answer helpful?

    0 comments No comments

Your answer

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