Intro
The Groups API lets you manage LangWatch access groups via REST. Groups are collections of users that share the same role bindings — when you assign a role to a group, every member inherits that access. Groups can be created manually via the API or provisioned automatically from your identity provider via SCIM.Groups are an Enterprise feature. Contact your account team to enable them.
Authentication
The Groups API requires an organization-level API key withorganization:manage permission (created in Settings > API Keys). Pass it as a Bearer token:
Endpoints
Groups
Members
Role Bindings
SCIM-Managed Groups
Groups provisioned from an identity provider via SCIM are marked with ascimSource field (e.g. "azure-ad", "okta"). SCIM-managed groups have restrictions:
- Cannot be renamed via this API (the IdP is the source of truth)
- Cannot have members added or removed manually (membership is managed by the IdP)
- Role bindings can still be managed via this API
Typical Flow
- Create an admin API key in Settings > API Keys with
organization:managepermission - Create a group with initial members and role bindings:
- All members inherit the MEMBER role on the specified team and all its projects.
Role Binding Scopes
Bindings can target three scope levels:
Available roles:
ADMIN, MEMBER, VIEWER, CUSTOM (requires customRoleId).