---
title: "Get a user's teams"
method: GET
path: "/api/v4/users/{user_id}/teams"
tags: ["teams"]
---

# Get a user's teams

`GET /api/v4/users/{user_id}/teams`

Get a list of teams that a user is on.
##### Permissions
Must be authenticated as the user or have the `manage_system` permission.

## Path parameters

- `user_id` string, required

## Response `200`

Team list retrieval successful

- 38cb7293Team[]
  - `id` string
  - `create_at` integer — The time in milliseconds a team was created
  - `update_at` integer — The time in milliseconds a team was last updated
  - `delete_at` integer — The time in milliseconds a team was deleted
  - `display_name` string
  - `name` string
  - `description` string
  - `email` string
  - `type` string
  - `allowed_domains` string
  - `invite_id` string
  - `allow_open_invite` boolean
  - `policy_id` string — The data retention policy to which this team has been assigned. If no such policy exists, or the caller does not have the `sysconsole_read_compliance_data_retention` permission, this field will be null.

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `401` — No access token provided
- `403` — Do not have appropriate permissions

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
