| title | appConsentRequest: filterByCurrentUser |
|---|---|
| description | Retrieve appConsentRequest objects for which the current user is the reviewer. |
| author | eringreenlee |
| ms.localizationpriority | medium |
| ms.subservice | entra-id-governance |
| doc_type | apiPageType |
| ms.date | 08/01/2025 |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Retrieve a collection of appConsentRequest objects for which the current user is the reviewer and the status of the userConsentRequest for accessing the specified app is InProgress.
[!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]
GET /identityGovernance/appConsent/appConsentRequests/filterByCurrentUser(on='parameterValue')In the request URL, provide the following query parameters with values. The following table shows the parameters that can be used with this function.
| Property | Type | Description |
|---|---|---|
| on | consentRequestFilterByCurrentUserOptions | Filter to query appConsentRequest objects for which the current user is a reviewer. Allowed value is reviewer. Required. |
This function requires the $filter (eq) OData query parameter to return a collection of userConsentRequest objects for which the status is InProgress. The function also supports the $select query parameter. For general information, see OData query parameters.
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this method returns a 200 OK response code and a collection of appConsentRequest objects in the response body.
The following example shows a request.
GET https://graph.microsoft.com/beta/identityGovernance/appConsent/appConsentRequests/filterByCurrentUser(on='reviewer')?$filter=userConsentRequests/any(u:u/status eq 'InProgress')
[!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.context": "https://graph.microsoft.com/beta/$metadata#Collection(appConsentRequest)",
"@odata.count": 1,
"value": [
{
"@odata.type": "#microsoft.graph.appConsentRequest",
"id": "7322e5f3-0f15-4eb8-9e82-2029e8622f5d",
"appId": "de8bc8b5-d9f9-48b1-a8ad-b748da725064",
"appDisplayName": "Graph Explorer",
"consentType": "Dynamic",
"pendingScopes": [
{
"displayName": "AccessReview.Read.All"
},
{
"displayName": "openid"
},
{
"displayName": "profile"
},
{
"displayName": "offline_access"
}
],
"userConsentRequests": []
}
]
}