List the teams holding an organization role
Use list_role_teams to see which teams currently hold a given
organization role — the team-level counterpart to list_role_users.
Prerequisites
Section titled “Prerequisites”github-org-identityinstalled.- A GitHub token resolvable via
GITHUB_TOKENorgh auth token, with the org’sadmin:orgscope or App-installationmembers/organization_administrationpermission. - The numeric
roleIdyou want to inspect — get it from list_organization_roles first if you don’t already have it; this tool does not accept a role name.
-
Ask for the tool with the org and the role’s numeric id:
Use
list_role_teamsfor orgmy-org, roleId8132. -
Read the result — an array of
{ "slug": "...", "name": "..." }for every team directly holding that role. An empty array means no team currently holds it (individual users might still hold it directly — see list_role_users).
If the call fails
Section titled “If the call fails”missing_scope— no resolvable token.github_api_error— theroleIddoesn’t exist in this org, or the identity lacks org-roles read access.