FerderatedDomainChangeError is a fairly common issue to come across in the Azure AD Export job of the Azure AD Synchronization Service. The issue occurs whenever a users UPN is changed from one custom domain to another.
Office 365 Admin Portal
- Sign in to https://portal.office.com/AdminPortal/ using an account with sufficient privileges.
- Search for the user and open the user settings.
- Click “Edit” to the right of the “Username” field.
- Change the UPN suffix to <domain>.onmicrosoft.com
- Save your changes.
- At the next Azure AD sync the UPN will be overwritten with the value from Active Directory. Wait for the sync to occur or start one manually.
Azure AD V1 PowerShell
Start PowerShell on a computer with the Azure AD V1 module installed.
Set the temporary UPN
#Example #Set-MSOLUserPrincipalName -UserPrincipalName firstname.lastname@example.org -NewUserPrincipalName email@example.com Set-MSOLUserPrincipalName -UserPrincipalName <user@OldDomain.com> -NewUserPrincipalName <user>@<domain>.onmicrosoft.com
At the next Azure AD sync the UPN will be overwritten with the value from Active Directory. Wait for the sync to occur or start one manually.