accessReviewStage: filterByCurrentUser
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.
Return all accessReviewStage objects on a given accessReviewInstance where the calling user is a reviewer on one or more accessReviewInstanceDecisionItem objects.
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.Read.All | AccessReview.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | AccessReview.Read.All | AccessReview.ReadWrite.All |
HTTP request
GET /identityGovernance/accessReviews/definitions/{accessReviewScheduleDefinitionId}/instances/{accessReviewInstanceId}/stages/filterByCurrentUser(on='reviewer')
Function parameters
In the request URL, provide the following query parameters with values. The following table shows the parameters that can be used with this function.
Parameter | Type | Description |
---|---|---|
on | accessReviewStageFilterByCurrentUserOptions | Filters results based on the calling user. Allowed value is reviewer . This returns all accessReviewStage objects on the accessReviewInstance where the calling user is a reviewer. Required. |
This function also supports the $select
, $filter
, $orderby
, $skip
and $top
OData query parameters to help customize the response. For general information, see OData query parameters.
Request headers
Name | Description |
---|---|
Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Request body
Don't supply a request body for this method.
Response
If successful, this function returns a 200 OK
response code and a accessReviewStage collection in the response body.
Examples
Request
GET https://graph.microsoft.com/beta/identityGovernance/accessReviews/definitions/08531375-eff6-4e21-b1a8-de0eb37ec913/instances/86889534-b102-4226-bfce-0c2aeee845df/stages/filterByCurrentUser(on='reviewer')
Response
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#Collection(accessReviewStage)",
"@odata.count": 2,
"value": [
{
"id": "9ac05ca6-396a-469c-8a8b-bcb98fceb2dd",
"startDateTime": "2018-08-03T21:02:30.667Z",
"endDateTime": "2018-08-13T21:17:30.513Z",
"status": "Completed",
"reviewers": [
{
"query": "/groups/46d30af1-e626-4928-83f5-e9bfa400289e/owners?$filter=microsoft.graph.user/userType eq 'Member' and microsoft.graph.user/country eq
'USA'",
"type": "MicrosoftGraph"
}
]
},
{
"id": "03266a48-8731-4cfc-8a60-b2fa6648a14c",
"startDateTime": "2018-08-14T21:02:30.667Z",
"endDateTime": "2018-09-03T21:17:30.513Z",
"status": "InProgress",
"reviewers": [
{
"queryType": "MicrosoftGraph",
"queryRoot": "decisions",
"query": "./manager",
}
]
}
]
}
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for