---
title: "List team members"
method: GET
path: "/orgs/{org}/teams/{team_slug}/members"
tags: ["teams"]
---

# List team members

`GET /orgs/{org}/teams/{team_slug}/members`

Team members will include the members of child teams.

Each member includes their `role` on the team (`member` or `maintainer`) and an `inherited` flag indicating whether the membership is inherited from a child team (`true`) or is a direct membership (`false`). These fields let you read a member's role and direct/inherited status without additional requests.

To list members in a team, the team must be visible to the authenticated user.

## Path parameters

- `org` string, required
- `team_slug` string, required

## Query parameters

- `role` 'member' | 'maintainer' | 'all'
- `per_page` integer
- `page` integer

## Response `200`

Response

- TeamMember[]
  - `name` string, nullable
  - `email` string, nullable
  - `login` string, required
  - `id` integer, required
  - `node_id` string, required
  - `avatar_url` string, uri, required
  - `gravatar_id` string, nullable, required
  - `url` string, uri, required
  - `html_url` string, uri, required
  - `followers_url` string, uri, required
  - `following_url` string, required
  - `gists_url` string, required
  - `starred_url` string, required
  - `subscriptions_url` string, uri, required
  - `organizations_url` string, uri, required
  - `repos_url` string, uri, required
  - `events_url` string, required
  - `received_events_url` string, uri, required
  - `type` string, required
  - `site_admin` boolean, required
  - `starred_at` string
  - `user_view_type` string
  - `role` 'member' | 'maintainer' — The member's role on the team. Only present on the `List team members` endpoint, and only when the feature is enabled for the organization.
  - `inherited` boolean — Whether the user is a member of the team only through a child team. `true` means the membership is inherited from a child team; `false` means the user is a direct (immediate) member of the team. Only present on the `List team members` endpoint, and only when the feature is enabled for the organization.

---

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