List teams that are assigned to an enterprise role
Lists the teams that are assigned to an enterprise role.
[!WARNING] This API is not available for Copilot Business for non-GHE.
To use this endpoint, the authenticated user must be one of:
- An administrator for the enterprise.
- A user, or a user on a team, with the fine-grained permission read_enterprise_custom_enterprise_role in the enterprise.
OAuth app tokens and personal access tokens (classic) require the read:enterprise scope to access this endpoint.
Path parameters
The slug version of the enterprise name.
The unique identifier of the role.
Query parameters
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
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"
}
]Changes
Changed in 1 of the 54 revisions of this API.1
- ○
added the optional property
items/notification_settingto the response with the200statusresponse-optional-property-added
- ○