How to get countryLetterCode from Azure AD

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

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

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,564 questions
No comments
{count} votes

Accepted answer
  1. answered 2020-09-17T07:44:40.267+00:00
    Vasil Michev 61,451 Reputation points Microsoft MVP

    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 additional answer

Sort by: Most helpful
  1. answered 2020-09-17T09:18:27.347+00:00
    VipulSparsh-MSFT 15,951 Reputation points

    @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.

    No comments