Fix Office 365 Users Assigned an onmicrosoft.com Username
Question details
Change synchronized Office 365 usernames from an onmicrosoft.com domain to the company's verified domain.

- Product
- Microsoft 365 and Microsoft Entra Connect Sync
- Device & OS
- not provided
- Scenario
- Some users synchronized from on-premises Active Directory have the company email domain in proxyAddresses, but their Microsoft 365 usernames use onmicrosoft.com.
- Observed behavior
- Affected users are assigned usernames with an onmicrosoft.com suffix instead of the expected company domain.
Identify an affected user's on-premises userPrincipalName and the company domain intended for sign-in. Make sure you have permission to manage domains, Active Directory users, and synchronization.
Use a Verified Domain as the Active Directory UPN Suffix
Use this method when the user's on-premises UPN suffix is not a verified domain in Microsoft 365.
The proxyAddresses attribute controls email addresses; it does not by itself set the user principal name (UPN) used for sign-in. An unverified UPN suffix can cause Microsoft Entra ID to assign an onmicrosoft.com username.
In the Microsoft 365 admin center, open Settings > Domains and confirm that the intended sign-in domain is verified. If it is not, follow the domain verification instructions before changing users.
On a domain administration computer, open Active Directory Domains and Trusts, right-click the root node, and select Properties. Add the verified domain under Alternative UPN suffixes.
In Active Directory Users and Computers, open the user's Properties > Account. Set the User logon name suffix to the verified domain and confirm that the full UPN is valid and unique.
On the Microsoft Entra Connect Sync server, open PowerShell and run Import-Module ADSync followed by Start-ADSyncSyncCycle -PolicyType Delta. After synchronization, check the user's username in the Microsoft 365 admin center under Users > Active users.

Inspect Synchronization Errors and UPN Attributes
Use this method if the verified suffix is already correct or the username does not update after synchronization.
Work with Office Documents in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface for working with Office files and moving between productivity suites. It does not change Microsoft 365 usernames or fix Entra Connect synchronization.

Frequently Asked Questions
Why does the username use onmicrosoft.com when the email address uses our company domain?
The email address in proxyAddresses and the sign-in UPN are separate attributes. If the on-premises UPN suffix is not verified in Microsoft 365, the synchronized username may receive an onmicrosoft.com suffix.
Where can I check whether my company domain is verified?
Open the Microsoft 365 admin center and go to Settings > Domains. Select the domain to check its status or follow the verification instructions.
How do I change a synchronized user's sign-in suffix?
First verify the domain in Microsoft 365. Then open the user in Active Directory Users and Computers, select Properties > Account, and choose the verified suffix for the User logon name. Run a synchronization cycle and check the cloud username.
What should I check if the username still does not update?
In Synchronization Service Manager, review Operations for sync errors and use Metaverse Search to inspect the user's UPN. Also check for duplicate or invalid UPN values and tenant settings that may affect UPN updates.




