Endpoint

/v1/users/{id}/groups/

GET

Retrieve group membership of a specific user. Refer to the 'Modify group' method for a description of the returned fields. Returns an empty array if the provided user is not a local user.

Parameters

Name Description Required
id The user's unique ID Yes

Response

Codes

Code Description
200 Return value on success

Schema

{
  "type": "array",
  "items": {
    "description": "api_group",
    "type": "object",
    "properties": {
      "id": {
        "description": "The group's unique id",
        "type": "string"
      },
      "name": {
        "description": "The group name",
        "type": "string"
      },
      "sid": {
        "description": "The group's SID",
        "type": "string"
      },
      "gid": {
        "description": "The group's NFS gid",
        "type": "string"
      }
    }
  }
}