Get User Role Assignments
Retrieves all roles currently assigned to a specific user, including both direct role assignments and roles inherited through group memberships. This information is crucial for understanding user permissions and access levels.
Query Parameters
Path Parameters
Response
200 application/json
Response
User role definition with specific permissions and capabilities
Unique identifier for the role
Timestamp when the role was created
Timestamp when the role was last modified
Human-readable name of the role
Detailed description of the role’s purpose and permissions
Whether this role can be deleted (system roles are typically not deletable)
Predefined role type that determines the base permissions
Allowed values:OWNERADMINDEFAULTBASICBILLINGAUDITORSUPPORT
Authentication
Path Parameters
Query Parameters
curl --request GET \
--url https://public-api.cipherscale.com/qa/tenants/users//roles \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'apikey: '{
"id": "id",
"createdAt": "createdAt",
"updatedAt": "updatedAt",
"name": "name",
"description": "description",
"deleteable": false,
"type": "OWNER"
}Modify User Role Assignments
Adds or removes roles from a user’s account. This operation allows administrators to dynamically adjust user permissions by modifying their role assignments. Changes take effect immediately and affect the user’s access to system resources.
Path Parameters
Body
application/json
Body
UpdateUserRoles
Data for adding or removing roles from a user
Array of role IDs to add to the user
Example:["550e8400-e29b-41d4-a716-446655440000"]
Array of role IDs to remove from the user
Example:["550e8400-e29b-41d4-a716-446655440001"]
Response
200
Response
Authentication
Path Parameters
Body
{
"addedRoles": [
"550e8400-e29b-41d4-a716-446655440000"
],
"removedRoles": [
"550e8400-e29b-41d4-a716-446655440001"
]
}curl --request PATCH \
--url https://public-api.cipherscale.com/qa/tenants/users//roles \
--header 'Content-Type: application/json' \
--header 'apikey: ' \
--data '{
"addedRoles": [
"550e8400-e29b-41d4-a716-446655440000"
],
"removedRoles": [
"550e8400-e29b-41d4-a716-446655440001"
]
}'Add User to Group
Associates a user with a specific group, which may grant them additional roles and permissions based on the group’s configuration. Group membership can affect access policies and resource availability.
Path Parameters
Response
201
Response
Authentication
Path Parameters
curl --request POST \
--url https://public-api.cipherscale.com/qa/tenants/users//groups \
--header 'Content-Type: application/json' \
--header 'apikey: 'Remove User from Group
Disassociates a user from a specific group, which may revoke roles and permissions that were granted through group membership. This operation helps maintain proper access control and organizational structure.
Path Parameters
Response
204
Response
Authentication
Path Parameters
curl --request DELETE \
--url https://public-api.cipherscale.com/qa/tenants/users//groups/ \
--header 'Content-Type: application/json' \
--header 'apikey: 'List All Users
Retrieves a paginated list of all users within the tenant, with support for sorting, filtering, and search functionality. This endpoint is essential for user management dashboards and administrative operations.
Query Parameters
Number of items to return per page. Use together with “offset” for pagination. If omitted, a sensible default is applied (e.g., 10). Upper bound may be enforced by the server (e.g., 100).
Number of items to skip before starting to collect results. Use together with “limit”. For page-based navigation, compute as (page × limit). Example: page=2 with limit=25 -> offset=50.
Response
application/json
Response
Successfully retrieved users
PaginatedResponse
Paginated response containing data and pagination metadata
Array of items for the current page
Total number of items across all pages for the given filters. Use this with “limit” to compute total pages: totalPages = ceil(total / limit).
Current page index (0-based). For offset-based pagination, page = floor(offset / limit). For page[] style, this equals the N used in page[offset] = N × page[limit].
Number of items per page returned in this response. Mirrors the query “limit” or “page[limit]” parameter used for the request.
Whether there are more pages available
Whether there are previous pages available
Authentication
Query Parameters
curl --request GET \
--url https://public-api.cipherscale.com/qa/tenants/users \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'apikey: '{
"data": [
"[]"
],
"total": 0,
"page": 0,
"limit": 0,
"hasNext": false,
"hasPrevious": false
}