Hi Miranda Weingartner,
I hope this message finds you well.
To properly merge these and restore synchronization, here’s what you can do:
Recommended Steps to Reconnect the AD Account with M365
- Match the Immutable ID
- Microsoft 365 uses an attribute called ImmutableID to link AD accounts to cloud identities.
- First, retrieve the ImmutableID from the existing M365 account: powershell
Get-MsolUser -UserPrincipalName ******@domain.com | Select ImmutableId
- Set the Same ImmutableID in AD
- On the newly created AD account, use PowerShell to set the ms-DS-ConsistencyGuid (or objectGUID, depending on your sync method) to match the ImmutableID.
- If you're using Entra Connect, ensure the new AD account has the same userPrincipalName (UPN) and mail attributes as the M365 account.
- Force Synchronization
- Run a delta sync using Entra Connect: powershell
Start-ADSyncSyncCycle -PolicyType Delta - This should re-link the AD account with the existing cloud identity.
- Run a delta sync using Entra Connect: powershell
- Verify Sync Status
- In the Microsoft Entra admin center, confirm that the account is now showing as "Synced from AD" and not as a cloud-only account.
Important Notes
Avoid deleting the M365 account, as this would result in data loss.
If you're unsure about the ImmutableID mapping, consider using Soft Match (matching via UPN and mail attributes) if ImmutableID is not enforced.
Always back up user data and test changes in a staging environment if possible.
Let me know if you'd like help running these commands or verifying the sync status. I’d be happy to assist further to ensure the accounts are properly merged.
Best regards,
Quinnie Quoc.