GitHub expands organization API endpoints to support enterprise teams alongside organization teams
Enterprise Team Support in Organization APIs
GitHub has extended four key API endpoints to support enterprise teams alongside organization teams, simplifying team management for GitHub Enterprise administrators. Previously, retrieving a complete view of all teams required querying separate endpoints and navigating varying admin permission requirements.
Updated Endpoints
The following endpoints now support enterprise teams as both input and output:
- Teams endpoint – Query enterprise and organization teams in a single request
- Team members endpoint – Retrieve members across both team types
- Organization repository rulesets – Apply and manage rulesets for both team types
- Repository rulesets – Configure rulesets at the repository level with enterprise team support
Key Capabilities
With these updates, developers can now:
- Query multiple team types in one request – Eliminate the need for separate API calls to organizations and enterprises
- Filter by team type – The "List Teams" endpoint supports filtering to distinguish between enterprise-level and organization-level teams
- Maintain consistent formatting – Enterprise and organization teams now return in a standardized format for easier consumption
- Enforce clear permission scoping – Organization owners see teams scoped to their domain; enterprise owners get full visibility across the enterprise
Important Notes
Enterprise Teams is currently in public preview and subject to change. Invalid enterprise team inputs will return appropriate error responses. GitHub is actively seeking feedback on this feature through the community discussion forum.