provider teams GET /teams/{team_id}/members/{username}
@utdk/github /teams/{team_id}/members/{username}
Get team member (Legacy)
The "Get team member" endpoint (described below) is closing down. We recommend using the [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships. To list members in a team, the team must be visible to the authenticated user.
team_id path required
The unique identifier of the team.
integer
username path required
The handle for the GitHub user account.
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
teams.getMemberLegacy
GET/teams/{team_id}/members/{username}
The "Get team member" endpoint (described below) is closing down. We recommend using the [Get team membership for a user](https://docs.github.com/rest/teams/members#get-team-membership-for-a-user) endpoint instead. It allows you to get both active and pending memberships. To list members in a team, the team must be visible to the authenticated user.

Parameters

required

The unique identifier of the team.

required

The handle for the GitHub user account.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.teams.getMemberLegacy()