Get domain
Namespace: microsoft.graph
Retrieve the properties and relationships of domain object.
Permissions
One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Domain.Read.All, Domain.ReadWrite.All, Directory.Read.All |
Delegated (personal Microsoft account) | Not supported. |
Application | Domain.Read.All, Domain.ReadWrite.All, Directory.Read.All |
The work or school account needs to belong to one of the following roles:
- Global Administrator
- User Administrator
- Helpdesk Administrator
- Service Support Administrator
- Billing Administrator
- Mailbox Administrator
- Partner Tier1 Support
- Partner Tier2 Support
- Directory Readers
- Directory Writers
- AdHoc License Administrator
- Application Administrator
- Security Reader
- Security Administrator
- Privileged Role Administrator
- Cloud Application Administrator
- Customer LockBox Access Approver
- Dynamics 365 Administrator
- Power BI Administrator
- Azure Information Protection Administrator
- Desktop Analytics Administrator
- License Administrator
- Microsoft Managed Desktop Administrator
- Authentication Administrator
- Privileged Authentication Administrator
- Teams Communications Administrator
- Teams Communications Support Engineer
- Teams Communications Support Specialist
- Teams Administrator
- Insights Administrator
- Compliance Data Administrator
- Security Operator
- Kaizala Administrator
- Global Reader
- Volume Licensing Business Center User
- Volume Licensing Service Center User
- Modern Commerce User
- Microsoft Store for Business User
- Directory Reviewer
HTTP request
GET /domains/{id}
For {id}, specify the domain with its fully qualified domain name.
Optional query parameters
This method supports the OData Query Parameters to help customize the response.
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. |
Content-Type | application/json |
Request body
Do not supply a request body for this method.
Response
If successful, this method returns a 200 OK
response code and domain object in the response body.
Example
Request
GET https://graph.microsoft.com/v1.0/domains/M365x214355.onmicrosoft.com
Response
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#domains/$entity",
"authenticationType": "Managed",
"availabilityStatus": null,
"id": "M365x214355.onmicrosoft.com",
"isAdminManaged": true,
"isDefault": true,
"isInitial": true,
"isRoot": true,
"isVerified": true,
"supportedServices": [
"Email",
"OfficeCommunicationsOnline"
],
"passwordValidityPeriodInDays": null,
"passwordNotificationWindowInDays": null,
"state": null
}
Feedback
Submit and view feedback for