This article expains how to check which attribute is used as the source anchor for the synchronization between Active Directory and Azure Active Directory.
PowerShell
0 – Install necessary PowerShell Modules, if needed.
Install-Module MSOnline
Import-Module MSOnline
1 – Get User Immutable ID from Azure.
Connect-MSOLService
Get-MsolUser -UserPrincipalName [email protected] | select ImmutableID
2 – Convert to GUID Format
[GUID][system.convert]::FromBase64String("User ImmutableID")
3 – Check against AD and check which one is corresponding
$User = Get-ADUser -Identity username -Properties mS-DS-ConsistencyGUID
[GUID]$User.'mS-DS-ConsistencyGUID'
$User.ObjectGUID
Azure AD Connect
1 – Go to Azure AD connect server and open Azure AD Connect
![AzureADConnect-Anchor-Step1](http://172.23.1.43/wp-content/uploads/2019/02/azureadconnect-anchor-step1.jpg)
2 – Click on Configure
![AzureADConnect-Anchor-Step2](http://172.23.1.43/wp-content/uploads/2019/02/azureadconnect-anchor-step2.jpg)
3 – Click on View current configuration then Next
![AzureADConnect-Anchor-Step3](http://172.23.1.43/wp-content/uploads/2019/02/azureadconnect-anchor-step3.jpg)
4 – In the Synchronization Settings, look for Source Anchor