For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
guide

Manage supergroup members

List supergroups and read/update included and excluded members.

Use with AI:Rippling AI ChatGPT Claude Cursor

Overview​

A supergroup is a group created dynamically based on shared attributes in Rippling. Instead of including individual people by name, you can make a supergroup based on attributes such as department, location, tenure, employment status, and people who share those attributes will automatically be included in the group.

Key terms:

  • Members: The effective membership of the group. This includes workers who match the supergroup’s attribute rules plus workers on the inclusion list. This does not include workers on the exclusion list.
  • Inclusion members: Workers explicitly added to the group outside of the attribute rules. Adding a worker individually ensures they remain a member even if they don't match any supergroup rules.
  • Exclusion members: Workers explicitly excluded from the group. Adding a worker here removes them from members, even when a supergroup rule or inclusion entry would otherwise include them.

Available endpoints​

EndpointDescription
GET List supergroupsLists supergroups.
GET Retrieve a specific supergroupRetrieves one supergroup by id.
GET List supergroup membersLists effective members (including members who match rules and included members). group_id maps to id from GET List supergroups.
GET List supergroup inclusion membersLists explicitly included workers only.
PATCH Update supergroup inclusion membersAdds or removes inclusion members.
GET List supergroup exclusion membersLists explicitly excluded workers only.
PATCH Update supergroup exclusion membersAdds or removes exclusion members.

Related endpoints:

EndpointDescription
GET List workersLists workers. Use the id in value when adding or excluding members.

Suggested workflow​

  1. List supergroups and copy the id of the group you want to modify.
  2. List members to see who is currently in the group. Pass expand=worker when you need the worker record.
  3. List inclusion members or exclusion members to see members that have been explicitly added or removed.
  4. List workers for the worker IDs that should be added or excluded from the group.
  5. Update inclusion members or exclusion members with add or remove.
  6. List members again to confirm changes.

Requirements​

  • The Rippling API SKU
  • An API token with the following scopes:
    • supergroups.read to list supergroups and members
    • supergroups.read-write to add or remove inclusion and exclusion members

Fetch​

Supergroups​

Use GET List supergroups to get a group_id.

Request:

curl -L -X GET 'https://rest.ripplingapis.com/supergroups/'
-H 'Accept: application/json'
-H 'Authorization: Bearer REDACTED'

Response:

{
"results": [
{
"id": "65699280fb7bc7c3510f9043",
"created_at": "2023-12-01T08:00:00.352000+00:00",
"updated_at": "2024-03-19T22:17:47.664000+00:00",
"display_name": "Engineering",
"name": "Engineering",
"app_owner_id": "65699281fb7bc7c3510f3ce2",
"group_type": null,
"sub_group_type": null,
"read_only": false,
"description": null,
"parent": null,
"mutually_exclusive_key": null,
"cumulatively_exhaustive_default": false,
"include_terminated": false,
"allow_non_employees": false,
"can_override_role_states": false,
"priority": null,
"is_invisible": false,
"ignore_prov_group_matching": false
}
],
}
Response fieldDescription
idSupergroup identifier. Use this as group_id on the member endpoints.
created_atWhen the supergroup was created.
updated_atWhen the supergroup was last updated.
display_nameThe group's display name.
nameThe group's name.
app_owner_idIdentifier of the app that owns the group.
group_typeThe group type.
sub_group_typeThe sub group type.
read_onlyWhether the group is read only.
descriptionThe group's description.
parentIdentifier of the parent group.
mutually_exclusive_keyKey used when groups in a set are mutually exclusive.
cumulatively_exhaustive_defaultWhether this group is the default in a mutually exclusive set.
include_terminatedWhether terminated workers can be members.
allow_non_employeesWhether the group allows non-employees.
can_override_role_statesWhether the group can override role states.
priorityPriority used when calculating mutual exclusivity.
is_invisibleWhether the group is hidden.
ignore_prov_group_matchingWhether membership ignores the app provisioning group.

Members​

Use GET List supergroup members for the effective membership. Pass expand=worker to include worker records.

Request:

curl -L -X POST 'https://rest.ripplingapis.com/supergroups/65699280fb7bc7c3510f9043/members/?expand=worker'
-H 'Accept: application/json'
-H 'Content-Type: application/json'
-H 'Authorization: Bearer REDACTED'

Response:

{
"results": [
{
"id": "65699280fb7bc7c3510f9101",
"created_at": "2023-12-01T08:00:00.352000+00:00",
"updated_at": "2024-03-19T22:17:47.664000+00:00",
"full_name": "Ada Lovelace",
"work_email": "ada@example.com",
"worker_id": "65699280fb7bc7c3510f9101",
"worker": null
}
],
}
Response fieldDescription
idWorker identifier. Same value as worker_id.
created_atWhen the worker record was created.
updated_atWhen the worker record was last updated.
full_nameThe member's full name.
work_emailThe member's work email address.
worker_idThe worker identifier associated with this member.
workerThe worker record. Returned only when you pass expand=worker. Otherwise null.

Inclusion members​

Use GET List supergroup inclusion members to list only inclusion members.

curl -L -X GET 'https://rest.ripplingapis.com/supergroups/65699280fb7bc7c3510f9043/inclusion-members/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer REDACTED' \

Exclusion members​

Use GET List supergroup exclusion members to list only excluded members.

curl -L -X GET 'https://rest.ripplingapis.com/supergroups/65699280fb7bc7c3510f9043/exclusion-members/' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer REDACTED' \

Update​

Inclusion members​

Use PATCH Update supergroup inclusion members to add or remove explicitly-included members. op can be add or remove, and value is the list of worker IDs.

Request:

curl -L -X PATCH 'https://rest.ripplingapis.com/supergroups/65699280fb7bc7c3510f9043/inclusion-members/' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer REDACTED' \

Request body:

{
"Operations": [
{
"op": "add",
"value": [
{ "id": "65699292fb7bc7c3510f4781" },
{ "id": "6569929efb7bc7c3510f48f3" }
]
}
]
}

Response:

A successful update returns { "ok": true } and does not return the member list.

{
"ok": true
}

To remove workers from an inclusion list, send the same body with "op": "remove".

{
"Operations": [
{
"op": "remove",
"value": [
{ "id": "65699292fb7bc7c3510f4781" },
{ "id": "6569929efb7bc7c3510f48f3" }
]
}
]
}

Exclusion members​

Use PATCH Update supergroup exclusion members to add or remove a member from the group's exclusion list. Adding a worker to the exclusion list removes them from the inclusion list, and they're also removed from the effective members (GET List supergroup members) list.

Request:

curl -L -X PATCH 'https://rest.ripplingapis.com/supergroups/65699280fb7bc7c3510f9043/exclusion-members/' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer REDACTED' \

Request body:

{
"Operations": [
{
"op": "add",
"value": [
{ "id": "65699280fb7bc7c3510f9101" }
]
}
]
}

Response:

{
"ok": true
}

Send "op": "remove" to remove a worker from the exclusion list. This does not add them back to the inclusion list, and they will only rejoin the effective members list if a group rule matches them.

{
"Operations": [
{
"op": "remove",
"value": [
{ "id": "65699280fb7bc7c3510f9101" }
]
}
]
}

See also​