MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.13k stars 21.21k forks source link

How to include email claim when logging in via multi tenant office 365 #81103

Closed jamesbaxtersoftware closed 2 years ago

jamesbaxtersoftware commented 2 years ago

When using local account sign-in the following output claim is populated correctly.

<OutputClaim ClaimTypeReferenceId="signInNames.emailAddress" PartnerClaimType="email" />

However, when logging via office 365 I get a id & access token back but it does not contain the value of the logged in user's email. Is there any documentation on how to do this?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

JamesTran-MSFT commented 2 years ago

@JamesBaxterSoftware Thanks for your feedback! We will investigate and update as appropriate.

jamesbaxtersoftware commented 2 years ago

Any updates on this one? thanks

James-Hamil-MSFT commented 2 years ago

Hi @JamesBaxterSoftware , I'm so sorry for the delay in response. Have you selected the claims to include? This might be causing your issue if not. Please let me know if this does not fix your issue or if you have any questions.

Best, James

hjabbar61 commented 1 year ago

@JamesBaxterSoftware , did you find answer to this issue because I have exactly the same problem. Any hint or help would be greatly appreciated.

Thanks Hossein