Dela via


OAuth2Permission Constructors

Definition

Overloads

OAuth2Permission()

Initializes a new instance of the OAuth2Permission class.

OAuth2Permission(String, String, String, Nullable<Boolean>, String, String, String, String)

Initializes a new instance of the OAuth2Permission class.

OAuth2Permission()

Initializes a new instance of the OAuth2Permission class.

public OAuth2Permission ();
Public Sub New ()

Applies to

OAuth2Permission(String, String, String, Nullable<Boolean>, String, String, String, String)

Initializes a new instance of the OAuth2Permission class.

public OAuth2Permission (string adminConsentDescription = default, string adminConsentDisplayName = default, string id = default, bool? isEnabled = default, string type = default, string userConsentDescription = default, string userConsentDisplayName = default, string value = default);
new Microsoft.Azure.Graph.RBAC.Models.OAuth2Permission : string * string * string * Nullable<bool> * string * string * string * string -> Microsoft.Azure.Graph.RBAC.Models.OAuth2Permission
Public Sub New (Optional adminConsentDescription As String = Nothing, Optional adminConsentDisplayName As String = Nothing, Optional id As String = Nothing, Optional isEnabled As Nullable(Of Boolean) = Nothing, Optional type As String = Nothing, Optional userConsentDescription As String = Nothing, Optional userConsentDisplayName As String = Nothing, Optional value As String = Nothing)

Parameters

adminConsentDescription
String

Permission help text that appears in the admin consent and app assignment experiences.

adminConsentDisplayName
String

Display name for the permission that appears in the admin consent and app assignment experiences.

id
String

Unique scope permission identifier inside the oauth2Permissions collection.

isEnabled
Nullable<Boolean>

When creating or updating a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed.

type
String

Specifies whether this scope permission can be consented to by an end user, or whether it is a tenant-wide permission that must be consented to by a Company Administrator. Possible values are "User" or "Admin".

userConsentDescription
String

Permission help text that appears in the end user consent experience.

userConsentDisplayName
String

Display name for the permission that appears in the end user consent experience.

value
String

The value of the scope claim that the resource application should expect in the OAuth 2.0 access token.

Applies to