RoleAssignment Class

Role Assignments.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
RoleAssignment

Constructor

RoleAssignment(*, scope: Optional[str] = None, role_definition_id: Optional[str] = None, principal_id: Optional[str] = None, 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

scope
str
Required

The role assignment scope.

role_definition_id
str
Required

The role definition ID.

principal_id
str
Required

The principal ID.

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 for the role assignment.

Variables

id
str

The role assignment ID.

name
str

The role assignment name.

type
str

The role assignment type.