Domains
Manage custom domains associated with your Microsoft 365 tenant. Add new domains, verify ownership, configure DNS records, and set the default domain for new users.
Domain List
| Column | Description |
|---|---|
| Domain Name | The domain (e.g., contoso.com) |
| Status | Verified, Pending, or Failed |
| Type | Managed (verified) or Initial (*.onmicrosoft.com) |
| Default | Whether this is the default for new users |
| Capabilities | Email, SharePoint, Teams, etc. |
| Users | Number of users with this domain |
Domain Types
Initial Domain
The *.onmicrosoft.com domain created with your tenant. Cannot be removed. Always available as a fallback.
Example: contoso.onmicrosoft.com
Managed Domain
Custom domain you’ve added and verified. DNS managed externally. Can be set as default for new users.
Example: contoso.com
Federated Domain
Domain configured for federation with on-premises AD FS or third-party IdP. Authentication handled by external system.
Password Hash Sync Domain
Domain with hybrid identity using Azure AD Connect. Password hashes synchronized from on-premises AD.
Default Domain
The default domain is used when creating new users without specifying a domain:
- New users get UPN suffix of default domain
- Only verified domains can be set as default
- The initial *.onmicrosoft.com domain cannot be default if custom domains exist
- Change default by clicking “Set as Default” on any verified domain
Domain Health
Monitor DNS configuration status for each domain:
- MX — Email routing configured
- SPF — Sender Policy Framework valid
- DKIM — DomainKeys Identified Mail enabled/not enabled
- DMARC — Domain-based Message Authentication configured/missing
Removing a Domain
Before removing a domain, you must:
- Change UPN suffix of all users from this domain
- Remove all email addresses using this domain
- Delete or rename all groups using this domain
- Remove all SharePoint site collections using this domain
- Delete the domain from M365
Warning: The initial *.onmicrosoft.com domain cannot be removed. It will always remain associated with your tenant.
Graph API Endpoints
GET /domainsPOST /domainsPOST /domains/{id}/verifyGET /domains/{id}/serviceConfigurationRecordsDELETE /domains/{id}
API Reference
GET /api/identity/domains— List all domains in tenantPOST /api/identity/domains— Add new domainPOST /api/identity/domains/:id/verify— Verify domain ownershipGET /api/identity/domains/:id/dns-records— Get required DNS recordsGET /api/identity/domains/:id/health— Check DNS configuration health