profile does not have email information for some cases (Azure AD via OpenID Connect)

Koushik Ghosh 1 Reputation point
2021-11-30T08:54:32.367+00:00

We are using Azure AD via OpenID Connect (using lib: http://www.passportjs.org/packages/passport-azure-ad/) which works fine for us in most of the cases. It returns the profile data as desired.

For a few users of our application, it does not return the email field(using profile.emails or profile._json.email) though and we are not sure how to debug this situation. Can you please help here?

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

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.