Microsoft Account Errors

Change Microsoft 365 Users to a Custom Domain

Aamir Naveed AkramAamir Naveed Akram Nov 22, 2026 868 views

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.

Change Microsoft 365 Users to a Custom Domain
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.
Before you start

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.

Solution 1Recommended

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.

1
Open the user account

In the Microsoft 365 admin center, go to Users > Active users and select the user you want to update.

2
Update the sign-in name

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.

3
Set the primary email address

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.

4
Check the old 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.

5
Test the account

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.

Change a user's sign-in name and primary email address
Sign-in and email addresses: An email alias lets the mailbox receive mail at that address, but adding an alias alone does not change the user's sign-in name. Users may need to sign in again after their username changes.
Free Microsoft Office alternative

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.

Open and edit Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTXUse a familiar interface to make migration from Microsoft Office easierPrepare user lists and domain migration plans in WPS SpreadsheetAccess document, spreadsheet, and presentation tools in a lightweight suite
microsoft office alternative - wps office

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.