Get User Group
This endpoint allows you to retrieve information about specific user groups and list all user groups with optional filtering.
πΉ Endpoint Detailsβ
Get Single Groupβ
GET /api/v1/user-groups/{id}
List Groupsβ
GET /api/v1/user-groups
π Authenticationβ
Header | Required | Description |
---|---|---|
Authorization | Yes | Format: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature |
π Request Parametersβ
Path Parameters (Get Single Group)β
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
id | string (UUID) | Yes | Unique identifier of the user group | 550e8400-e29b-41d4-a716-446655440000 |
Query Parameters (List Groups)β
Parameter | Type | Required | Description | Default |
---|---|---|---|---|
page | number | No | Page number for pagination | 1 |
limit | number | No | Items per page | 20 |
search | string | No | Search in name and description | - |
organizationId | string | No | Filter by organization ID | - |
π§© Request Examplesβ
Get Single Groupβ
curl -X GET "https://openapi.onlive.site/api/v1/user-groups/550e8400-e29b-41d4-a716-446655440000" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature"
List Groups with Filteringβ
curl -X GET "https://openapi.onlive.site/api/v1/user-groups?page=1&limit=10&search=sales" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature"
π€ Response Formatβ
Single Group Response (200 OK)β
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Sales Team",
"description": "Sales team members with access to product management",
"externalId": "SALES_TEAM_01",
"organizationId": "123e4567-e89b-12d3-a456-426614174000",
"extraFields": {
"department": "Sales",
"location": "New York",
"allowedFeatures": [
"product_management",
"sales_reports"
]
},
"createdAt": "2025-05-22T10:30:00Z",
"updatedAt": "2025-05-22T10:30:00Z"
}
List Response (200 OK)β
{
"items": [
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Sales Team",
"description": "Sales team members with access to product management",
"externalId": "SALES_TEAM_01",
"organizationId": "123e4567-e89b-12d3-a456-426614174000",
"extraFields": {
"department": "Sales",
"location": "New York",
"allowedFeatures": [
"product_management",
"sales_reports"
]
},
"createdAt": "2025-05-22T10:30:00Z",
"updatedAt": "2025-05-22T10:30:00Z"
}
],
"total": 1,
"page": 1,
"limit": 10,
"pages": 1
}
β Error Responsesβ
401 Unauthorizedβ
{
"statusCode": 401,
"message": "Invalid or missing authorization credentials"
}
404 Not Foundβ
{
"statusCode": 404,
"message": "User group not found"
}
π Notesβ
- All timestamps are in ISO 8601 format with UTC timezone
- The list endpoint supports pagination through
page
andlimit
parameters - Search is case-insensitive and matches partial strings in both name and description
- Results are sorted by creation date in descending order (newest first)
- The
organizationId
filter is optional; by default, only groups in your organization are shown
β Common Use Casesβ
- π Group Lookup: Retrieve details of a specific group by ID
- π Directory: List all groups in your organization
- π Search: Find groups by name or description
- π± Pagination: Handle large numbers of groups efficiently
- π’ Organization: Filter groups by organization ID