Hi @Atlas Business Solutions , to reassign the on-premises account DOMAIN\bsmith to the M365 account [bsmith@example.com], you can follow these steps:
- Update the UserPrincipalName (UPN) attribute in your on-premises Active Directory for the user DOMAIN\bsmith to match the desired M365 account ([bsmith@example.com]).
- Make sure the feature to synchronize UPN changes for managed users is enabled in your Azure AD directory. You can check this by running the following PowerShell command:
Get-MsolDirSyncFeatures -Feature SynchronizeUpnForManagedUsers
- If it's not enabled, enable it with:
Set-MsolDirSyncFeature -Feature SynchronizeUpnForManagedUsers -Enable $true
- Run a delta sync on your Azure AD Connect to synchronize the updated UPN attribute to Azure AD. After completing these steps, the on-premises account DOMAIN\bsmith should be synced with the M365 account [bsmith@example.com]. The previously synced account ([bob@example.com]) will remain in M365, but you can remove it if it's no longer needed.
Please note that changing the UPN for federated users is allowed since March 2019. Make sure to backup any important data before making these changes.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James