Share via


OAuth2PermissionGrantOperationsExtensions.Create Method

Definition

Grants OAuth2 permissions for the relevant resource Ids of an app.

public static Microsoft.Azure.Graph.RBAC.Models.OAuth2PermissionGrant Create (this Microsoft.Azure.Graph.RBAC.IOAuth2PermissionGrantOperations operations, Microsoft.Azure.Graph.RBAC.Models.OAuth2PermissionGrant body = default);
static member Create : Microsoft.Azure.Graph.RBAC.IOAuth2PermissionGrantOperations * Microsoft.Azure.Graph.RBAC.Models.OAuth2PermissionGrant -> Microsoft.Azure.Graph.RBAC.Models.OAuth2PermissionGrant
<Extension()>
Public Function Create (operations As IOAuth2PermissionGrantOperations, Optional body As OAuth2PermissionGrant = Nothing) As OAuth2PermissionGrant

Parameters

operations
IOAuth2PermissionGrantOperations

The operations group for this extension method.

body
OAuth2PermissionGrant

The relevant app Service Principal Object Id and the Service Principal Object Id you want to grant.

Returns

Applies to