How to Change or Add a Domain in Microsoft 365 Developer Subscription
Question details
The user wants to change or customize the automatically generated domain name for their Microsoft 365 developer subscription.

- Product
- Microsoft 365 Developer Subscription
- Device & OS
- not provided
- Scenario
- Setting up user accounts and sign-in names and preferring to use a custom domain instead of the default generated one.
- Observed behavior
- The subscription created an @xxxx.onmicrosoft.com domain by default, and the user needs to switch to a custom domain for sign-ins.
Ensure you have Global Administrator privileges for your Microsoft 365 developer account and have access to the DNS management portal of the custom domain you intend to add.
Add a Custom Domain and Update Usernames
Use this solution to link a domain you own to your Microsoft 365 Developer account and update your users' sign-in addresses.
While Microsoft 365 Developer subscriptions automatically generate an onmicrosoft.com domain, you are not restricted to using it for your user accounts. You can easily link a custom domain you already own.
Please note that the original onmicrosoft.com domain is hardcoded to your tenant and cannot be renamed or completely removed, but you can set your new custom domain as the primary sign-in address.
Sign in to portal.office.com using a Global Administrator account. From the left navigation menu, go to Admin, select Settings, and then click on Domains.
Click on 'Add domain' and enter the domain you own. Follow the prompt to verify ownership by logging into your domain provider's portal and creating the required TXT or MX record.
Once the domain is verified, navigate to Users, then click Active users. Select the account you want to update, choose 'Manage username', and select your new custom domain from the dropdown menu to apply the change.

Looking for a Simpler Office Solution? Try WPS Office
If managing complex Microsoft 365 admin centers and domain configurations feels overwhelming, consider switching to WPS Office. It provides a lightweight, user-friendly, and free alternative with exceptional compatibility for all your everyday document tasks.
- 1. Download the Installer: Visit the official WPS Office website and click the free download button for your operating system.
- 2. Install WPS Office: Run the downloaded installer and follow the simple on-screen prompts to set up the suite on your device.
- 3. Open and Create: Launch WPS Office to instantly open your existing Microsoft Office files or start creating new documents without any subscription hurdles.

Frequently Asked Questions
Can I completely delete the onmicrosoft.com domain from my tenant?
No. The initial onmicrosoft.com domain acts as a routing domain and is permanently tied to your Microsoft 365 tenant. It cannot be renamed or deleted, but you can make your custom domain the default.
What DNS records do I need to verify my custom domain?
To prove you own the domain, the Microsoft 365 Admin Center will typically ask you to add a specific TXT record to your domain registrar's DNS settings. In some cases, an MX record can be used instead.
Do I have to buy a domain to use the developer subscription?
No, a custom domain is entirely optional. You can fully test, develop, and use the Microsoft 365 Developer Subscription using the default onmicrosoft.com domain provided at registration.




