Create Group
BETA
This endpoint is in beta and may change in future releases.
POST/workspace/{workspaceId}/groups
Creates a new user group in a workspace with optional workspace-level permissions and granular permissions for apps and datasources.
Path Parameters
The unique identifier of the workspace.
Request Body
Name of the group.
Workspace-level permissions for the group (e.g. appCreate, appDelete).
List of granular permission rules scoped to specific apps or datasources.
Error Responses
name fails format constraints (length, invalid chars, reserved keyword, or role name collision).
workspaceId not found or no admin user exists in the workspace.
A resource in granularPermissions[].resources not found.
Missing or invalid Authorization: Basic token.
A group with the same name already exists in the workspace.
EXTERNAL_API license not active on the instance.
Request
curl -X POST "https://{your-domain}/api/ext/workspace/{workspaceId}/groups" -H "Authorization: Basic <access_token>" -H "Content-Type: application/json" -d '{
"name": "Platform Engineers",
"permissions": {
"appCreate": true,
"appDelete": false
},
"granularPermissions": [
{
"type": "app",
"applyToAll": false,
"resources": [
"app-uuid-1"
],
"permissions": {
"canEdit": true,
"hideFromDashboard": false,
"environments": [
"production"
]
}
}
]
}'Response — 201
{"message": "Group created successfully."}