Share via


OAuth2PermissionGrantOperationsExtensions.ListAsync Method

Definition

Queries OAuth2 permissions grants for the relevant SP ObjectId of an app.

public static System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Graph.RBAC.Models.OAuth2PermissionGrant>> ListAsync (this Microsoft.Azure.Graph.RBAC.IOAuth2PermissionGrantOperations operations, string filter = default, System.Threading.CancellationToken cancellationToken = default);
static member ListAsync : Microsoft.Azure.Graph.RBAC.IOAuth2PermissionGrantOperations * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.Azure.IPage<Microsoft.Azure.Graph.RBAC.Models.OAuth2PermissionGrant>>
<Extension()>
Public Function ListAsync (operations As IOAuth2PermissionGrantOperations, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IPage(Of OAuth2PermissionGrant))

Parameters

operations
IOAuth2PermissionGrantOperations

The operations group for this extension method.

filter
String

This is the Service Principal ObjectId associated with the app

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to