Get all
Get all user groups in an organization. This endpoint returns a paginated list of user groups that belong to the specified organization.
GET https://api.tedee.com/api/v37/organization/{organizationId}/user-groups?page={page}&itemsPerPage={itemsPerPage}&filters.text={text}
URI Parameters
| Name | Type | Description | 
|---|---|---|
| organizationId | number | id of organization | 
| filters.text | string (optional) | Filter groups by name | 
| itemsPerPage | number (optional) | Items per page (max: 100, min: 1) | 
| page | number (optional) | Page number (min: 1) | 
Responses
| Name | Type | Description | 
|---|---|---|
| 200 OK | successful operation | 
Scopes
| Name | Description | 
|---|---|
| Organization.Read | Grants user possibility to read organization data | 
| Organization.ReadWrite | Grants user possibility to read and write organization data | 
Examples
Get all groups
Sample Request
curl -X GET "https://api.tedee.com/api/v37/organization/1/user-groups" -H "accept: application/json" -H "Authorization: Bearer <<access token>>"
Sample response
HTTP status code: 200
{
    "result": [
        {
            "id": "a4d5e6f7-8b9c-4d2e-9f1a-3b4c5d6e7f8a",
            "name": "Engineering Team"
        },
        {
            "id": "b5d6e7f8-8c9d-2e3f-4a5b-6c7d8e9f0b1c",
            "name": "Maintenance Team"
        }
    ],
    "errorMessages": [],
    "statusCode": 200,
    "success": true
}
Get groups with filter
Sample Request
curl -X GET "https://api.tedee.com/api/v37/organization/1/user-groups?filters.text=Engineering&page=1&itemsPerPage=10" -H "accept: application/json" -H "Authorization: Bearer <<access token>>"
Sample response
HTTP status code: 200
{
    "result": [
        {
            "id": "a4d5e6f7-8b9c-4d2e-9f1a-3b4c5d6e7f8a",
            "name": "Engineering Team"
        }
    ],
    "errorMessages": [],
    "statusCode": 200,
    "success": true
}