Remove accessReview reviewer (deprecated)
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.
Caution
This version of the access review API is deprecated and will stop returning data on May 19, 2023. Please use access reviews API.
In the Microsoft Entra access reviews feature, update an existing accessReview object to remove a user as a reviewer. This operation is only permitted for an access review that isn't yet completed, and only for an access review where the reviewers are explicitly specified. This operation isn't permitted for an access review in which users review their own access, and not intended for an access review in which the group owners are assigned as the reviewers.
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) | AccessReview.ReadWrite.Membership | AccessReview.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | AccessReview.ReadWrite.Membership | Not available. |
HTTP request
DELETE /accessReviews/{reviewId}/reviewers/{userId}
Request headers
Name | Type | Description |
---|---|---|
Authorization | string | Bearer {token}. Required. |
Request body
No request body should be supplied.
Response
If successful, this method returns a 204 No Content
response code.
Example
This is an example of updating a one-time (not reoccurring) access review to remove an unnecessary reviewer.
Request
In the request URL, supply the ID of the accessReview object and then the ID of the user object.
DELETE https://graph.microsoft.com/beta/accessReviews/2b83cc42-09db-46f6-8c6e-16fec466a82d/reviewers/006111db-0810-4494-a6df-904d368bd81b
Response
HTTP/1.1 204 No content