OrganizationRoleGrant
OrganizationRoleGrant Schema¶
Description: A grant of an organization role to a user or group.
Role name → permission set is defined in
:data:`skynet_db.auth.role_permissions.ORGANIZATION_ROLE_PERMISSIONS`.
Exactly one of ``user_id`` / ``group_id`` is set per row.
Properties¶
| Name | Type | Description |
|---|---|---|
| id | Integer |
No description |
| organization_id | Integer |
No description |
| role_name | Enum(owner, device_manager, observing_manager, membership_manager, group_manager, member) |
No description |
| user_id | Integer (Optional) |
No description |
| group_id | Integer (Optional) |
No description |
| grantor_id | Integer (Optional) |
No description |
| granted_on | DateTime |
No description |
Relationships¶
| Relationship Name | Type |
|---|---|
| organization | Organization |
| user | User |
| group | Group |
| grantor | Entity |