Skip to main content
POST
Create a group
Adds a new group. After you add members, create a role mapping to give them a role automatically. On Cloud, groups need the Enterprise plan.
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.

Body

application/json
name
string
required
Maximum string length: 100

Response

The group

id
string
name
string
source
enum<string>
Available options:
manual,
scim
externalId
string | null

The identity provider's id for SCIM-synced groups.

memberCount
integer
createdAt
string<date-time>
updatedAt
string<date-time>