| title | List domainNameReferences |
|---|---|
| description | Retrieve a list of directoryObject with a reference to the domain. |
| author | tafra00 |
| ms.localizationpriority | medium |
| ms.subservice | entra-directory-management |
| doc_type | apiPageType |
| ms.date | 10/25/2024 |
Namespace: microsoft.graph
Retrieve a list of directoryObject with a reference to the domain. The returned list will contain all directory objects that have a dependency on the domain.
[!INCLUDE national-cloud-support]
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
[!INCLUDE limited-info]
Important
In delegated scenarios with work or school accounts, the signed-in user must be assigned a supported Microsoft Entra role or a custom role with a supported role permission. The following least privileged roles are supported for this operation: Domain Name Administrator or Global Reader.
GET /domains/{id}/domainNameReferencesThis method supports the $select and $filter OData Query Parameters to help customize the response. You can only filter by the OData type of the objects returned, for example, /domains/{domainId}/domainNameReferences/microsoft.graph.group and /domains/{domainId}/domainNameReferences/microsoft.graph.user.
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this method returns a 200 OK response code and collection of directoryObject objects in the response body.
GET https://graph.microsoft.com/v1.0/domains/contoso.com/domainNameReferences
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
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#directoryObjects",
"value": [
{
"@odata.type": "#microsoft.graph.user",
"@odata.id": "https://graph.microsoft.com/v2/927c6607-8060-4f4a-a5f8-34964ac78d70/directoryObjects/fc9a2c2b-1ddc-486d-a211-5fe8ca77fa1f/Microsoft.DirectoryServices.User",
"id": "fc9a2c2b-1ddc-486d-a211-5fe8ca77fa1f",
"accountEnabled": true,
"city": "Nairobi",
"createdDateTime": "2021-04-14T05:26:16Z",
"country": "Kenya",
"displayName": "Adele Vance",
"givenName": "Adele",
"mail": "AdeleV@Contoso.com",
"mailNickname": "AdeleV"
},
{
"@odata.type": "#microsoft.graph.group",
"@odata.id": "https://graph.microsoft.com/v2/927c6607-8060-4f4a-a5f8-34964ac78d70/directoryObjects/eac82bd3-931c-4d47-9e68-735595a8eb8a/Microsoft.DirectoryServices.Group",
"id": "eac82bd3-931c-4d47-9e68-735595a8eb8a",
"createdDateTime": "2021-04-14T06:59:47Z",
"createdByAppId": "00000005-0000-0ff1-ce00-000000000000",
"organizationId": "927c6607-8060-4f4a-a5f8-34964ac78d70",
"description": "Contribute your ideas and ask your questions to our leadership team. And tune in for regular Employee Q & A live events. You can learn more about what",
"displayName": "CEO Connection",
"expirationDateTime": "2021-10-11T06:59:47Z",
"groupTypes": [
"Unified"
],
"mail": "ceoconnection@Contoso.com",
"mailEnabled": true,
"mailNickname": "ceoconnection",
"resourceBehaviorOptions": [
"CalendarMemberReadOnly"
],
"visibility": "Public",
"writebackConfiguration": {
"isEnabled": null,
"onPremisesGroupType": null
}
}
]
}