Skip to main content

access_reviews_definitions_instances

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

Overview

Nameaccess_reviews_definitions_instances
TypeResource
Identra_id.identity_governance.access_reviews_definitions_instances

Fields

The following fields are returned by SELECT queries:

Retrieved navigation property

NameDatatypeDescription
idstringThe unique identifier for an entity. Read-only.
contactedReviewersarrayReturns the collection of reviewers who were contacted to complete this review. While the reviewers and fallbackReviewers properties of the accessReviewScheduleDefinition might specify group owners or managers as reviewers, contactedReviewers returns their individual identities. Supports $select. Read-only.
decisionsarrayEach user reviewed in an accessReviewInstance has a decision item representing if they were approved, denied, or not yet reviewed.
endDateTimestring (date-time)DateTime when review instance is scheduled to end.The DatetimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $select. 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 will be 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 does not exist, or manager is specified as reviewer but a user's manager does not exist. Supports $select.
reviewersarrayThis collection of access review scopes is used to define who the reviewers are. Supports $select. For examples of options for assigning reviewers, see Assign reviewers to your access review definition using the Microsoft Graph API.
scopeCreated based on scope and instanceEnumerationScope at the accessReviewScheduleDefinition level. Defines the scope of users reviewed in a group. Supports $select and $filter (contains only). Read-only.
stagesarrayIf the instance has multiple stages, this returns the collection of stages. A new stage will only be created when the previous stage ends. The existence, number, and settings of stages on a review instance are created based on the accessReviewStageSettings on the parent accessReviewScheduleDefinition.
startDateTimestring (date-time)DateTime when review instance is scheduled to start. May be in the future. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Supports $select. 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 accessReview. Possible values: Initializing, NotStarted, Starting, InProgress, Completing, Completed, AutoReviewing, and AutoReviewed. Supports $select, $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_idRead the properties and relationships of an accessReviewInstance object.
listselectaccess_review_schedule_definition_idGet a list of the accessReviewInstance objects and their properties.
insertinsertaccess_review_schedule_definition_id
updateupdateaccess_review_schedule_definition_id, access_review_instance_idUpdate the properties of an accessReviewInstance object. Only the reviewers and fallbackReviewers properties can be updated but the scope property is also required in the request body. You can only add reviewers to the fallbackReviewers property but can't remove existing fallbackReviewers. To update an accessReviewInstance, it's status must be InProgress.
deletedeleteaccess_review_schedule_definition_id, access_review_instance_idIf-Match
accept_recommendationsexecaccess_review_schedule_definition_id, access_review_instance_idAllows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed on an accessReviewInstance object for which the calling user is a reviewer.
apply_decisionsexecaccess_review_schedule_definition_id, access_review_instance_idApply review decisions on an accessReviewInstance if the decisions were not applied automatically because the autoApplyDecisionsEnabled property is false in the review's accessReviewScheduleSettings. The status of the accessReviewInstance must be Completed to call this method.
batch_record_decisionsexecaccess_review_schedule_definition_id, access_review_instance_idEnables reviewers to review all accessReviewInstanceDecisionItem objects in batches by using principalId, resourceId, or neither.
reset_decisionsexecaccess_review_schedule_definition_id, access_review_instance_idResets all accessReviewInstanceDecisionItem objects on an accessReviewInstance to notReviewed.
send_reminderexecaccess_review_schedule_definition_id, access_review_instance_idSend a reminder to the reviewers of an active accessReviewInstance.
stopexecaccess_review_schedule_definition_id, access_review_instance_idStop a currently active accessReviewInstance. After the access review instance stops, the instance status is marked as Completed, the reviewers can no longer give input, and the access review decisions are applied. Stopping an instance will not stop future instances. To prevent a recurring access review from starting future instances, update the schedule definition to change its scheduled end date.

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
If-MatchstringETag

SELECT examples

Read the properties and relationships of an accessReviewInstance object.

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

INSERT examples

No description available.

INSERT INTO entra_id.identity_governance.access_reviews_definitions_instances (
id,
endDateTime,
fallbackReviewers,
reviewers,
scope,
startDateTime,
status,
contactedReviewers,
decisions,
stages,
access_review_schedule_definition_id
)
SELECT
'{{ id }}',
'{{ endDateTime }}',
'{{ fallbackReviewers }}',
'{{ reviewers }}',
'{{ scope }}',
'{{ startDateTime }}',
'{{ status }}',
'{{ contactedReviewers }}',
'{{ decisions }}',
'{{ stages }}',
'{{ access_review_schedule_definition_id }}'
RETURNING
id,
contactedReviewers,
decisions,
endDateTime,
fallbackReviewers,
reviewers,
scope,
stages,
startDateTime,
status
;

UPDATE examples

Update the properties of an accessReviewInstance object. Only the reviewers and fallbackReviewers properties can be updated but the scope property is also required in the request body. You can only add reviewers to the fallbackReviewers property but can't remove existing fallbackReviewers. To update an accessReviewInstance, it's status must be InProgress.

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

DELETE examples

No description available.

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

Lifecycle Methods

Allows the acceptance of recommendations on all accessReviewInstanceDecisionItem objects that haven't been reviewed on an accessReviewInstance object for which the calling user is a reviewer.

EXEC entra_id.identity_governance.access_reviews_definitions_instances.accept_recommendations
@access_review_schedule_definition_id='{{ access_review_schedule_definition_id }}' --required,
@access_review_instance_id='{{ access_review_instance_id }}' --required
;