Dokumentation
ReferenzUser Groups

List the assignable user groups.

GET
/user-groups

List the assignable user groups of the calling key's tenant. This is where the membership operations get their userGroupId, and how an integration maps a team name from its own systems onto the group that represents it in Galilea.

Only team groups are listed, which makes this list exactly the set of groups the membership operations accept. Galilea maintains two other kinds of group that this API neither returns nor assigns: every tenant has one group of all its users, and every user has a personal group of their own. Both are answered with 404 by the membership operations.

A team that has no group here yet gets one with POST /user-groups; a group that a customer's own systems no longer have is retired with DELETE /user-groups/{userGroupId}.

Requires the right to list groups.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Query Parameters

limit?integer

Number of groups per page.

Default100
offset?integer

Index of the first group of the page.

Default0

Response Body

The user group list.

application/json
  1. response
count*integer

Total number of groups matching the filter.

next?|

URL of the next page, or null on the last one.

previous?|

URL of the previous page, or null on the first one.

results*array<>
curl -X GET "https://example.com/user-groups"
{  "count": 0,  "next": "string",  "previous": "string",  "results": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "Legal",      "type": "team",      "numberOfMembers": 12    }  ]}