Skip to main content

access_reviews_definitions_instances_stages

Creates, updates, deletes, gets or lists an access_reviews_definitions_instances_stages resource.

Overview

Nameaccess_reviews_definitions_instances_stages
TypeResource
Identra_id.identity_governance.access_reviews_definitions_instances_stages

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
decisionsarrayEach user reviewed in an accessReviewStage has a decision item representing if they were approved, denied, or not yet reviewed.
endDateTimestring (date-time)The date and time in ISO 8601 format and UTC time when the review stage is scheduled to end. This property is the cumulative total of the durationInDays for all stages. Read-only. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
fallbackReviewersarrayThis collection of reviewer scopes is used to define the list of fallback reviewers. These fallback reviewers are notified to take action if no users are found from the list of reviewers specified. This could occur when either the group owner is specified as the reviewer but the group owner doesn't exist, or manager is specified as reviewer but a user's manager doesn't exist.
reviewersarrayThis collection of access review scopes is used to define who the reviewers are. For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API.
startDateTimestring (date-time)The date and time in ISO 8601 format and UTC time when the review stage is scheduled to start. Read-only. (pattern: ^[0-9]{4,}-(0[1-9]|1[012])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]([.][0-9]{1,12})?(Z|[+-][0-9][0-9]:[0-9][0-9])$)
statusstringSpecifies the status of an accessReviewStage. Possible values: Initializing, NotStarted, Starting, InProgress, Completing, Completed, AutoReviewing, and AutoReviewed. Supports $orderby, and $filter (eq only). Read-only.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectaccess_review_schedule_definition_id, access_review_instance_id, access_review_stage_idRetrieve the properties and relationships of an accessReviewStage object.
listselectaccess_review_schedule_definition_id, access_review_instance_idRetrieve the stages in a multi-stage access review instance.
insertinsertaccess_review_schedule_definition_id, access_review_instance_id
updateupdateaccess_review_schedule_definition_id, access_review_instance_id, access_review_stage_idUpdate the properties of an accessReviewStage object. Only the reviewers and fallbackReviewers properties can be updated. You can only add reviewers to the fallbackReviewers property but can't remove existing fallbackReviewers. To update an accessReviewStage, its status must be NotStarted, Initializing, or InProgress.
deletedeleteaccess_review_schedule_definition_id, access_review_instance_id, access_review_stage_idIf-Match
stopexecaccess_review_schedule_definition_id, access_review_instance_id, access_review_stage_idStop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
access_review_instance_idstringThe unique identifier of accessReviewInstance
access_review_schedule_definition_idstringThe unique identifier of accessReviewScheduleDefinition
access_review_stage_idstringThe unique identifier of accessReviewStage
If-MatchstringETag

SELECT examples

Retrieve the properties and relationships of an accessReviewStage object.

SELECT
id,
decisions,
endDateTime,
fallbackReviewers,
reviewers,
startDateTime,
status
FROM entra_id.identity_governance.access_reviews_definitions_instances_stages
WHERE access_review_schedule_definition_id = '{{ access_review_schedule_definition_id }}' -- required
AND access_review_instance_id = '{{ access_review_instance_id }}' -- required
AND access_review_stage_id = '{{ access_review_stage_id }}' -- required
;

INSERT examples

No description available.

INSERT INTO entra_id.identity_governance.access_reviews_definitions_instances_stages (
id,
endDateTime,
fallbackReviewers,
reviewers,
startDateTime,
status,
decisions,
access_review_schedule_definition_id,
access_review_instance_id
)
SELECT
'{{ id }}',
'{{ endDateTime }}',
'{{ fallbackReviewers }}',
'{{ reviewers }}',
'{{ startDateTime }}',
'{{ status }}',
'{{ decisions }}',
'{{ access_review_schedule_definition_id }}',
'{{ access_review_instance_id }}'
RETURNING
id,
decisions,
endDateTime,
fallbackReviewers,
reviewers,
startDateTime,
status
;

UPDATE examples

Update the properties of an accessReviewStage object. Only the reviewers and fallbackReviewers properties can be updated. You can only add reviewers to the fallbackReviewers property but can't remove existing fallbackReviewers. To update an accessReviewStage, its status must be NotStarted, Initializing, or InProgress.

UPDATE entra_id.identity_governance.access_reviews_definitions_instances_stages
SET
id = '{{ id }}',
endDateTime = '{{ endDateTime }}',
fallbackReviewers = '{{ fallbackReviewers }}',
reviewers = '{{ reviewers }}',
startDateTime = '{{ startDateTime }}',
status = '{{ status }}',
decisions = '{{ decisions }}'
WHERE
access_review_schedule_definition_id = '{{ access_review_schedule_definition_id }}' --required
AND access_review_instance_id = '{{ access_review_instance_id }}' --required
AND access_review_stage_id = '{{ access_review_stage_id }}' --required
RETURNING
id,
decisions,
endDateTime,
fallbackReviewers,
reviewers,
startDateTime,
status;

DELETE examples

No description available.

DELETE FROM entra_id.identity_governance.access_reviews_definitions_instances_stages
WHERE access_review_schedule_definition_id = '{{ access_review_schedule_definition_id }}' --required
AND access_review_instance_id = '{{ access_review_instance_id }}' --required
AND access_review_stage_id = '{{ access_review_stage_id }}' --required
AND If-Match = '{{ If-Match }}'
;

Lifecycle Methods

Stop an access review stage that is inProgress. After the access review stage stops, the stage status will be Completed and the reviewers can no longer give input. If there are subsequent stages that depend on the completed stage, the next stage will be created. The accessReviewInstanceDecisionItem objects will always reflect the last decisions recorded across all stages at that given time, regardless of the status of the stages.

EXEC entra_id.identity_governance.access_reviews_definitions_instances_stages.stop
@access_review_schedule_definition_id='{{ access_review_schedule_definition_id }}' --required,
@access_review_instance_id='{{ access_review_instance_id }}' --required,
@access_review_stage_id='{{ access_review_stage_id }}' --required
;