다음을 통해 공유


OAuth2PermissionGrant Constructors

Definition

Overloads

OAuth2PermissionGrant()

Initializes a new instance of the OAuth2PermissionGrant class.

OAuth2PermissionGrant(String, String, String, String, String, String, String, String, String)

Initializes a new instance of the OAuth2PermissionGrant class.

OAuth2PermissionGrant()

Initializes a new instance of the OAuth2PermissionGrant class.

public OAuth2PermissionGrant ();
Public Sub New ()

Applies to

OAuth2PermissionGrant(String, String, String, String, String, String, String, String, String)

Initializes a new instance of the OAuth2PermissionGrant class.

public OAuth2PermissionGrant (string odatatype = default, string clientId = default, string objectId = default, string consentType = default, string principalId = default, string resourceId = default, string scope = default, string startTime = default, string expiryTime = default);
new Microsoft.Azure.Graph.RBAC.Models.OAuth2PermissionGrant : string * string * string * string * string * string * string * string * string -> Microsoft.Azure.Graph.RBAC.Models.OAuth2PermissionGrant
Public Sub New (Optional odatatype As String = Nothing, Optional clientId As String = Nothing, Optional objectId As String = Nothing, Optional consentType As String = Nothing, Optional principalId As String = Nothing, Optional resourceId As String = Nothing, Optional scope As String = Nothing, Optional startTime As String = Nothing, Optional expiryTime As String = Nothing)

Parameters

odatatype
String

Microsoft.DirectoryServices.OAuth2PermissionGrant

clientId
String

The id of the resource's service principal granted consent to impersonate the user when accessing the resource (represented by the resourceId property).

objectId
String

The id of the permission grant

consentType
String

Indicates if consent was provided by the administrator (on behalf of the organization) or by an individual. Possible values include: 'AllPrincipals', 'Principal'

principalId
String

When consent type is Principal, this property specifies the id of the user that granted consent and applies only for that user.

resourceId
String

Object Id of the resource you want to grant

scope
String

Specifies the value of the scope claim that the resource application should expect in the OAuth 2.0 access token. For example, User.Read

startTime
String

Start time for TTL

expiryTime
String

Expiry time for TTL

Applies to