Skip to main content

Sync with on-site Active Directory

Convert Azure AD ImmutableID to on-site AD objectGUID

Use the below Powershell command to convert the ImmutableID within Azure Active Directory to the objectGUID in the on-site Active Directory

 [Convert]::ToBase64String([guid]::New("InsertGUID").ToByteArray())

Convert on-site AD objectGUID to Azure AD ImmutableID

Use the below Powershell command to convert the objectGUID from the on-site Active Directory account to the ImmutableID format used in Azure Active Directory.

[Guid]([Convert]::FromBase64String("ImmutableID"))