Solution:
Root Cause: ImmutableId / SourceAnchor Mismatch on Cloud Object When attempting to link an on-premises Active Directory account to an existing cloud-only user, Entra Connect compares the calculated
SourceAnchor (usually Base64-encoded
msDS-ConsistencyGuid or
objectGUID) against the cloud object's
ImmutableId. If the cloud object already possesses a non-null, mismatched
ImmutableId, Entra Connect rejects the merge and throws a duplicate proxy address error.
Diagnostic Verification: 1 Get On-Premises User objectGUID in Base64 format:
Copy
powershell
$guid = (Get-ADUser -Identity "john.doe").objectGUID
$base64Guid = [Convert]::ToBase64String($guid.ToByteArray())
Write-Output $base64Guid
2 Query Cloud User ImmutableId using Graph PowerShell:
Copy
powershell
Get-MgUser -UserId "john.doe@company.com" | Select-Object UserPrincipalName, OnPremisesImmutableId
3 Compare $base64Guid with OnPremisesImmutableId. If they do not match, hard-matching fails.
Step-by-Step Fix: 1 Clear Mismatched ImmutableId on Cloud User:
Copy
powershell
Update-MgUser -UserId "john.doe@company.com" -OnPremisesImmutableId $null
2 Set Exact Base64 SourceAnchor on Cloud User:
Copy
powershell
Update-MgUser -UserId "john.doe@company.com" -OnPremisesImmutableId $base64Guid
3 Trigger Delta Sync:
Copy
powershell
Start-ADSyncSyncCycle -PolicyType Delta
Prevention & Long-Term Monitoring: Ensure all manual cloud-matching procedures use precise Base64 conversion strings for msDS-ConsistencyGuid or objectGUID.