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)

This API is available in the following national cloud deployments.

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

Permissions

The following tables show the least privileged permission or permissions required to call this API on each supported resource type. Follow best practices to request least privileged permissions. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

For Cloud PC provider

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

For Device management (Intune) provider

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) CloudPC.ReadWrite.All DeviceManagementRBAC.ReadWrite.All
Delegated (personal Microsoft account) Not supported. Not supported.
Application CloudPC.ReadWrite.All 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}. 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 204 No Content response code. It doesn't return anything in the response body.

Example

Example 1: Delete a unifiedRoleAssignmentMultiple in an Intune provider

The following example shows how to delete a unifiedRoleAssignmentMultiple in an Intune provider.

Request

The following example shows a request.

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

Response

The following example shows the response.

HTTP/1.1 204 No Content

Example 2: Delete a unifiedRoleAssignmentMultiple in a Cloud PC provider

The following example shows how to delete a unifiedRoleAssignmentMultiple in a Cloud PC provider.

Request

The following example shows a request.

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

Response

The following example shows the response.

HTTP/1.1 204 No Content