---
title: "Get all Groups User belongs to"
method: GET
path: "/api/users/:userId/groups"
tags: ["groups"]
---

# Get all Groups User belongs to

`GET /api/users/:userId/groups`

Get all Groups User belongs to

## Path parameters

- `userId` string, required

## Query parameters

- `include` string

## Response `200`

Return groups list

- object
  - `status` object
    - `code` string
  - `data` object
    - `count` integer
    - `rows` object[]
      - `id` string
      - `creator` object
        - `id` string
        - `name` string
        - `email` string
      - `name` string
      - `parent` object
        - `id` string
      - `permissions` object
        - `level` 'admin' | 'edit' | 'read' | 'none'
      - `visibility` 'public' | 'private'
      - `members` object
        - `topics` object
          - `count` integer
          - `latest` object
            - `title` string
        - `users` object
          - `count` integer

## Changes

- **2018-08-21** `573a06e83ed2` — 1 info
  - endpoint added
- **2018-08-20** `ba36cd387928` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/citizenos/apis/citizenos-api/changes/api/users/:userId/groups/get.md)

---

[API](https://skmtc.dev/citizenos/apis/citizenos-api.md) · [All operations](https://skmtc.dev/citizenos/apis/citizenos-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/citizenos/citizenos-api/revisions/ca28908e6b75/schema)
