View and manage groups to which a user belongs.

GET /users/{id}/groups

DescriptionRetrieve the list of groups to which the specified user belongs.
Permissionsuser.manage
Resource URLhttps://app.klipfolio.com/api/1.0/users/{id}/groups
ParametersNone.

Example Request

GET https://app.klipfolio.com/api/1/users/0123456789abcdef0123456789abcdef/groups

Example 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}

DescriptionAdd a specified user to one group at a time.
Permissionsuser.manage
Resource URLhttps://app.klipfolio.com/api/1.0/users/{id}/groups
Fieldsgroups, group_id, can_edit (true/false)

Example Request

PUT https://app.klipfolio.com/api/1/users/0123456789abcdef0123456789abcdef/groups/123a2d1234e123f2c7b1234123412341 -d
##Example Response

{
   "meta": {
       "status": 200,
       "success": true
   }
}

DELETE /users/{id}/groups/{id}

DescriptionDelete a specified user from specified groups.
Permissionsuser.manage
Resource URLhttps://app.klipfolio.com/api/1.0/users/{id}/groups/{groupId}
ParametersNone.

Example Request

DELETE https://app.klipfolio.com/api/1/users/0123456789abc/groups/01234123411qwer

Example Response

{
"meta": {
      "status": 200,
      "success": true
  }
}