Compartilhar via


RoleAssignmentCreateParameters Class

Role assignment create parameters.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.authorization._serialization.Model
RoleAssignmentCreateParameters

Constructor

RoleAssignmentCreateParameters(*, role_definition_id: str, principal_id: str, principal_type: str | _models.PrincipalType | None = None, can_delegate: bool | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
role_definition_id
str

The role definition ID used in the role assignment. Required.

principal_id
str

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. Required.

principal_type

The principal type of the assigned principal ID. Known values are: "User", "Group", "ServicePrincipal", and "ForeignGroup".

can_delegate

The delegation flag used for creating a role assignment.

Variables

Name Description
role_definition_id
str

The role definition ID used in the role assignment. Required.

principal_id
str

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. Required.

principal_type

The principal type of the assigned principal ID. Known values are: "User", "Group", "ServicePrincipal", and "ForeignGroup".

can_delegate

The delegation flag used for creating a role assignment.