View and manage groups to which a user belongs in your account or your client accounts.
GET /users/{id}/groups
| Description | Retrieve the list of groups to which the specified user belongs in the company or client account. |
| Permissions | user.manage |
| Resource URL | https://app.klipfolio.com/api/1.0/users/{id}/groups |
| Parameters | user id optional: client_id |
Example Request
GET https://app.klipfolio.com/api/1/users/fedcba9876543210fedcba9876543210/groupsGET https://app.klipfolio.com/api/1/users/fedcba9876543210fedcba9876543210/groups?client_id=0123456789abcdef0123456789abcdefExample Response
{
"data": {
"groups": [
{
"description": All managers in the company,
"id": "0123456789abcdef0123456789abcdef",
"name": "Managers"
},
{
"description": "All users in the company",
"id": "0123456789abcdef0123456789abcdef",
"name": "All"
}
]
},
"meta": {
"status": 200,
"success": true
}
PUT /users/{id}/groups/{id}
| Description | Add a specified user to one group at a time in the company or client account. |
| Permissions | user.manage |
| Resource URL | https://app.klipfolio.com/api/1.0/users/{id}/groups |
| Fields | user id, group_id, can_edit (true/false) optional: client_id |
Example Request
PUT https://app.klipfolio.com/api/1/users/fedcba9876543210fedcba9876543210/groups/0123456789abcdef0123456789abcdefPUT https://app.klipfolio.com/api/1/users/fedcba9876543210fedcba9876543210/groups/0123456789abcdef0123456789abcdef?client_id=0123456789abcdef0123456789abcdefExample Response
{
"meta": {
"status": 200,
"success": true
}
}
DELETE /users/{id}/groups/{id}
| Description | Delete a specified user from specified groups in the company or client account. |
| Permissions | user.manage |
| Resource URL | https://app.klipfolio.com/api/1.0/users/{id}/groups/{groupId} |
| Parameters | user id, group id optional: client_id |
Example Request
DELETE https://app.klipfolio.com/api/1/users/fedcba9876543210fedcba9876543210/groups/0123456789abcdef0123456789abcdefDELETE https://app.klipfolio.com/api/1/users/fedcba9876543210fedcba9876543210/groups/0123456789abcdef0123456789abcdef?client_id=0123456789abcdef0123456789abcdefExample Response
{
"meta": {
"status": 200,
"success": true
}
}