---
title: "List teams"
method: GET
path: "/teams"
tags: ["teams"]
---

# List teams

`GET /teams`

List teams. For non-administrator users, will only list the teams they are member of.
**Access policy**: restricted

## Query parameters

- `onlyLedTeams` boolean
- `environmentId` integer

## Response `200`

Success

- PortainerTeam[]
  - `DenyPortainerAccess` boolean — Whether members of this team are denied access to Portainer itself (EE only)
  - `Id` integer — Team Identifier
  - `Name` string — Team name

## Other responses

- `500` — Server error

---

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