Group Management

Groups mirror your directory inside Consentio. On their own they grant nothing; bind a group to a role and every member gains that role's access, now and as membership changes.

This is the recommended way to manage access. Membership lives in your directory, where you already audit it, and Consentio derives the rest.


The group resource

Groups follow the SCIM 2.0 core group schema, with a Consentio extension carrying role assignments.

Core attributes

Attribute Type Required Description
id string — Consentio's identifier, a UUID. Read-only.
displayName string Yes Group name
externalId string No Your directory's identifier for the group
members array No The group's members

Each member in a response carries:

Attribute Description
value The member's Consentio user ID
$ref URI of the member's user resource
display The member's display name

Consentio extension

urn:consentio:params:scim:schemas:extension:Group:1.0

Attribute Type Description
roles array Role IDs bound to this group

Creating a group

POST /v2/scim2/Groups
Content-Type: application/scim+json
Authorization: Bearer <token>
{
  "schemas": ["urn:ietf:params:scim:schemas:core:2.0:Group"],
  "externalId": "idp-group-procurement-editors",
  "displayName": "Procurement Editors",
  "members": [
    { "value": "8c1f4d2a-7e93-4b6f-a1c5-2d0e9f7b3a84" },
    { "value": "b204e7c9-13af-4d58-91e0-6a7c5d8e9f01" }
  ],
  "urn:consentio:params:scim:schemas:extension:Group:1.0": {
    "roles": ["3f1a8c24-5b6d-4a2e-9c77-0b1d2e3f4a5b"]
  }
}

Response — 201 Created:

{
  "schemas": [
    "urn:ietf:params:scim:schemas:core:2.0:Group",
    "urn:consentio:params:scim:schemas:extension:Group:1.0"
  ],
  "id": "d61b0f33-8c42-4e97-b5aa-7f3e21c4d9b8",
  "externalId": "idp-group-procurement-editors",
  "displayName": "Procurement Editors",
  "members": [
    {
      "value": "8c1f4d2a-7e93-4b6f-a1c5-2d0e9f7b3a84",
      "$ref": "https://api.consentio.co/v2/scim2/Users/8c1f4d2a-7e93-4b6f-a1c5-2d0e9f7b3a84",
      "display": "John Smith"
    }
  ],
  "urn:consentio:params:scim:schemas:extension:Group:1.0": {
    "roles": ["3f1a8c24-5b6d-4a2e-9c77-0b1d2e3f4a5b"]
  },
  "meta": {
    "resourceType": "Group",
    "created": "2026-03-04T08:24:51Z",
    "lastModified": "2026-03-04T08:24:51Z",
    "location": "https://api.consentio.co/v2/scim2/Groups/d61b0f33-8c42-4e97-b5aa-7f3e21c4d9b8"
  }
}

Members must already be members of your organisation. Provision the user with POST /Users before adding them to a group. A reference to anyone else fails the request, and so does a reference to a role that is not in your organisation's catalogue — read the role catalogue before binding.


Reading groups

GET /v2/scim2/Groups/{id}
GET /v2/scim2/Groups?startIndex=1&count=100
GET /v2/scim2/Groups?filter=externalId eq "idp-group-procurement-editors"
GET /v2/scim2/Groups?filter=displayName eq "Procurement Editors"

Both eq filters match the whole value, so displayName eq "Sales" returns the group called Sales and not the one called Sales EMEA. Filter on externalId when you need a single, unambiguous group, since a display name can be renamed on either side.

externalId is unique within your organisation. Create each directory group once and keep the returned id; repeating the create with the same externalId is refused with 409 and scimType: uniqueness rather than producing a second group.


Updating a group

Replace — PUT

PUT /v2/scim2/Groups/{id}

Send the complete representation. The membership and the bound roles are both replaced by what you send: members not listed are removed, and roles not listed are unbound. Omitting the extension entirely unbinds every role.

Update — PATCH

PATCH /v2/scim2/Groups/{id}

A remove operation must carry a path. An add or replace may instead put the attributes in value, and each is applied as though sent with its own path.

path Operations Effect
displayName add, replace Renames the group
externalId add, replace Changes your identifier
members add Adds the listed members
members[value eq "…"] remove Removes that member
urn:consentio:params:scim:schemas:extension:Group:1.0:roles add, replace Replaces the bound roles with exactly those listed

Add members:

{
  "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
  "Operations": [
    {
      "op": "add",
      "path": "members",
      "value": [{ "value": "b204e7c9-13af-4d58-91e0-6a7c5d8e9f01" }]
    }
  ]
}

Remove a member:

{
  "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
  "Operations": [
    { "op": "remove", "path": "members[value eq \"b204e7c9-13af-4d58-91e0-6a7c5d8e9f01\"]" }
  ]
}

Set the bound roles:

{
  "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
  "Operations": [
    {
      "op": "add",
      "path": "urn:consentio:params:scim:schemas:extension:Group:1.0:roles",
      "value": ["3f1a8c24-5b6d-4a2e-9c77-0b1d2e3f4a5b"]
    }
  ]
}

Note that add on the roles path replaces the set rather than appending to it. Always send the full list you want the group to end up with. An empty list unbinds every role.

Delete

DELETE /v2/scim2/Groups/{id}

Returns 204 No Content. The group is removed and the access of every former member is recalculated, so anyone who held a workspace only through this group loses it. The users themselves are untouched.


Binding roles to a group

A group grants access by being bound to roles from the Consentio catalogue. Each role names a workspace and a level on it, so binding consentio-editor for the Procurement workspace to a group gives every member Editor there.

Directory group ──▶ Consentio group ──▶ Role (workspace + level) ──▶ Access

A member's actual access is the highest role that reaches them, counting their direct assignments and all of their groups. Someone in both a Viewer group and an Editor group for the same workspace gets Editor. Leaving both costs them the workspace only if no direct assignment and no other group still grants them a role on it. The rules in full are in Role Management.

Access is recalculated as part of the request that changes it — adding a member, removing one, rebinding roles, deleting the group — so it is correct by the time you get your response.

One group per workspace and level you want to grant:

Directory group Bound role
consentio-ws1-admin Administrator on workspace 1
consentio-ws1-editor Editor on workspace 1
consentio-ws1-viewer Viewer on workspace 1

After that, all access management is directory membership. Push the groups from your IdP, let membership changes flow over SCIM, and Consentio derives the rest.

Nested groups

Consentio does not support nested groups. A group's members are users, never other groups. Flatten the hierarchy in your directory before pushing it, which most IdPs can do when configuring group push.


Error handling

Status Condition
400 A malformed member or role ID
400 A PATCH naming a role ID that does not exist in your organisation
403 The token lacks scim:provisioning
404 The group does not exist in your organisation
409 Another group in your organisation already uses that externalId

Next steps