Share via

No User email claim in access token

mohammed abdul salaam 0 Reputation points
2026-02-09T13:45:13.2266667+00:00

I am using azure Entra external for my b2c app and we have sign in with google set up done and I don't get the user email in the access token scopes earlier I got it as the preffered_username now I don't get it .

User's image

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rukmini 29,625 Reputation points Microsoft External Staff Moderator
    2026-02-09T14:11:14.8233333+00:00

    Hello @mohammed abdul salaam

    The missing email or preferred_username in the access token is a normal occurrence with Azure Entra External ID (B2C). User profile claims are no longer included by default in access tokens, which are now only intended for API authorization. preferred_username is not automatically mapped or issued when utilizing Google sign-in.

    To obtain the email:

    • For frontend apps, use the ID token; otherwise,
    • If your API calls for it, specifically include email as a optional claim in the app's Token configuration, or
    • For backend scenarios, retrieve it via Microsoft Graph (/me).

    If the resolution was helpful, kindly take a moment to click on 210246-screenshot-2021-12-10-121802.pngand click on Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.

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.