Role Management
Roles are how a user gains access to a workspace. Consentio owns the role catalogue: it creates the roles, it keeps them consistent, and it does not let them be edited from outside. Your side of the arrangement is to read the catalogue and bind your users and groups to the roles you find there.
The role catalogue
Every workspace linked to your organisation carries the same three roles.
externalId |
displayName |
Grants on the workspace |
|---|---|---|
consentio-admin |
Administrator | Full access, including managing the workspace itself |
consentio-editor |
Editor | Create and change the workspace's data |
consentio-viewer |
Viewer | Read-only access |
The externalId is the stable identifier. It is the same on every workspace and across every environment, which makes it the right thing to key your mapping on. The id is a UUID, unique per workspace, and it is what you send when you assign a role.
So an organisation with four workspaces has twelve roles: three per workspace, distinguished by their scopeId.
Reading the catalogue
List roles
GET /v2/scim2/Roles
Authorization: Bearer <token>
Response:
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:ListResponse"],
"totalResults": 6,
"startIndex": 1,
"itemsPerPage": 6,
"Resources": [
{
"schemas": ["urn:consentio:params:scim:schemas:Role:1.0"],
"id": "3f1a8c24-5b6d-4a2e-9c77-0b1d2e3f4a5b",
"externalId": "consentio-editor",
"displayName": "Editor",
"scope": "workspace",
"scopeId": "a7d93e10-24c8-4f5b-8e6a-11b2c3d4e5f6",
"attributes": { "system": true },
"meta": {
"resourceType": "Role",
"created": "2026-02-11T09:14:02Z",
"lastModified": "2026-02-11T09:14:02Z",
"location": "https://api.consentio.co/v2/scim2/Roles/3f1a8c24-5b6d-4a2e-9c77-0b1d2e3f4a5b"
}
}
],
"meta": { "resourceType": "ListResponse" }
}
The Resources list is abbreviated here: a real response carries all six roles.
itemsPerPage reports how many roles are on this page. Keep count at 200 or below, advance startIndex by that same count, and stop once it passes totalResults. A larger count is reduced to 200, so paging by the value you sent would skip roles.
scope is workspace and scopeId is the workspace the role grants access on. attributes.system marks a role as Consentio-managed.
Role listing accepts filter=displayName eq "…" and filter=externalId eq "…". Because the same externalId appears once per workspace, a filter on it returns one role per workspace rather than one role, so read scopeId to pick the one you want.
The catalogue is small and changes only when a workspace is added, so reading it once and building your own map from (scopeId, externalId) to id is still the cheaper approach for a full synchronisation run. Refresh the map when an assignment fails with 400 invalid role id.
Get one role
GET /v2/scim2/Roles/{id}
Authorization: Bearer <token>
Role attributes
| Attribute | Type | Description |
|---|---|---|
id |
string | Consentio's identifier, a UUID. This is what you assign. |
externalId |
string | Stable role key: consentio-admin, consentio-editor or consentio-viewer |
displayName |
string | Human-readable name |
scope |
string | workspace for the roles that grant access |
scopeId |
string | The workspace the role applies to |
attributes |
object | Consentio metadata; {"system": true} on a managed role |
permissions |
array | The underlying permission set. Omitted for provisioning tokens, which do not manage it. |
What you cannot change
Creating, replacing, patching and deleting roles require the scim:roles permission, which Consentio reserves to itself. A provisioning token is refused with 403.
Even with that permission, the three managed roles are immutable:
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:Error"],
"detail": "system roles are managed by Consentio and cannot be changed",
"status": "403"
}
This is deliberate. The roles are the contract between your directory and the access Consentio grants; if they could drift, every assignment you made would mean something slightly different.
How access is derived
A user's role on a workspace is never set directly. Consentio derives it, and recalculates it whenever something that feeds into it changes.
Roles assigned to the user ──┐
├──▶ highest role wins ──▶ the user's access on that workspace
Roles assigned to the user's ┘
groups
The rules, in full:
- Gather every role that reaches the user on a workspace, whether assigned to them directly or to a group they belong to.
- The highest of those roles is their access: Administrator beats Editor, which beats Viewer.
- If no role reaches them, they are removed from the workspace.
- A deactivated user is treated as reached by nothing. Their assignments are kept, but their access is withdrawn until they are reactivated.
Recalculation happens as part of the request that causes it, so there is no synchronisation delay: assign a role, add someone to a group, deactivate an account, and the access is correct by the time you get your response.
Worked example
A user is in the Buyers group, which holds Viewer on the Procurement workspace, and is also assigned Editor on that workspace directly.
| Change | Resulting access on Procurement |
|---|---|
| Initial state | Editor — the higher of the two |
| Direct Editor assignment removed | Viewer, via the group |
| Also removed from the Buyers group | No access; membership removed |
| Added back to the Buyers group | Viewer |
| Deactivated | No access; assignments retained |
| Reactivated | Viewer |
Mapping your directory to roles
The pattern that works is one directory group per workspace and role you want to grant:
| Directory group | Consentio group | Bound role |
|---|---|---|
consentio-ws1-admin |
Same | Administrator on workspace 1 |
consentio-ws1-editor |
Same | Editor on workspace 1 |
consentio-ws1-viewer |
Same | Viewer on workspace 1 |
Then access is managed entirely by directory membership: add someone to a group and they gain the access, remove them and they lose it, with no per-user work in Consentio at all.
Direct role assignment on a user remains available for exceptions, but anything you can express as a group is better expressed as one — it survives the person leaving, and it is auditable in your directory rather than in ours.
Bind groups to roles through the group extension; see Group Management.
Error handling
| Status | Condition |
|---|---|
400 |
A PATCH assignment naming a role ID that is not in your organisation |
403 |
Writing to the catalogue without scim:roles, or changing a managed role |
404 |
The role does not exist in your organisation |
Next steps
- User Management — assigning roles to individual users.
- Group Management — binding roles to groups.
- SCIM Provisioning — the API common to all three.