enterprise-team-memberships
List enterprise teams for a user
Lists all enterprise teams that a user is a member of. This endpoint is available only for enterprises using the new enterprise teams experience.
The authenticated user must be an enterprise owner or have the enterprise_teams:read permission.
get/enterprises/{enterprise}/members/{username}/teams
Path parameters
enterprisestring required
The slug version of the enterprise name.
usernamestring required
The handle for the GitHub user account.
Query parameters
per_pageinteger
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
pageinteger
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
Response
Response
Example response
[
{
"sync_to_organizations": "disabled | all",
"organization_selection_type": "disabled | selected | all",
"group_id": "62ab9291-fae2-468e-974b-7e45096d5021",
"group_name": "Justice League",
"html_url": "https://github.com/enterprises/dc/teams/justice-league",
"notification_setting": "notifications_enabled"
}
]