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
.
The way these were used were:
Get-MsolUser -UserPrincipalName X | fl
Get-Mailbox -UserPrincipalName X | fl
Get-AzureAdUser -Filter "userPrincipalName eq 'x'" | fl
Get-AzureADUserManager -ObjectId "x" | Select-Object UserPrincipalName
As requested, here are some commandlets and the attributes that I was able to find based on them: