Change Microsoft 365 Users to a Custom Domain
Question details
Change Microsoft 365 users' sign-in names and primary email addresses to a custom domain while retaining their existing mailboxes and onmicrosoft.com addresses.

- Product
- Microsoft 365 and Exchange Online
- Device & OS
- not provided
- Scenario
- An administrator wants existing users to sign in and send email using a verified custom domain.
- Observed behavior
- Users should retain their mailboxes and receive mail at both their custom-domain addresses and their existing onmicrosoft.com aliases.
Add and verify the custom domain under Settings > Domains in the Microsoft 365 admin center, and check that its mail DNS records are configured for Exchange Online. Test with one cloud-managed user first; if users are synchronized from an on-premises directory, make the relevant changes at the source of authority instead.
Change a user's sign-in name and primary email address
Use the Microsoft 365 and Exchange admin centers to update one user while keeping the existing mailbox.
In the Microsoft 365 admin center, go to Users > Active users and select the user you want to update.
On the Account tab, select Manage username and email, choose the verified custom domain for the username, and save the change. The user will sign in with the updated username.
In the Exchange admin center, go to Recipients > Mailboxes and select the same user. Open the mailbox's email address settings, add the custom-domain address if needed, and set it as the primary SMTP address.
In the mailbox's email address settings, confirm that the original onmicrosoft.com address remains listed as an alias. If it is missing, add it as an alias; do not remove it.
Sign in with the new username, send a test message, and send messages to both email addresses. Once the mailbox and sign-in work as expected, repeat the process for other users.

Use PowerShell to update multiple users
Use Microsoft Graph and Exchange Online PowerShell when you need to script changes across many cloud-managed accounts.
Work with Office files in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and compatibility with common Microsoft Office formats, making it easy to move existing documents into your workflow. Microsoft 365 account and domain changes must still be made in Microsoft's admin tools.

Frequently Asked Questions
Will changing the primary email address create a new mailbox?
No. Updating the primary SMTP address on an existing Exchange Online mailbox changes its default sending address; it does not create a new mailbox.
Can users still receive mail at their onmicrosoft.com addresses?
Yes, as long as each original address remains an email alias on the mailbox. Check it in Exchange admin center > Recipients > Mailboxes under the user's email address settings.
Does adding a custom-domain alias change the sign-in name?
No. Change the username separately in Microsoft 365 admin center > Users > Active users > Account > Manage username and email.
What should I do if users are synchronized from an on-premises directory?
Make the relevant username and email attribute changes in the authoritative on-premises directory, then allow them to synchronize to Microsoft 365. Cloud admin center changes may be restricted for synchronized users.




