---
title: "Get the groups in an organization a user belongs to."
method: GET
path: "/orgs/{orgId}/users/{userId}/groups"
tags: ["public", "Group"]
---

# Get the groups in an organization a user belongs to.

`GET /orgs/{orgId}/users/{userId}/groups`

## Path parameters

- `orgId` string, required
- `userId` string, required

## Response `200`

The list of groups in the organization a user belongs to.

- Group[]
  - `id` string, required — The id used in Humanitec to identify the group.
  - `group_id` string, required — The name of the group in the IdP
  - `idp_id` string, required — The IdP id.
  - `created_at` string, date-time — The time the user was first registered with Humanitec

## Other responses

- `400` — The request was invalid. More detail can be found in the error body.
- `403` — Server understands the request but refuses to authorize it.
- `404` — Either the resource or a related resource could not be found. More detail can be found in the error body.

---

[API](https://skmtc.net/humanitec/apis/humanitec-api.md) · [All operations](https://skmtc.net/humanitec/apis/humanitec-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humanitec/humanitec-api/revisions/e21ad140ec3c/schema)
