How to get countryLetterCode from Azure AD

Victor Guo 61 Reputation points
2020-09-17T06:55:23.33+00:00

Hi,

I was trying to retrieve the attribute that is mapped from the "c" attribute in on-premise AD to Azure AD. The attribute seems to be called "countryLetterCode" in Azure AD.

But I cannot find a way to get this "countryLetterCode" attribute via PowerShell. I've tried the followings.

  • Get-AzureADUser
  • Get-MsolUser
  • Get-User
  • Get-Recipient

https://learn.microsoft.com/en-us/azure/active-directory/hybrid/reference-connect-sync-attributes-synchronized#exchange-online
https://www.easy365manager.com/active-directory-and-office-365-attribute-naming-the-ultimate-guide/#AttributeTable

Any ideas?

Thanks,
Victor

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,617 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 90,876 Reputation points MVP
    2020-09-17T07:44:40.267+00:00

    It's not exposed in any cmdlet that I know of, and it doesnt look like the user entity in Graph uses it either.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. VipulSparsh-MSFT 16,201 Reputation points Microsoft Employee
    2020-09-17T09:18:27.347+00:00

    @Victor Guo Thanks for reaching out. The only place I can see that is for get-AADIntTenantDetails

    25536-1.png

    -----------------------------------------------------------------------------------------------------------------

    If the suggested response helped you resolve your issue, please do not forget to accept the response as Answer and "Up-Vote" for the answer that helped you for benefit of the community.

    1 person found this answer helpful.
    0 comments No comments