RoleAssignmentCreateParameters Class

Role assignment create parameters.

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

Inheritance
RoleAssignmentCreateParameters

Constructor

RoleAssignmentCreateParameters(*, role_definition_id: str, principal_id: str, principal_type: Optional[Union[str, azure.mgmt.authorization.v2018_09_01_preview.models._authorization_management_client_enums.PrincipalType]] = None, can_delegate: Optional[bool] = None, **kwargs)

Parameters

role_definition_id
str
Required

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

principal_id
str
Required

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

principal_type
str or PrincipalType
Required

The principal type of the assigned principal ID. Possible values include: "User", "Group", "ServicePrincipal", "ForeignGroup".

can_delegate
bool
Required

The delegation flag used for creating a role assignment.