---
title: "List all groups and members"
method: GET
path: "/groups"
tags: ["Groups"]
---

# List all groups and members

`GET /groups`

## Request

- Base URL: `https://app.ketryx.com/api/v1`
- URL: `https://app.ketryx.com/api/v1/groups`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/ketryx/apis/ketryx-api/docs/groups/get.ts> (a function with typed inputs; its response is checked against the schema)

## Response `200`

Successful response

- object
  - `groups` object[], required: List all groups and members
    - `id` string, required: Ketryx ID of the group
    - `name` string, required: Name of the group
    - `userMembers` object[]: User members of this group
      - `userId` string, required: ID of the user member
      - `email` string: Email of the user member
      - `name` string: Name of the user member
    - `groupMembers` object[]: Group members of this group
      - `groupId` string, required: ID of the group member

## Other responses

- `400`: Invalid input data
- `401`: Authorization not provided
- `403`: Insufficient access
- `404`: Not found
- `500`: Internal server error

---

[API](https://skmtc.dev/ketryx/apis/ketryx-api.md) - [All operations](https://skmtc.dev/ketryx/apis/ketryx-api/llms.txt) - [OpenAPI document](https://skmtc.dev/ketryx/apis/ketryx-api/revisions/a2a484dc35ca?raw)
