Dokumentation
ReferenzUser Groups

Add a user to a user group.

PUT
/user-groups/{userGroupId}/users/{userId}

Put one user into one team group. There is no request body: both sides of the membership are named in the path, and a membership carries nothing else.

Idempotent. A person is in a group or they are not, so adding somebody who is already a member changes nothing and still answers 204. That is what lets an onboarding run be replayed without first reading which memberships exist.

User groups are the subject of every permission in Galilea — folders, agents and prompt libraries are shared with a group, never with a single person — so this is the call that gives a new colleague access to anything at all.

Only team groups can be addressed. The personal group of a user and the group of all users of a tenant are maintained by Galilea and answer 404 here, as does a group of another tenant.

Requires the right to manage group members, which is the tenant manager and the administrator.

Authorization

apiKey
headerX-API-Key<token>

API key issued in the Galilea settings.

Path Parameters

userGroupId*string

The id of the user group, as returned by GET /user-groups.

Formatuuid
userId*string

The id of the user, as returned by GET /users.

Formatuuid

Response Body

The user is in the group.

curl -X PUT "https://example.com/user-groups/7f3b2a10-11ef-4c2e-9a71-2b6d5c8e4419/users/62e49dd6-954a-11ef-b06a-170340f38b3d"
Empty