Groups and SCIM groups
Give a role to a group instead of to people one by one: everyone in the group holds the role while they’re in it, and loses it the moment they leave. This works best when your identity provider already knows who’s on which team, because it can keep the groups in Ligament up to date for you.
You see every group in Settings › Access › Groups, with where it comes from, how many members it has and which roles it’s mapped to.
Where groups come from
Section titled “Where groups come from”| Source | Who keeps the members | How it’s made |
|---|---|---|
| Manual | Owners and admins of the workspace | Through the API (see below) |
| SCIM | Your identity provider, over SCIM | The provider pushes the group |
| SSO | The group claim in each person’s SSO sign-in | Created at the first sign-in that names it |
You can’t edit the name or members of a SCIM or SSO group in Ligament: the group page says “Kept in sync by SCIM: change membership in your identity provider.”
Map a group to roles
Section titled “Map a group to roles”A group mapping says which roles a group’s members hold. In Northwind Group, the group Service desk leads is mapped to the role Service desk lead.
- Open Settings › Access › Groups and click the group.
- Click Edit role mapping.
- Add one or more custom roles. If a role has parameters, set them for this group: the group’s value wins over the role’s default.
- Click Plan to see who gains what, then Apply.
You can also start from a role: on the role page, click Assign role and pick a group instead of a member.
A few rules apply:
- Only custom roles can be mapped, never a seat role (owner, admin, member, viewer) and never a break-glass role.
- A mapping has no end date. For access that should end on a date, assign the role to the people instead (Time-bound access).
- To remove every role from a group, delete its mapping. The plan shows who loses access.
When the plan for Northwind’s mapping ran, it showed exactly one change:
Member Alex Agent through service_desk_lead (group: Service desk leads)Gains: incident · delete no access → every row rows 0 → 39Groups in row conditions
Section titled “Groups in row conditions”A row condition can use @my.groups: the ids of the person’s groups. A group can also be linked to a record, such as the ITSM assignment group Service Desk, and then @my.groups includes that record too. So a grant like this lets people see the incidents assigned to their own team:
{ "entity": "incident", "ops": ["read", "update"], "where": { "all": [{ "left": "{{assignment_group}}", "op": "in", "right": "@my.groups" }] } }Manual groups
Section titled “Manual groups”The app lists manual groups and edits their role mapping, but you create them and change their members through the API. Use a key with the members:write scope (an admin scope), or a signed-in owner or admin session. recordEntity and recordId are optional: they link the group to a record, such as an ITSM assignment group.
curl -X POST "https://app.ligament.ai/api/access/groups" \ -H "authorization: Bearer $LIGAMENT_API_KEY" -H "content-type: application/json" \ -d '{"name":"Workplace IT on-call","description":"Weekend on-call rota for Workplace IT","recordEntity":"group","recordId":"<assignment group record id>"}'{ "id": "cmx6b0syc00m96x6sfm40lse4", "name": "Workplace IT on-call", "source": "manual", "externalId": null, "description": "Weekend on-call rota for Workplace IT", "recordEntity": "group", "recordId": "cmx1vv1bu00orfeutot8odlug"}Add a member with POST /access/groups/<id>/members and {"userId":"<user id>"}; remove one with DELETE /access/groups/<id>/members?userId=<user id>. The person must already be a member of the workspace (otherwise 404 no_member). Map roles with POST /access/group-mappings and {"groupId":"<id>","roleKey":"service_desk_lead"}. All endpoints: Access.
SCIM groups
Section titled “SCIM groups”If your identity provider (Okta, Microsoft Entra ID and others) provisions users over SCIM, it can push groups too. Set up SCIM first: SCIM provisioning. Then assign the groups you want to the SCIM app in your provider.
- The provider creates, renames and deletes groups, and adds and removes members, at
https://app.ligament.ai/api/scim/v2/Groups. - Every member must be a user of the workspace already. If one isn’t, the provider gets an error naming it, and nothing in that request is written:
400 invalidValue: Not a user of this workspace: "<id>". - The provider sees only SCIM groups. Manual and SSO groups stay out of its reach.
- The group shows in Settings › Access › Groups with the source SCIM and the provider’s external id, for example “Service Desk Tier 2 · SCIM · 00g8kq2tier2”. Map it to roles as above.

When the provider removes someone from the group, they lose the group’s roles on their next request.
SSO group sync
Section titled “SSO group sync”When people sign in with SSO (OIDC or SAML), Ligament reads the group claim in their sign-in and updates their SSO groups to match. Set up SSO first: Single sign-on.
- The claim is
groups, orrolesif there’s nogroupsclaim. For SAML, the SSO connection’s attribute mapping has to pass the attribute that carries the groups through asgroups. - A group named in the claim that doesn’t exist yet is created, with the claim value as its name. Map it to roles once it appears.
- The person joins every SSO group the claim names and leaves every other SSO group. An empty list removes them from all SSO groups.
- If the claim is missing altogether, nothing changes, so a misconfigured provider can’t empty your groups.
- Membership changes at sign-in. Someone removed from a group in the provider keeps the group’s roles until they next sign in with SSO; use SCIM if you need removals to take effect sooner.
Every change to a group, its members or its mapping is recorded in Settings › Access › Audit, including the ones your provider makes.