Azure-Samples / active-directory-dotnet-graphapi-web

A .NET 4.5 MVC web app that demonstrates how to query the Azure AD Graph API using the Azure AD Graph Client Library
82 stars 68 forks source link

Users mail and otheremails always null or empty #53

Closed danpardo closed 7 years ago

danpardo commented 7 years ago

Hey, I am using graph api to perform operations on the company AD B2C tenant, and when I get the list of users, the user mail or othermails properties are null or empty, but in the token claims I can get the user mail without any problem. Any idea why I can't get mail information using graph api?

gsacavdm commented 7 years ago

Hey @danpardo, emails in Azure AD B2C are a bit tricky.

I'm closing this issue as this isn't an issue in the sample itself but rather a more open ended question. Follow up questions on this should be asked on StackOverflow (along with appropriate code snippets) with the azure-ad-b2c tag