Not able to retrieve the user's country via Microsoft Graph
Hi guys,
My application is using Microsoft as an authentication provider. When a user signed in, I can use the Microsoft token to query to the endpoint https://graph.microsoft.com/v1.0/me, it returned the correct information of that user. However, when I tried to get that user's country, I tried with: https://graph.microsoft.com/v1.0/me?$select=country but the country is not returned in the response even that user has set the country on his profile to US already.
My application on Azure already has the permission User.Read which mean after a user signed in, I can query to get user information. Not sure what is incorrect here but I have been stuck at this point for a while. Looking forward to see some help here. Thank you all