Microsoft Account Errors

Change a Microsoft 365 User Principal Name for an Azure AD Connect User

Huda QurayshiHuda Qurayshi Nov 25, 2026 869 views

Question details

Change the Microsoft 365 sign-in name of a user synchronized from on-premises Active Directory.

Change a Microsoft 365 User Principal Name for an Azure AD Connect User
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.
Before you start

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.

Solution 1Recommended

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.

1
Verify the sign-in domain

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.

2
Add the UPN suffix

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.

3
Update the user

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.

4
Synchronize the change

Wait for the next scheduled sync, or open PowerShell on the Microsoft Entra Connect server and run Start-ADSyncSyncCycle -PolicyType Delta.

5
Check the cloud account

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.

Change the UPN in Active Directory and synchronize it
Legacy PowerShell command: Older instructions use Set-MsolUserPrincipalName from the retired MSOnline PowerShell module. For synchronized accounts, update the UPN in the on-premises directory so the change remains consistent after synchronization.
Free Microsoft Office alternative

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.

Open and edit Microsoft Word, Excel, and PowerPoint files, including DOCX, XLSX, and PPTXUse familiar document, spreadsheet, and presentation toolsWork with Office files independently of changing a Microsoft 365 UPNMove existing Office files into a lightweight productivity suite
microsoft office alternative - wps office

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.