Microsoft Account Errors

Fix Office 365 Users Assigned an onmicrosoft.com Username

Chanuka GeekiyanageChanuka Geekiyanage Nov 20, 2026 869 views

Question details

Change synchronized Office 365 usernames from an onmicrosoft.com domain to the company's verified domain.

Fix Office 365 Users Assigned an onmicrosoft.com Username
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.
Before you start

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.

Solution 1Recommended

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.

1
Verify the company domain

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.

2
Add the UPN suffix if needed

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.

3
Update the affected user

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.

4
Run synchronization

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.

Use a Verified Domain as the Active Directory UPN Suffix
Sign-in changes: Changing a UPN can affect how users sign in. Tell affected users their new sign-in name. Depending on the tenant and domain configuration, additional settings may be needed for an existing cloud UPN to update.
Free Microsoft Office alternative

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.

Open and edit common Microsoft Office formats, including DOCX, XLSX, and PPTX.Use a familiar interface for a smoother move from Microsoft Office.Work on documents while an administrator resolves Microsoft 365 sign-in issues.Use free productivity tools in a lightweight office suite.
microsoft office alternative - wps office

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.