Skip to content

Groups Endpoints

The Groups API provides endpoints for managing security and distribution groups and their membership.

Base URL

All endpoints are relative to /api/v1/groups.


List Groups

Retrieve a paginated list of groups.

http
GET /api/v1/groups

Query Parameters

ParameterTypeDescription
searchstringSearch by group name
limitnumberNumber of items to return
afterstringCursor for pagination

Response

json
{
  "groups": [
    {
      "id": "grp-123",
      "name": "Engineering Team",
      "description": "All engineering staff",
      "group_type": "security",
      "is_privileged": false,
      "member_count": 45,
      "created_at": "2024-01-15T10:30:00Z"
    }
  ],
  "pageInfo": {
    "hasNextPage": true,
    "endCursor": "cursor-token"
  }
}

Get Group

Retrieve details for a specific group.

http
GET /api/v1/groups/{id}

Path Parameters

ParameterTypeDescription
idstringGroup ID

Response

Returns the complete group object with all fields.


Create Group

Create a new group record.

http
POST /api/v1/groups

::: note Administrator Only This endpoint requires Administrator role. :::

Request Body

json
{
  "name": "Finance Team",
  "description": "Finance department members",
  "group_type": "security",
  "is_privileged": false
}

Response

Returns the created group object.


Update Group

Update an existing group.

http
PUT /api/v1/groups/{id}

::: note Administrator Only This endpoint requires Administrator role. :::

Path Parameters

ParameterTypeDescription
idstringGroup ID

Request Body

Include only the fields to update.

Response

Returns the updated group object.


Delete Group

Delete a group record.

http
DELETE /api/v1/groups/{id}

::: note Administrator Only This endpoint requires Administrator role. :::

Path Parameters

ParameterTypeDescription
idstringGroup ID

Response

Returns 204 No Content on success.


Get Group Members

Retrieve all members of a group with enriched details.

http
GET /api/v1/groups/{id}/members

Path Parameters

ParameterTypeDescription
idstringGroup ID

Response

json
{
  "members": [
    {
      "id": "acc-123",
      "name": "john.doe",
      "email": "john.doe@company.com",
      "membership_type": "direct",
      "added_date": "2024-01-10T00:00:00Z",
      "status": "active"
    }
  ],
  "count": 45
}

Membership Types

TypeDescription
directMember added directly to the group
indirectMember inherited through nested group

Error Responses

Status CodeDescription
400Bad Request - Invalid parameters
401Unauthorized - Authentication required
403Forbidden - Insufficient permissions
404Not Found - Group does not exist
500Internal Server Error

Hydden Documentation and Training Hub