RoleAssignment Class
Role Assignments.
Variables are only populated by the server, and will be ignored when sending a request.
Constructor
RoleAssignment(*, scope: str | None = None, role_definition_id: str | None = None, principal_id: str | None = None, principal_type: str | _models.PrincipalType | None = None, can_delegate: bool | None = None, **kwargs: Any)
Keyword-Only Parameters
| Name | Description |
|---|---|
|
scope
|
The role assignment scope. Default value: None
|
|
role_definition_id
|
The role definition ID. Default value: None
|
|
principal_id
|
The principal ID. Default value: None
|
|
principal_type
|
str or
PrincipalType
The principal type of the assigned principal ID. Known values are: "User", "Group", "ServicePrincipal", and "ForeignGroup". Default value: None
|
|
can_delegate
|
The Delegation flag for the role assignment. Default value: None
|
Variables
| Name | Description |
|---|---|
|
id
|
The role assignment ID. |
|
name
|
The role assignment name. |
|
type
|
The role assignment type. |
|
scope
|
The role assignment scope. |
|
role_definition_id
|
The role definition ID. |
|
principal_id
|
The principal ID. |
|
principal_type
|
str or
PrincipalType
The principal type of the assigned principal ID. Known values are: "User", "Group", "ServicePrincipal", and "ForeignGroup". |
|
can_delegate
|
The Delegation flag for the role assignment. |