User Permissions
Operations Summary
| Method | Endpoint | Description |
|---|---|---|
| Core CRUD | ||
| GET | /api/user-permissions/ |
List user permissions |
| GET | /api/user-permissions/{uuid}/ |
Get permission details |
| Other Actions | ||
| POST | /api/user-permissions/{uuid}/restore/ |
Restore a revoked user role |
| POST | /api/user-permissions/{uuid}/revoke/ |
Revoke a user role |
Core CRUD
List user permissions
Get a list of all permissions for the current user. Staff and support users can view all user permissions. The list can be filtered by user, scope, role, etc. By default only active grants are returned; staff and support can pass show_inactive=true to include revoked grants (the full history).
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 | |
- Model Source:
OfferingPermissionOEnum - API Source:
user_permissions_list
1 2 3 4 5 6 7 8 9 10 | |
| Name | Type | Description |
|---|---|---|
created |
string (date-time) | Created after |
created_before |
string (date-time) | Created before |
expiration_time |
string (date-time) | |
full_name |
string | User full name contains |
is_active |
boolean | |
modified |
string (date-time) | Modified after |
modified_before |
string (date-time) | Modified before |
native_name |
string | |
o |
array | Ordering |
page |
integer | A page number within the paginated result set. |
page_size |
integer | Number of results to return per page. |
role_name |
string | Role name contains |
role_uuid |
string (uuid) | Role UUID |
scope_name |
string | Scope name |
scope_type |
string | Scope type |
scope_uuid |
string | Scope UUID |
show_inactive |
boolean | Staff/support only. Include revoked (inactive) role grants in addition to active ones. Ignored for other users, who only ever see their own active roles. |
user |
string (uuid) | |
user_slug |
string | User slug contains |
user_url |
string (uri) | |
username |
string |
200 -
The response body is an array of objects, where each object has the following structure:
| Field | Type |
|---|---|
uuid |
string (uuid) |
user_uuid |
string (uuid) |
user_name |
string |
user_slug |
string |
created |
string (date-time) |
expiration_time |
string (date-time) |
is_active |
boolean |
created_by_full_name |
string |
created_by_username |
string |
revoked_by_full_name |
string |
revoked_by_username |
string |
revoke_reason |
string |
role_name |
string |
role_description |
string |
role_uuid |
string (uuid) |
scope_type |
string |
scope_uuid |
string (uuid) |
scope_name |
string |
scope_is_removed |
boolean |
customer_uuid |
string (uuid) |
customer_name |
string |
resource_uuid |
string (uuid) |
project_uuid |
string (uuid) |
Get permission details
Retrieve the details of a specific user permission grant by its UUID.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 | |
- API Source:
user_permissions_retrieve
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
200 -
| Field | Type |
|---|---|
uuid |
string (uuid) |
user_uuid |
string (uuid) |
user_name |
string |
user_slug |
string |
created |
string (date-time) |
expiration_time |
string (date-time) |
is_active |
boolean |
created_by_full_name |
string |
created_by_username |
string |
revoked_by_full_name |
string |
revoked_by_username |
string |
revoke_reason |
string |
role_name |
string |
role_description |
string |
role_uuid |
string (uuid) |
scope_type |
string |
scope_uuid |
string (uuid) |
scope_name |
string |
scope_is_removed |
boolean |
customer_uuid |
string (uuid) |
customer_name |
string |
resource_uuid |
string (uuid) |
project_uuid |
string (uuid) |
Other Actions
Restore a revoked user role
Restores a previously revoked user role grant, reinstating the associated permissions immediately. Restoring a role whose scope (e.g. a project) has been soft-deleted is not allowed.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
UserRolePermissionActionRequest - API Source:
user_permissions_restore
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
reason |
string |
200 - Role restored successfully.
Revoke a user role
Revokes a specific user role grant, deactivating the associated permissions immediately.
1 2 3 4 | |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | |
- Model Source:
UserRolePermissionActionRequest - API Source:
user_permissions_revoke
1 2 3 4 5 6 7 8 9 10 11 12 13 | |
| Name | Type | Required |
|---|---|---|
uuid |
string (uuid) | ✓ |
| Field | Type | Required |
|---|---|---|
reason |
string |
200 - Role revoked successfully.