I'm using Microsoft Graph SDK with .Net to retrieve a specific user's information such as email address, first name, and last name.
I've created an applications under the Azure B2C and give it the following permissions:
Then, using a console app I've created a new GraphServiceClient and the the following code to retrieve a specific user:
Microsoft.Graph.User graphUser = await MicrosoftGraph.Users[id].Request().GetAsync();
It's returning the right user, but I couldn't retrieve any of the information I needed such as email address.
How can I ask the API the retrieve these info for me and not and empty user?