Sdílet prostřednictvím


RoleAssignmentCreateParameters Constructors

Definition

Overloads

RoleAssignmentCreateParameters()

Initializes a new instance of the RoleAssignmentCreateParameters class.

RoleAssignmentCreateParameters(String, String, PrincipalType, Nullable<Boolean>)

Initializes a new instance of the RoleAssignmentCreateParameters class.

RoleAssignmentCreateParameters()

Initializes a new instance of the RoleAssignmentCreateParameters class.

public RoleAssignmentCreateParameters ();
Public Sub New ()

Applies to

RoleAssignmentCreateParameters(String, String, PrincipalType, Nullable<Boolean>)

Initializes a new instance of the RoleAssignmentCreateParameters class.

public RoleAssignmentCreateParameters (string roleDefinitionId, string principalId, Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.PrincipalType principalType = default, bool? canDelegate = default);
new Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.RoleAssignmentCreateParameters : string * string * Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.PrincipalType * Nullable<bool> -> Microsoft.Azure.Management.Graph.RBAC.Fluent.Models.RoleAssignmentCreateParameters
Public Sub New (roleDefinitionId As String, principalId As String, Optional principalType As PrincipalType = Nothing, Optional canDelegate As Nullable(Of Boolean) = Nothing)

Parameters

roleDefinitionId
String

The role definition ID used in the role assignment.

principalId
String

The principal ID assigned to the role. This maps to the ID inside the Active Directory. It can point to a user, service principal, or security group.

principalType
PrincipalType

The principal type of the assigned principal ID. Possible values include: 'User', 'Group', 'ServicePrincipal', 'Unknown', 'DirectoryRoleTemplate', 'ForeignGroup', 'Application', 'MSI', 'DirectoryObjectOrGroup', 'Everyone'

canDelegate
Nullable<Boolean>

The delegation flag used for creating a role assignment

Applies to