{"id":230,"date":"2019-02-21T12:06:49","date_gmt":"2019-02-21T12:06:49","guid":{"rendered":"http:\/\/172.23.1.43\/?p=230"},"modified":"2022-06-07T22:26:14","modified_gmt":"2022-06-07T22:26:14","slug":"how-to-check-the-immutable-id-source-anchor","status":"publish","type":"post","link":"https:\/\/blog.n-dol.org\/2019\/02\/21\/how-to-check-the-immutable-id-source-anchor\/","title":{"rendered":"How to check the Immutable ID\/Source Anchor"},"content":{"rendered":"\n
This article expains how to check which attribute is used as the source anchor for the synchronization between Active Directory and Azure Active Directory.<\/p>\n\n\n\n
0 – Install necessary PowerShell Modules, if needed.<\/p>\n\n\n\n
Install-Module MSOnline\nImport-Module MSOnline<\/code><\/pre>\n\n\n\n1 – Get User Immutable ID from Azure.<\/p>\n\n\n\n
Connect-MSOLService\nGet-MsolUser -UserPrincipalName user@domain.tld | select ImmutableID<\/code><\/pre>\n\n\n\n\n\n\n\n2 – Convert to GUID Format<\/p>\n\n\n\n
[GUID][system.convert]::FromBase64String("User ImmutableID")<\/code><\/pre>\n\n\n\n3 – Check against AD and check which one is corresponding<\/p>\n\n\n\n
$User = Get-ADUser -Identity username -Properties mS-DS-ConsistencyGUID\n[GUID]$User.'mS-DS-ConsistencyGUID'\n$User.ObjectGUID<\/code><\/pre>\n\n\n\nAzure AD Connect<\/h2>\n\n\n\n
1 – Go to Azure AD connect server and open Azure AD Connect<\/strong><\/p>\n\n\n\n