Get team membership for a user (Legacy)

GET {{baseUrl}}/teams/:team_id/memberships/:username

Deprecation Notice: This endpoint route is deprecated and will be removed from the Teams API. We recommend migrating your existing code to use the new Get team membership for a user endpoint.

Team members will include the members of child teams.

To get a user's membership with a team, the team must be visible to the authenticated user.

Note: The role for organization owners returns as maintainer. For more information about maintainer roles, see Create a team.

RESPONSES

status: OK

{"url":"https://api.github.com/teams/1/memberships/octocat","role":"member","state":"active"}