← All permissions
Enterprise permission·enterprise_custom_enterprise_roles:write
Custom enterprise roles: Write
Tier 0 · Critical
Why Tier 0
Assigns custom enterprise roles to users and teams and removes them. It cannot create or change a role, so it hands out whatever the enterprise's roles hold. GitHub does not document the full list of what a role can hold, so the tier is the worst case.
- Target
- Enterprise
- Plane
- ControlRoles: Custom organization, repository and enterprise roles.
- Granted by
- GitHub App
- Available on
- Enterprise Cloud, EMU
What it unlocks
6 REST endpoints need this permission, from GitHub's docs data. Some also need another permission, and a few work with only one kind of token.
- DELETE /enterprises/{enterprise}/enterprise-roles/teams/{team_slug}
- PUT /enterprises/{enterprise}/enterprise-roles/teams/{team_slug}/{role_id}
- DELETE /enterprises/{enterprise}/enterprise-roles/teams/{team_slug}/{role_id}
- DELETE /enterprises/{enterprise}/enterprise-roles/users/{username}
- PUT /enterprises/{enterprise}/enterprise-roles/users/{username}/{role_id}
- DELETE /enterprises/{enterprise}/enterprise-roles/users/{username}/{role_id}
Roles that include it
- T0Enterprise ownerEvery organization in the enterprise
Classic scopes that reach it
- T0admin:enterprisedocumented
Attack paths
No attack technique, escalation or incident on ghtier goes through this yet.
Other levels
GitHub Docs: Enterprise permissions for "Custom enterprise roles"