Update delegatedAdminAccessAssignment

Namespace: microsoft.graph


APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Update the properties of a delegatedAdminAccessAssignment object.


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) DelegatedAdminRelationship.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application Not supported.

HTTP request

PATCH /tenantRelationships/delegatedAdminRelationships/{delegatedAdminRelationshipId}/accessAssignments/{delegatedAdminAccessAssignmentId}

Request headers

Name Description
Authorization Bearer {token}. Required.
If-Match If-match: etag}. Last known ETag value for the delegatedAdminAccessAssignment to be updated. Required.
Content-Type application/json. Required.

Request body

In the request body, supply only the values for properties that should be updated. Existing properties that are not included in the request body will maintain their previous values or be recalculated based on changes to other property values.

The following table specifies the properties that can be updated.

Property Type Description
accessDetails delegatedAdminAccessDetails The identifiers of the administrative roles that the partner is assigned in the customer tenant


If successful, this method returns a 200 OK or a 202 Accepted response code.

Response headers

Name Description
Content-Type application/json.
Location The location of the long-running operation.
Retry-After The time after which a subsequent API call can be made to the Location URL to check the status of the long-running operation.

This method typically returns a 202 Accepted response code with a URL to a long-running operation in the Location response header that can be monitored for completion. If the values specified in the call are identical to the values in the existing object, the API returns a 200 OK response code with the original delegatedAdminAccessAssignment object in the response body.



PATCH https://graph.microsoft.com/beta/tenantRelationships/delegatedAdminRelationships/5e5594d3-6f82-458b-b567-77db4811f0cd-00000000-0000-0000-0000-000000001234/accessAssignments/da9d6cf90-083a-47dc-ace2-1da98be3f344
If-Match: W/"JyI0NzAwNjg0NS0wMDAwLTE5MDAtMDAwMC02MGY0Yjg4MzAwMDAiJw=="
Content-Type: application/json

  "accessDetails": {
    "unifiedRoles": [
        "roleDefinitionId": "88d8e3e3-8f55-4a1e-953a-9b9898b8876b"
        "roleDefinitionId": "44367163-eba1-44c3-98af-f5787879f96a"
        "roleDefinitionId": "729827e3-9c14-49f7-bb1b-9608f156bbb8"


The following is an example response that returns a 202 Accepted response code along with Location and Retry-After headers.

Note: The response object shown here might be shortened for readability.

HTTP/1.1 202 Accepted
Location: https://graph.microsoft.com/beta/tenantRelationships/delegatedAdminRelationships/5e5594d3-6f82-458b-b567-77db4811f0cd-00000000-0000-0000-0000-000000001234/operations/d8dbb27b-7fe7-4523-a3df-f766355fe0f2
Retry-After: 10
Content-Type: application/json