편집

다음을 통해 공유


List delegatedAdminCustomers

Namespace: microsoft.graph

Get a list of the delegatedAdminCustomer objects and their properties.

This API is available in the following national cloud deployments.

Global service US Government L4 US Government L5 (DOD) China operated by 21Vianet

Permissions

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.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) DelegatedAdminRelationship.Read.All DelegatedAdminRelationship.ReadWrite.All
Delegated (personal Microsoft account) Not supported. Not supported.
Application DelegatedAdminRelationship.Read.All DelegatedAdminRelationship.ReadWrite.All

HTTP request

GET /tenantRelationships/delegatedAdminCustomers

Optional query parameters

This method supports the $select, $filter, $top, $orderby, $count, and $skipToken OData query parameters to help customize the response.

$top supports up to 300 objects.

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.

Request body

Don't supply a request body for this method.

Response

If successful, this method returns a 200 OK response code and a collection of delegatedAdminCustomer objects in the response body.

Each delegatedAdminCustomer object contains an @odata.etag property as per RFC2616.

Examples

Request

GET https://graph.microsoft.com/v1.0/tenantRelationships/delegatedAdminCustomers

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/tenantRelationships/$metadata#delegatedAdminCustomers",
  "value": [
    {
      "@odata.type": "#microsoft.graph.delegatedAdminCustomer",
      "@odata.etag": "W/\"JyIxODAwMTMzZi0wMDAwLTAyMDAtMDAwMC02MTNjMGFhZTAwMDAiJw==\"",
      "id": "4fdbff88-9d6b-42e0-9713-45c922ba8001",
      "tenantId": "4fdbff88-9d6b-42e0-9713-45c922ba8001",
      "displayName": "Contoso Inc"
    },
    {
      "@odata.type": "#microsoft.graph.delegatedAdminCustomer",
      "@odata.etag": "W/\"JyIwMDAwMTEwMS0wMDAwLTAyMDAtMDAwMC02MDI1OTQyMjAwMDAiJw==\"",
      "id": "1c0fa218-5dec-49db-8247-cfa457af8116",
      "tenantId": "1c0fa218-5dec-49db-8247-cfa457af8116",
      "displayName": "Contoso subsidiary Inc"
    }
  ]
}