Skip to Content
bpms.ai

First call

List the roles of your tenant with a session token.

With a token from Authentication, list the roles of your tenant. The call only reads: it never changes the roles. Your user needs the view-roles authority of BPMS 3.x, code 6.2.1.4, which administrators hold.

curl -sS -H "Authorization: Bearer $TOKEN" "$BPMS_URL/api/v1/access/roles?page=0&size=20&sort=name"

Parameters

ParameterDefaultRule
page0Zero-based; a negative value answers 400.
size20Between 1 and 100; 0 answers 400 and a larger value is capped at 100.
sortnamename or id; ties are broken by id. Any other value answers 400.

Answer

{
  "items": [{"id": 1, "name": "...", "description": "..."}],
  "page": 0,
  "size": 20,
  "totalElements": 1,
  "totalPages": 1
}

The list holds only the roles of your tenant; deleted roles are left out.

When something fails

Without a valid token the call answers 401 with the code core.authentication-required:

{
  "type": "about:blank",
  "title": "Unauthorized",
  "status": 401,
  "detail": "...",
  "instance": "/api/v1/access/roles",
  "code": "core.authentication-required",
  "requestId": "..."
}

Without the view-roles authority it answers 403 with the code core.authority-required, and the refusal is recorded in the audit log. Roles and authorities explains how authorities work.

Keep the requestId when you report a problem: it identifies the call in the server logs. The operation is listRoles under the access tag in the OpenAPI document.

On this page