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

# List teams

`GET /user_risk/teams/list`

## Request

- Base URL: `https://cyber-risk.upguard.com/api/public`
- URL: `https://cyber-risk.upguard.com/api/public/user_risk/teams/list`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/upguard/apis/upguard-cyberrisk-api/docs/user_risk/teams/list/get.ts> (a function with typed inputs; its response is checked against the schema)

Retrieve a list of teams for your organization.

Required API key permissions: `User Risk` (select when creating API key in Account Settings)

## Query parameters

- `page_size` integer
- `page_token` string
- `sort_by` 'name' | 'user_count'
- `sort_dir` 'asc' | 'desc'

## Response `200`

A list of teams for your organization

- GetUserRiskTeamsListResponse
  - `next_page_token` string: The token to be used to retrieve the next page of results. Will not be returned if there are no more results.
  - `teams` Team[], required: The list of teams.
    - `name` string, required: The name of the team.
    - `user_count` integer, required: The number of users assigned to this team.

## Other responses

- `403`: Your API key does not have permission to perform this action.
- `422`: An invalid parameter was supplied or a mandatory parameter was missing
- `429`: Too many requests have been made to this endpoint.
- `500`: An internal system error occurred

---

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