Microsoft Account Errors

Fix Microsoft 365 User IDs Showing an Onmicrosoft.com Domain

Rana GarciaRana Garcia Nov 22, 2026 868 views

Question details

The user wants synchronized Microsoft 365 user IDs to use the organization's public domain instead of the default onmicrosoft.com domain.

Fix Microsoft 365 User IDs Showing an Onmicrosoft.com Domain
Product
Microsoft 365 and Microsoft Entra Connect Sync
Device & OS
not provided
Scenario
After an Exchange migration to Microsoft 365, users are synchronized from an on-premises Active Directory domain that uses a .local suffix.
Observed behavior
Some synchronized users display an @onmicrosoft.com user ID rather than the organization's email domain.
Before you start

Confirm which public domain users should use for sign-in and check that you have permissions to manage Microsoft 365 domains and on-premises Active Directory users. Identify the affected synchronized accounts and their current UPNs.

Solution 1Recommended

Verify the public domain and update synchronized users' UPNs

Use this approach when users are synchronized from an Active Directory domain whose UPN suffix is not verified in Microsoft 365.

A user principal name (UPN) is a sign-in name; it is separate from a user's email address. Adding a public UPN suffix does not rename the Active Directory domain.

1
Verify the public domain

In the Microsoft 365 admin center, go to Settings > Domains. Select Add domain if needed, then follow the verification instructions to add the required DNS record.

2
Add the UPN suffix

On an Active Directory administration computer, open Active Directory Domains and Trusts. Right-click Active Directory Domains and Trusts, select Properties, and add the verified public domain under Alternative UPN suffixes.

3
Update affected users

Open Active Directory Users and Computers, find an affected user, and open Properties > Account. Under User logon name, select the verified public suffix and save the change. Repeat for the other affected users.

4
Synchronize and check

Wait for Microsoft Entra Connect Sync to run, or run Start-ADSyncSyncCycle -PolicyType Delta in PowerShell on the sync server if appropriate. Then check the user's sign-in name in the Microsoft 365 admin center under Users > Active users.

5
Review remaining errors

If the UPN still does not update, inspect synchronization errors in Synchronization Service Manager on the sync server. Check the affected user's proxyAddresses and migration details, and resolve any conflicts before changing email addresses.

Verify the public domain and update synchronized users' UPNs
Tell users about the sign-in change: Changing a UPN can change the name users enter to sign in. Plan the change with your identity administrator and notify affected users.
Free Microsoft Office alternative

Use WPS Office as an Alternative for Everyday Office Work

WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility, making it easier to move everyday document work between suites. It does not fix Microsoft 365 account or synchronization settings.

Work on documents while your administrator resolves Microsoft 365 sign-in issuesOpen and edit common Microsoft Office formats, including DOCX, XLSX, and PPTXUse a familiar interface for documents, spreadsheets, and presentationsGet a free, lightweight office suite
QA img-9

Frequently Asked Questions

Do I have to rename my .local Active Directory domain?

No. You can add the verified public domain as an alternative UPN suffix in Active Directory Domains and Trusts, then select that suffix for users in Active Directory Users and Computers.

Why does Microsoft 365 show an onmicrosoft.com sign-in name?

If a synchronized user's on-premises UPN suffix is not a verified domain in Microsoft 365, the cloud sign-in name may use the tenant's default onmicrosoft.com domain. Check Settings > Domains in the Microsoft 365 admin center.

Will changing the UPN also change the user's email address?

Not necessarily. The UPN is a sign-in name, while email addresses are managed separately. Review proxyAddresses and your Exchange configuration before making email address changes.

What should I check if the new sign-in name does not appear?

Confirm the public domain is verified, check the user's Account tab in Active Directory Users and Computers, and review errors in Synchronization Service Manager on the Microsoft Entra Connect Sync server.