title | description | ms.localizationpriority | author | ms.subservice | doc_type |
---|---|---|---|---|---|
List accessReviewInstanceDecisionItem pending approval |
Retrieve accessReviewInstanceDecisionItem objects pending approval by the calling user. |
medium |
jyothig123 |
entra-id-governance |
apiPageType |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Note
This method will be deprecated and will stop returning data on May 19, 2023. It has been replaced by filterByCurrentUser.
Retrieve the accessReviewInstanceDecisionItem objects for a specific accessReviewInstance pending approval by the calling user. A list of zero or more accessReviewInstanceDecisionItem objects are returned, including all of their nested properties.
[!INCLUDE national-cloud-support]
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.
[!INCLUDE permissions-table]
The signed-in user will also only see decisions of which they are assigned reviewer in that decision's instance's accessReviewScheduleDefinition.
GET /me/pendingAccessReviewInstances/{instance-id}/decisions
This method supports $skip
and $top
OData query parameters to help customize the response. For general information, see OData query parameters.
The default page size for this API is 100 accessReviewInstanceDecisionItem objects. To improve efficiency and avoid timeouts due to large result sets, apply pagination using the $skip
and $top
query parameters. For more information, see Paging Microsoft Graph data in your app.
None.
Do not supply a request body.
If successful, this method returns a 200 OK
response code and an array of accessReviewInstanceDecisionItem objects in the response body.
The following example shows a request to retrieve all the decisions on an instance of an access review pending the calling user's approval.
GET https://graph.microsoft.com/beta/me/pendingAccessReviewInstances/70a68410-67f3-4d4c-b946-6989e050be19/decisions?$top=100&$skip=0
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-type: application/json
{
"@odata.count": 2,
"value": [
{
"id": "654b34e7-b48f-4772-a2d4-08f1d0dd014c",
"accessReviewId": "70a68410-67f3-4d4c-b946-6989e050be19",
"reviewedDateTime": null,
"decision": "NotReviewed",
"justification": "",
"appliedDateTime": null,
"applyResult": "New",
"recommendation": "Approve",
"reviewedBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "",
"userPrincipalName": ""
},
"appliedBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "",
"userPrincipalName": ""
},
"target": {
"@odata.type": "#microsoft.graph.accessReviewInstanceDecisionItemUserTarget",
"userId": "7eae986b-d425-48b2-adf2-3c777f6256f3",
"userDisplayName": "Adele Vance",
"userPrincipalName": "AdeleV@contoso.com"
}
},
{
"id": "0311dba4-c60c-412e-ac77-14e1da23daf1",
"accessReviewId": "70a68410-67f3-4d4c-b946-6989e050be19",
"reviewedDateTime": null,
"decision": "NotReviewed",
"justification": "",
"appliedDateTime": null,
"applyResult": "New",
"recommendation": "Approve",
"reviewedBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "",
"userPrincipalName": ""
},
"appliedBy": {
"id": "00000000-0000-0000-0000-000000000000",
"displayName": "",
"userPrincipalName": ""
},
"target": {
"@odata.type": "#microsoft.graph.accessReviewInstanceDecisionItemUserTarget",
"userId": "957f1027-c0ee-460d-9269-b8828e59e0fe",
"userDisplayName": "MOD Administrator",
"userPrincipalName": "admin@contoso.com"
}
}
]
}