Issues Retrieving Claims Data After Azure AD SSO Configuration.

Darshan 40 Reputation points
2025-01-06T06:13:33.47+00:00

Hi,

Configured SSO using Azure AD in an ASP.Net MVC project, but after a successful login, the user email claim is coming back as blank. What could be causing this issue?

As shown in the attached image, claims data are null after user login.ClaimsNull

The login URL is shown in this screenshot:Screenshot 2025-01-06 113633

Additionally, here's another image showing the username claim as null:UsernameNull

Microsoft Security Microsoft Entra Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Akhilesh Vallamkonda 15,320 Reputation points Microsoft External Staff Moderator
    2025-01-06T21:12:54.7433333+00:00

    Hi @Darshan

    Thank you for reaching Microsoft Q&A Forum!

    I understand that email claim is not being returned after a successful login. It might be issue with the email attribute is not being mapped correctly.
    Go to the Microsoft Entra admin center and navigate to the Applications section-> Enterprise application Select the application that you have configured for SSO.

    Click on the Single sign-on option in the left-hand menu.

    Under the SAML Signing Certificate section, click on the Edit button for User Attributes & Claims.

    Check if the email attribute is mapped correctly. The email attribute should be mapped to the user.mail attribute in Entra ID.

    If the email attribute is mapped correctly, check the SAML token and see if the email attribute is present in the token. Also, review the detailed Audit logs and see if you find any insights on this issue. could you please collect the fiddler trace or browser capture and see the requesting is passing the right endpoint.

    0 comments No comments

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.