---
title: "List teams that are assigned to an enterprise role"
method: GET
path: "/enterprises/{enterprise}/enterprise-roles/{role_id}/teams"
tags: ["enterprise-admin"]
---

# List teams that are assigned to an enterprise role

`GET /enterprises/{enterprise}/enterprise-roles/{role_id}/teams`

Lists the teams that are assigned to an enterprise role.

> [!WARNING]
> This API is not available for Copilot Business for non-GHE.

To use this endpoint, the authenticated user must be one of:

  - An administrator for the enterprise.
  - A user, or a user on a team, with the fine-grained permission `read_enterprise_custom_enterprise_role` in the enterprise.

OAuth app tokens and personal access tokens (classic) require the `read:enterprise` scope to access this endpoint.

## Path parameters

- `enterprise` string, required
- `role_id` integer, required

## Query parameters

- `per_page` integer
- `page` integer

## Response `200`

Response

- EnterpriseTeam[]
  - `id` integer, required
  - `name` string, required
  - `description` string
  - `slug` string, required
  - `url` string, uri, required
  - `sync_to_organizations` string — Retired: this field will not be returned with GHEC enterprise teams.
  - `organization_selection_type` string
  - `group_id` string, nullable, required
  - `group_name` string, nullable — Retired: this field will not be returned with GHEC enterprise teams.
  - `html_url` string, uri, required
  - `members_url` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `notification_setting` 'notifications_enabled' | 'notifications_disabled' — Whether team members will receive notifications when the team is mentioned.

## Other responses

- `403` — Forbidden
- `404` — Resource not found

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-2.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-2/versions/8ae6d0c8716e/schema)
