Edit

accessReviewStage: batchRecordDecisions

Namespace: microsoft.graph

Record decisions in bulk for all accessReviewInstanceDecisionItem objects within a single accessReviewStage of a multi-stage accessReviewInstance, by using principalId, resourceId, or neither.

This action records decisions for a specific stage only, unlike accessReviewInstance: batchRecordDecisions, which operates across the entire instance.

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

Important

For delegated access using work or school accounts, the signed-in user must be assigned a supported Microsoft Entra role or a custom role that grants the permissions required for this operation. This operation supports the following built-in roles, which provide only the least privilege necessary:

  • To write access reviews of a group or app: User Administrator, Identity Governance Administrator
  • To write access reviews of a Microsoft Entra role: Identity Governance Administrator, Privileged Role Administrator

HTTP request

POST /identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinitionId}/instances/{accessReviewInstanceId}/stages/{accessReviewStageId}/batchRecordDecisions

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

In the request body, supply a JSON representation of the parameters.

The following table shows the parameters that can be used with this action.

Parameter Type Description
decision String Access decision for the entity being reviewed. The possible values are: Approve, Deny, NotReviewed, DontKnow. Required.
justification String Context of the review provided to admins. Required if justificationRequiredOnApproval is true on the accessReviewScheduleDefinition.
principalId String If supplied, all the accessReviewInstanceDecisionItem objects with matching principalId in the stage are reviewed in this batch. If not supplied, all principalId values are reviewed.
resourceId String If supplied, all the accessReviewInstanceDecisionItem objects with matching resourceId in the stage are reviewed in this batch. If not supplied, all resourceId values are reviewed.

Response

If successful, this action returns a 204 No Content response code.

Examples

Example: Record decisions in bulk for a stage

Request

POST https://graph.microsoft.com/v1.0/identityGovernance/accessReviews/definitions/2b83cc42-09db-46f6-8c6e-16fec466a82d/instances/61a617dd-238f-4037-8fa5-d800e515f5bc/stages/5d431f4b-56f2-4a50-938b-fb1e4e2c91b9/batchRecordDecisions
Content-Type: application/json

{
  "decision": "Approve",
  "justification": "All principals with access need continued access to the resource as they are on the same team.",
  "resourceId": "a5c51e59-3fcd-4a37-87a1-835c0c21488a"
}

Response

HTTP/1.1 204 No Content