OAuth2PermissionGrant Class

OAuth2PermissionGrant.

Inheritance
OAuth2PermissionGrant

Constructor

OAuth2PermissionGrant(*, odatatype: Optional[str] = None, client_id: Optional[str] = None, object_id: Optional[str] = None, consent_type=None, principal_id: Optional[str] = None, resource_id: Optional[str] = None, scope: Optional[str] = None, start_time: Optional[str] = None, expiry_time: Optional[str] = None, **kwargs)

Parameters

odatatype
str
Required

Microsoft.DirectoryServices.OAuth2PermissionGrant

client_id
str
Required

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

object_id
str
Required

The id of the permission grant

consent_type
str or ConsentType
Required

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

principal_id
str
Required

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

resource_id
str
Required

Object Id of the resource you want to grant

scope
str
Required

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

start_time
str
Required

Start time for TTL

expiry_time
str
Required

Expiry time for TTL