Change a Microsoft 365 User Principal Name for an Azure AD Connect User
Question details
Change the Microsoft 365 sign-in name of a user synchronized from on-premises Active Directory.

- Product
- Microsoft 365 and Microsoft Entra Connect Sync
- Device & OS
- not provided
- Scenario
- An administrator wants a synchronized user's sign-in name to use the company email domain.
- Observed behavior
- The user's profile is managed on-premises, so some fields are read-only in the Microsoft 365 admin center.
Confirm that the account is synchronized from on-premises Active Directory and that the intended sign-in domain is verified in Microsoft Entra ID. You need permission to modify the user in Active Directory and to run a sync on the Microsoft Entra Connect server.
Change the UPN in Active Directory and synchronize it
Use the on-premises directory as the source of authority for a synchronized user's sign-in name.
In the Microsoft Entra admin center, go to Identity > Settings > Domain names and confirm that the desired domain is verified. If it is not, add it and complete the DNS verification.
On a domain administration computer, open Active Directory Domains and Trusts. Right-click the Active Directory Domains and Trusts root, select Properties, and add the company domain under Alternative UPN suffixes if it is not already listed.
Open Active Directory Users and Computers, find the user, and open Properties > Account. Change the user logon name and select the desired UPN suffix, then select OK.
Wait for the next scheduled sync, or open PowerShell on the Microsoft Entra Connect server and run Start-ADSyncSyncCycle -PolicyType Delta.
In the Microsoft Entra admin center, go to Identity > Users > All users, open the account, and check that its user principal name reflects the change.

Work with Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for common Microsoft Office formats, making it easy to move your document work. It does not manage or fix Microsoft 365 account synchronization.

Frequently Asked Questions
Can I change a synchronized user's UPN in the Microsoft 365 admin center?
The on-premises directory is the source of authority for synchronized users, so change the user logon name under Account in Active Directory Users and Computers and allow it to synchronize.
How do I make my company domain available as a UPN suffix?
In Active Directory Domains and Trusts, right-click the root, select Properties, and add the domain under Alternative UPN suffixes. Also verify the domain separately in the Microsoft Entra admin center under Identity > Settings > Domain names.
How can I sync the new UPN without waiting for the schedule?
On the Microsoft Entra Connect server, open PowerShell and run Start-ADSyncSyncCycle -PolicyType Delta. Then check the user's profile in the Microsoft Entra admin center.
Can I still use Set-MsolUserPrincipalName?
Set-MsolUserPrincipalName belongs to the retired MSOnline PowerShell module. For an on-premises synchronized user, make the lasting change in Active Directory instead.




