List team members
GET {{baseUrl}}/orgs/:org/teams/:team_slug/members?role=all&per_page=30&page=1
Team members will include the members of child teams.
To list members in a team, the team must be visible to the authenticated user.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
role | string | Filters members returned by their role in the team. Can be one of: | |
* member - normal members of the team. | |||
* maintainer - team maintainers. | |||
* all - all members of the team. | |||
per_page | number | Results per page (max 100) | |
page | number | Page number of the results to fetch. |
RESPONSES
status: OK
[{"login":"octocat","id":1,"node_id":"MDQ6VXNlcjE=","avatar_url":"https://github.com/images/error/octocat_happy.gif","gravatar_id":"","url":"https://api.github.com/users/octocat","html_url":"https://github.com/octocat","followers_url":"https://api.github.com/users/octocat/followers","following_url":"https://api.github.com/users/octocat/following{/other_user}","gists_url":"https://api.github.com/users/octocat/gists{/gist_id}","starred_url":"https://api.github.com/users/octocat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octocat/subscriptions","organizations_url":"https://api.github.com/users/octocat/orgs","repos_url":"https://api.github.com/users/octocat/repos","events_url":"https://api.github.com/users/octocat/events{/privacy}","received_events_url":"https://api.github.com/users/octocat/received_events","type":"User","site_admin":false}]