13,721 questions
Hi,
Use the beta version instead, this returns country as expected.
https://m365scripts.com/microsoft365/install-microsoft-graph-beta-module-discover-the-benefits/
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am able to get someone's country like this
https://graph.microsoft.com/v1.0/users/<userid>?$select=Country
or this
https://graph.microsoft.com/v1.0/users/<userid>/Country
I don't get the same information for the same users in Powershell. The Country property does not seem to be set.
PS> $User = Get-MgUser -UserId $SameUserid
PS> $User.Country
*-> nothing returned <-*
Hi,
Use the beta version instead, this returns country as expected.
https://m365scripts.com/microsoft365/install-microsoft-graph-beta-module-discover-the-benefits/