Remove the onmicrosoft.com Suffix from Microsoft 365 Office Accounts
Question details
The organization wants Office applications to display synchronized users with their primary email addresses or UPNs instead of an onmicrosoft.com suffix.

- Product
- Microsoft 365 Office and Microsoft Entra Connect
- Device & OS
- not provided
- Scenario
- Users are synchronized from on-premises Active Directory to Microsoft 365 and sign in to Office applications.
- Observed behavior
- Office displays some synchronized accounts with an onmicrosoft.com suffix rather than the organization's primary domain.
Confirm which Office application shows the suffix and whether it appears in the sign-in UPN or the email address. An administrator needs access to on-premises Active Directory, the Microsoft 365 admin center, and the directory synchronization server.
Check the primary SMTP address and synchronize the user
Use this approach when the displayed email address is incorrect for a user synchronized from on-premises Active Directory.
For synchronized users, make source-managed address changes on-premises rather than editing them in the Microsoft 365 admin center. The primary SMTP address and the sign-in UPN are separate attributes; correcting one does not automatically correct the other.
In the Microsoft 365 admin center, open Settings > Domains and confirm that the organization's custom domain is verified and set as the default. Setting a default domain does not automatically rename existing users.
In Active Directory Users and Computers, enable View > Advanced Features, open the user's Properties, and select Attribute Editor > proxyAddresses. Confirm that the primary address has uppercase SMTP, such as SMTP:user@contoso.com, and that secondary SMTP aliases use lowercase smtp.
If the primary address is wrong, update it using the organization's supported on-premises Exchange management tools or Active Directory management process. Ensure there is only one uppercase SMTP entry and retain any required aliases.
On the Microsoft Entra Connect server, open PowerShell with the required permissions and run Start-ADSyncSyncCycle -PolicyType Delta. Allow the synchronization to complete.
In the Exchange admin center, open Recipients > Mailboxes, select the user, and review the email addresses. If the result is still incorrect, open Synchronization Service Manager (MIISClient) on the sync server and check the Operations tab for errors.
Check the synchronized user's sign-in UPN
Use this check if Office shows the onmicrosoft.com suffix as the account's sign-in name rather than as its email address.
Work with Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and Microsoft Office format compatibility for an easier transition. It does not change Microsoft 365 account names or fix directory synchronization.

Frequently Asked Questions
Does changing the primary SMTP address also change the sign-in UPN?
No. The primary SMTP address and UPN are separate attributes. Check proxyAddresses for the email address and the Account tab in Active Directory Users and Computers for the on-premises UPN.
Why does uppercase SMTP matter in proxyAddresses?
Uppercase SMTP identifies the primary SMTP address, while lowercase smtp identifies secondary aliases. Review the values in the user's Attribute Editor and ensure there is only one uppercase SMTP entry.
Will setting the custom domain as the default rename existing users?
No. Setting the default domain in Microsoft 365 admin center > Settings > Domains does not automatically change existing usernames or email addresses.
Where can I check for directory synchronization errors?
On the Microsoft Entra Connect server, open Synchronization Service Manager (MIISClient) and review the Operations tab. Also check the affected user's addresses in Exchange admin center > Recipients > Mailboxes.
Is an onmicrosoft.com synchronization service account a problem?
No. The directory synchronization service account can normally have an onmicrosoft.com name. Investigate the affected users' addresses or UPNs separately.




