Fix Microsoft 365 User IDs Showing an Onmicrosoft.com Domain
Question details
The user wants synchronized Microsoft 365 user IDs to use the organization's public domain instead of the default 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.
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.
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.
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.
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.
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.
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.
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.

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.

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.




