Delete unifiedRoleAssignmentMultiple

Namespace: microsoft.graph

Important

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.

Delete a unifiedRoleAssignmentMultiple object of an RBAC provider.

This is applicable for a RBAC application that supports multiple principals and scopes. The following RBAC providers are currently supported:

  • Cloud PC
  • device management (Intune)

Permissions

Depending on the RBAC provider and the permission type (delegated or application) that is needed, choose from the following table the least privileged permission required to call this API. To learn more, including taking caution before choosing more privileged permissions, see Permissions.

For Cloud PC provider

Permission type Permissions (from least to most privileged)
Delegated (work or school account) CloudPC.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application CloudPC.ReadWrite.All

For Device management (Intune) provider

Permission type Permissions (from least to most privileged)
Delegated (work or school account) DeviceManagementRBAC.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application DeviceManagementRBAC.ReadWrite.All

HTTP request

To delete a unifiedRoleAssignmentMultiple for a Cloud PC provider:

DELETE /roleManagement/cloudPC/roleAssignments/{id}

To delete a unifiedRoleAssignmentMultiple for an Intune provider:

DELETE /roleManagement/deviceManagement/roleAssignments/{id}

Request headers

Name Description
Authorization Bearer {token}

Request body

Do not supply a request body for this method.

Response

If successful, this method returns a 204 No Content response code. It does not return anything in the response body.

Example

Example 1: Delete a unifiedRoleAssignmentMultiple in an Intune provider

Request

The following is an example of the request.

DELETE https://graph.microsoft.com/beta/roleManagement/deviceManagement/roleAssignments/lAPpYvVpN0KRkAEhdxReEJC2sEqbR_9Hr48lds9SGHI-1

Response

The following is an example of the response.

HTTP/1.1 204 No Content

Example 2: Delete a unifiedRoleAssignmentMultiple in a Cloud PC provider

Request

DELETE https://graph.microsoft.com/beta/roleManagement/cloudPC/roleAssignments/{id}

Response

HTTP/1.1 204 No Content