Groups
Manage groups and their memberships.
List all groups
Returns every group, sorted by name. Requires the admin role.
Create a group
Creates a new group. Requires the admin role.
Get a group
Returns a single group by its identifier. Requires the admin role.
Update a group
Updates a group. Only the fields present in the request body are changed. Requires the admin role.
Delete a group
Deletes a group by its identifier. Requires the admin role.
List group members
Returns the members of a group. Requires the admin role.
Add members to a group
Adds one or more users to a group. Users already in the group are skipped. Requires the admin role.
Remove a member from a group
Removes a user from a group. Requires the admin role.
List a user's groups
Returns the groups a user belongs to. Allowed for an admin or the user themselves.
List my groups
Returns the groups the authenticated user belongs to.
Replace a user's memberships
Sets the complete set of groups a user belongs to; memberships not listed are removed. Requires the admin role.