- Must perform a hard match on the two accounts.
- Retrieve immutable ID from on-prem account and move it out of the M365 synced OU (AzureAD Synced) in ad and do a Delta sync. This removes the on-prem account from M365.
- Fully delete the account in M365 azure out of the "Deleted" accounts folder.
- Set M365 cloud account's immutable ID to that of the on-prem account.
- Put account back in the M365 Azure synced OU and perform another Delta sync.
- Both accounts then matched up. Chris may need to reset his passwords, but the error is gone and accounts are matched up.
Hard match instructions below. On-prem account MUST be unsynced from M365 Azure before updating immutable ID on M365 Azure account.
4. Get user On-Premises Immutable ID
Before you can set the on-premises Immutable ID of the cloud user, you need to get the on-premises user Object GUID and convert it to a Base64 string.
Note: The on-premises object values are GUIDs, whereas Microsoft Entra ID is a base64 encoded text string. So, you have to convert the GUID to Base64 string.
Get the cloud user Object GUID.
The PowerShell output shows the below results.
Convert the Object GUID to Base64 string.
The PowerShell output shows the Immutable ID.
5. Set On-Premises Immutable ID on cloud user
Get the on-premises Immutable ID from the cloud user with the Get-MgUser cmdlet.
The PowerShell output result shows an empty OnPremisesImmutableId, which is normal.
Note: The OnPremisesImmutableId is most likely empty, or it has a different value.
You need to add the string value to the -OnPremisesImmutableId parameter in the PowerShell command below.
6. Verify On-Premises Immutable ID property on cloud user
To verify, you can use the Get-MgUser cmdlet to get the user OnPremisesImmutableId.
The PowerShell output shows the below results.
Note: The on-premises password takes presence and is now being used. The password from the cloud can no longer be used.
7. Force sync Microsoft Entra Connect (Delta Sync)
Wait for the Microsoft Entra Connect Sync to run, or you can Force sync Microsoft Entra Connect with PowerShell.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article