List all system roles
const url = 'http://localhost:3000/api/v1/system-roles?role=SUPERUSER';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3000/api/v1/system-roles?role=SUPERUSER' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Filter by user ID
Filter by role type
Filter by active status
Number of items to return
Number of items to skip
Header Parameters
Section titled “Header Parameters”UUID of the organization (tenant) the request acts in. It selects the tenant and grants nothing: the server checks membership or an open tenant switch. Not needed for global operations. A malformed value returns 400. API keys are fixed to their own organization; another organization returns 403. The x-organization-source header grants nothing.
Responses
Section titled “Responses”object
List of system roles
object
System role record ID
User ID who has this role
User email
User name
Role type
When the role was granted
User ID who granted the role (null if granter was deleted)
Email of user who granted the role (null if granter was deleted)
Reason for granting
When the role was revoked (null if active)
User ID who revoked the role
Email of user who revoked the role
Whether the role is currently active
Total count
Whether there are more items
Example
{ "items": [ { "role": "SUPERUSER" } ]}