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.
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 (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.
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.
GET https://graph.microsoft.com/v1.0/identityGovernance/appConsent/appConsentRequests/filterByCurrentUser(on='reviewer')?$filter=userConsentRequests/any(u:u/status eq 'InProgress')
// Code snippets are only available for the latest version. Current version is 5.x
var graphClient = new GraphServiceClient(requestAdapter);
var result = await graphClient.IdentityGovernance.AppConsent.AppConsentRequests.FilterByCurrentUserWithOn("reviewer").GetAsync((requestConfiguration) =>
{
requestConfiguration.QueryParameters.Filter = "userConsentRequests/any(u:u/status eq 'InProgress')";
});
// THE CLI IS IN PREVIEW. NON-PRODUCTION USE ONLY
mgc identity-governance app-consent app-consent-requests filter-by-current-user-with-on get --on {on-id} --filter "userConsentRequests/any(u:u/status eq 'InProgress')"
<?php
// THIS SNIPPET IS A PREVIEW VERSION OF THE SDK. NON-PRODUCTION USE ONLY
$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);
$requestConfiguration = new FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration();
$queryParameters = FilterByCurrentUserWithOnRequestBuilderGetRequestConfiguration::createQueryParameters();
$queryParameters->filter = "userConsentRequests/any(u:u/status eq 'InProgress')";
$requestConfiguration->queryParameters = $queryParameters;
$result = $graphServiceClient->identityGovernance()->appConsent()->appConsentRequests()->filterByCurrentUserWithOn('reviewer', )->get($requestConfiguration)->wait();