Skip to main content
PUT
Replace a group's members
Sets the complete membership. Use it to sync a group from a source of truth. To change one person, add or remove a single member instead. Related guide: User provisioning: groups and roles.
Availability: Cloud · Enterprise (self-hosted). Not available on the Community edition: a self-hosted deployment needs ENTERPRISE_ENABLED=true, otherwise the endpoint answers 403 with error.type: "enterprise_license_required".

Authorizations

Authorization
string
header
required

A workspace API key (oc_…) or organization API key (oc_org_…). Workspace-scoped endpoints called with an organization key also need X-Workspace-Id.

Path Parameters

groupId
string
required

Body

application/json
userIds
string[]
required
Maximum array length: 1000

Response

The diff that was applied

added
integer
removed
integer