Skip to main content
GET
List group-to-role mappings
Returns group-to-role mappings, highest priority first. A member in several mapped groups gets the role of the highest-priority one, and members in no mapped group keep their manually set role. Related guide: User provisioning: groups and roles. Highest priority first. A member in several mapped groups gets the role of the highest-priority one; unmapped members keep their manual role.
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.

Response

Mappings

id
string
groupId
string
groupName
string
role
enum<string>
Available options:
admin,
member
priority
integer

Lower wins when a member belongs to several mapped groups.

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