Get All Groups
BETA
This endpoint is in beta and may change in future releases.
GET/workspaces/{workspaceId}/groups
Retrieves all groups in a workspace. Supports search and pagination.
Path Parameters
The unique identifier of the workspace.
Query Parameters
Filter groups by name.
Page number for pagination. Defaults to 1.
Number of items per page. Defaults to 20.
Error Responses
Query parameter validation failure — non-integer page/per_page or value less than 1.
Missing or invalid Authorization: Basic token.
workspaceId does not match any workspace.
EXTERNAL_API license not active on the instance.
Unexpected database error.
Request
curl -X GET "https://{your-domain}/api/ext/workspaces/{workspaceId}/groups?search=<search>&page=<page>&per_page=<per_page>" -H "Authorization: Basic <access_token>"Response — 200
{
"data": [
{
"id": "grp_12345",
"name": "Backend Engineers",
"permissions": {},
"granularPermissions": []
}
],
"pagination": {
"page": 1,
"per_page": 20,
"total_count": 1
}
}