User Management
Users are the accounts that can sign in to Consentio. Through SCIM you create them, keep their details current, assign roles to them, and deactivate them when they leave.
The user resource
Users follow the SCIM 2.0 core user schema, with a Consentio extension carrying role assignments.
Core attributes
| Attribute | Type | Required | Description |
|---|---|---|---|
id |
string | — | Consentio's identifier, a UUID. Read-only. |
userName |
string | No | Send the email address. Accepted but not read: emails is what Consentio provisions. |
externalId |
string | No | Your directory's identifier for the user |
emails |
array | Yes | At least one entry; the first is the address Consentio uses |
name.givenName |
string | No | First name |
name.familyName |
string | No | Last name |
displayName |
string | No | Used when neither given nor family name is supplied |
active |
boolean | No | Whether the account may sign in; new users are active by default |
groups |
array | — | Groups the user belongs to. Read-only. |
Consentio stores one name per user. name.givenName and name.familyName are combined on the way in and split again on the way out, at the first space, so a double-barrelled surname comes back under familyName and a compound first name may not round-trip exactly. Nothing depends on the split; treat displayName as authoritative.
Consentio extension
urn:consentio:params:scim:schemas:extension:User:1.0
| Attribute | Type | Description |
|---|---|---|
roles |
array | Role IDs assigned directly to this user |
Roles assigned through a group do not appear here; this is the direct assignment list only. See Role Management.
Creating a user
POST /v2/scim2/Users
Content-Type: application/scim+json
Authorization: Bearer <token>
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:consentio:params:scim:schemas:extension:User:1.0"
],
"externalId": "idp-user-12345",
"userName": "john.smith@acme.com",
"name": { "givenName": "John", "familyName": "Smith" },
"displayName": "John Smith",
"emails": [{ "value": "john.smith@acme.com", "primary": true }],
"active": true,
"urn:consentio:params:scim:schemas:extension:User:1.0": {
"roles": ["3f1a8c24-5b6d-4a2e-9c77-0b1d2e3f4a5b"]
}
}
Response — 201 Created:
{
"schemas": [
"urn:ietf:params:scim:schemas:core:2.0:User",
"urn:consentio:params:scim:schemas:extension:User:1.0"
],
"id": "8c1f4d2a-7e93-4b6f-a1c5-2d0e9f7b3a84",
"externalId": "idp-user-12345",
"userName": "john.smith@acme.com",
"name": { "givenName": "John", "familyName": "Smith" },
"displayName": "John Smith",
"active": true,
"emails": [{ "value": "john.smith@acme.com", "primary": true }],
"urn:consentio:params:scim:schemas:extension:User:1.0": {
"roles": ["3f1a8c24-5b6d-4a2e-9c77-0b1d2e3f4a5b"]
},
"meta": {
"resourceType": "User",
"created": "2026-03-04T08:21:17Z",
"lastModified": "2026-03-04T08:21:17Z",
"location": "https://api.consentio.co/v2/scim2/Users/8c1f4d2a-7e93-4b6f-a1c5-2d0e9f7b3a84"
}
}
Rules that apply on creation
| Rule | Behaviour |
|---|---|
| Email domain | Must be one of your organisation's agreed domains, or the request is refused with 400 |
| Existing address | Resolved to the existing account rather than refused; see below |
| Name | Falls back to displayName, and then to the email address, if no name is supplied |
active: false |
The account is created and immediately deactivated |
Creating a user who already exists is not an error. If the address already belongs to a Consentio account, that account is updated with the name and
externalIdyou sent, added to your organisation if it was not already a member, and returned with201 Created. This makes a resync safe to repeat and lets an existing Consentio user be brought under your organisation without a separate step.
Reading users
Get one user
GET /v2/scim2/Users/{id}
Authorization: Bearer <token>
List users
GET /v2/scim2/Users?startIndex=1&count=100
Authorization: Bearer <token>
| Parameter | Description | Default |
|---|---|---|
filter |
A single eq condition |
— |
startIndex |
First result, 1-based | 1 |
count |
Results per page | 100 |
sortBy |
userName, externalId, displayName, id |
— |
sortOrder |
asc or desc |
asc |
GET /v2/scim2/Users?filter=userName eq "john.smith@acme.com"
GET /v2/scim2/Users?filter=externalId eq "idp-user-12345"
GET /v2/scim2/Users?filter=active eq false
userName eq matches exactly and ignores case.
Which users you can see
A read returns more than the accounts you provisioned. The set is:
- every direct member of your organisation; plus
- every member or owner of one of your organisation's workspaces whose email address is on one of your organisation's agreed domains.
The second group matters when people were given access to a workspace before SCIM was switched on, or outside it. They are yours to see, and reconciling them is the point: list the users, compare against your directory, and provision or deactivate as needed.
Deactivating one of them takes two steps. Until a user is a direct member of your organisation, PUT, PATCH and DELETE answer 404, so send a POST /Users with their address first and deactivate after. Check the result rather than assuming: a 404 here means the account is still active.
Filtering, pagination and totalResults all apply over that combined set.
Visibility is not the same as control. Reading a user does not mean you may change them — see the note on management below.
Updating a user
Changes are limited to users who are direct members of your organisation. A user you can see only because they belong to one of your workspaces is returned by GET but cannot be modified; PUT, PATCH and DELETE answer 404 for them. Add them to your organisation with a POST /Users carrying their address first.
Replace — PUT
PUT /v2/scim2/Users/{id}
Content-Type: application/scim+json
Authorization: Bearer <token>
Send the complete representation. The email domain is re-checked, and the same rules apply as on creation.
externalIdis cleared if you omit it, and arolesextension replaces the user's direct assignments. Always send the full resource on aPUT, or usePATCHfor a partial change.
Update — PATCH
PATCH /v2/scim2/Users/{id}
Content-Type: application/scim+json
Authorization: Bearer <token>
A remove operation must carry a path, and one without it is refused with 400. An add or replace may omit it and put the attributes in value instead, as RFC 7644 allows — each attribute in that object is applied as though it had been sent with its own path.
path |
Operations | Effect |
|---|---|---|
displayName |
add, replace |
Changes the stored name |
externalId |
add, replace |
Changes your identifier |
active |
add, replace |
Activates or deactivates the account |
urn:consentio:params:scim:schemas:extension:User:1.0:roles |
add, replace |
Sets the direct role assignments |
Deactivate:
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [
{ "op": "replace", "path": "active", "value": false }
]
}
Set the user's direct roles:
{
"schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
"Operations": [
{
"op": "add",
"path": "urn:consentio:params:scim:schemas:extension:User:1.0:roles",
"value": ["3f1a8c24-5b6d-4a2e-9c77-0b1d2e3f4a5b"]
}
]
}
The email address cannot be changed with PATCH; use PUT.
Role assignment
Direct role assignment behaves differently depending on the verb, and the difference matters:
| Request | Effect on the user's direct roles |
|---|---|
POST /Users with roles |
Adds the listed roles |
PUT /Users/{id} with roles |
Replaces the whole set with exactly the roles listed |
PATCH on the roles path |
Replaces the whole set with exactly the roles listed |
PUT replaces the resource, so the roles extension it carries is the complete set and an empty list clears every direct assignment. Omitting the extension entirely leaves the assignments untouched, which is what lets you PUT a name change without also managing roles.
Every one of these recalculates the user's workspace access as part of the request.
Role IDs are checked against the catalogue on
PUTandPATCH, which answer400naming the offending ID, and nothing is changed when one is rejected. OnPOSTan unknown role ID fails the request without that specific diagnosis, so read the catalogue first and assign IDs you have seen there.
Deactivating a user
Deactivation is how access is withdrawn. It is triggered by active: false on a PATCH or a PUT, or by DELETE /Users/{id} — all three do the same thing.
DELETE /v2/scim2/Users/{id}
Authorization: Bearer <token>
Returns 204 No Content. The account is deactivated, not erased: its history stays attributable and it can be reactivated.
What happens, and when
| Effect | When |
|---|---|
| The user's devices are disabled | Immediately |
| Refresh tokens are refused | Immediately |
| New logins are refused, over OIDC and over SAML | Immediately |
| Workspace access is withdrawn everywhere | Immediately |
| An access token already issued stops working | When it expires — up to the configured session duration, 60 minutes on production |
An access token is self-contained and is not checked against the directory on every request, so a user whose session is already open may keep working for the remainder of that token's life. Everything that would extend the session — a refresh, a new login — is refused at once. If you need a session terminated rather than expired, raise it with your integration contact.
Reactivating
Send active: true. The account can sign in again and its workspace access is restored from the role assignments, which were kept throughout.
Devices stay disabled, so the user signs in afresh on each of them. This is intentional: a reactivation should not silently resurrect a session that was open when the account was switched off.
Error handling
| Status | Condition |
|---|---|
400 |
No email supplied, a malformed address, or a domain outside your organisation |
400 |
A PUT or PATCH naming a role ID that does not exist in your organisation |
400 |
A PATCH operation sent without a path |
403 |
The token lacks scim:provisioning |
404 |
The user does not exist, is not visible to your organisation, or is not a member you may manage |
Next steps
- Group Management — manage access by membership instead of per user.
- Role Management — the roles you assign and how access is derived.