profile does not have email information for some cases (Azure AD via OpenID Connect)
Koushik Ghosh
1
Reputation point
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
25,149 questions
Sign in to answer