appConsentRequest: filterByCurrentUser

Namespace: microsoft.graph

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.

Permissions

One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) ConsentRequest.Read.All, ConsentRequest.ReadWrite.All
Delegated (personal Microsoft account) Not supported.
Application ConsentRequest.Read.All, ConsentRequest.ReadWrite.All

HTTP request

GET /identityGovernance/appConsent/appConsentRequests/filterByCurrentUser(on='parameterValue')

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 consentRequestFilterByCurrentUserOptions Filter to query appConsentRequest objects for which the current user is a reviewer. Allowed value is reviewer. Required.

Query parameters

This function requires the $filter OData query parameter to return a collection of userConsentRequest objects for which the status is InProgress. For general information, see OData query parameters.

Request headers

Name Description
Authorization Bearer {token}. Required.

Request body

Do not supply a request body for this method.

Response

If successful, this function returns a 200 OK response code and a collection of appConsentRequest objects in the response body.

Example

Request

GET https://graph.microsoft.com/v1.0/identityGovernance/appConsent/appConsentRequests/filterByCurrentUser(on='reviewer')?$filter=userConsentRequests/any(u:u/status eq 'InProgress')

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/v1.0/$metadata#Collection(appConsentRequest)",
  "@odata.count": 1,
  "value": [
    {
      "id": "af330b30-dd59-4482-a848-0fd81b0438ed",
      "appId": "3ca5f23f-94b4-4930-aec9-b8ca0f060e68",
      "appDisplayName": "Moodle",
      "pendingScopes": [],
      "userConsentRequests": []
    }
  ]
}