question

ManishKungwani avatar image
0 Votes"
ManishKungwani asked sikumars edited

AzureAD PowerShell - how to read CountryCode, DistinguishedName, middleName, msExchRecipientDisplayType, msRTCSIP-Line and other attributes?

We are syncing on-prem AD to Azure AD using AzureADConnect and need to verify that the following attributes from on-prem AD are syncing successfully. Can you please help with the PowerShell commands, which can help with fetching these attributes?

  • cn

  • countryCode

  • DisplayNamePrintable

  • middleName

  • mS-DS-ConsistencyGuid

  • msExchImmutableId

  • msExchRecipientDisplayType

  • msRTCSIP-Line

  • msRTCSIP-OptionFlags

  • msRTCSIP-UserEnabled

I've already tried to fetch them using Get-AzureADUser, Get-Mailbox, Get-AzureADUserManager, Get-MsolUser.

azure-active-directorywindows-server-powershellwindows-active-directoryazure-ad-connectazure-ad-connect-health
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for reaching out and sincere apologies for the delay on this. We are constantly trying to reduce our answer time and in coming days you will see a significant improvement here. So we appreciate you posting your future queries here.

You need to use different modules such as AAD , EXO , Skype and Team in order to fetch those attributes, but not all of them since these attributes are managed by respective services in cloud and some of attributes are just used within Azure AD connect metaverse like: mS-DS-ConsistencyGuid. Therefore, best way would be using "Metaverse Search" which would list all synchronized attribute for respective object (like users, devices, group etc..,) this option only available in UI.

https://docs.microsoft.com/en-us/azure/active-directory/hybrid/how-to-connect-sync-service-manager-ui-mvsearch
https://docs.microsoft.com/en-us/azure/active-directory/hybrid/reference-connect-sync-attributes-synchronized

Hope this helps.

0 Votes 0 ·

0 Answers