ghtier
← All permissions
Organization permission·organization_administration:write

Administration: Write

Tier 0 · Critical

Why Tier 0

Changes org settings including the base repository permission, org rulesets, Actions policy, the OIDC subject format and which team is security manager. Enough to switch off every org-wide guard at once.

Management plane permissions start at Tier 1. This one is raised for the reason above.

Target
Organization
Plane
ManagementOrganization policy: Org and enterprise settings, rulesets, Actions policy, custom properties and Copilot controls.
Granted by
Fine-grained PAT, GitHub App
Available on
Every setup

What it unlocks

75 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.

  • PUT /organizations/{org}/actions/cache/retention-limit
  • PUT /organizations/{org}/actions/cache/storage-limit
  • PATCH /orgs/{org}
  • DELETE /orgs/{org}
  • POST /orgs/{org}/actions/hosted-runners
  • PATCH /orgs/{org}/actions/hosted-runners/{hosted_runner_id}
  • DELETE /orgs/{org}/actions/hosted-runners/{hosted_runner_id}
  • POST /orgs/{org}/actions/oidc/customization/properties/repo
  • DELETE /orgs/{org}/actions/oidc/customization/properties/repo/{custom_property_name}
  • PUT /orgs/{org}/actions/oidc/customization/sub

Roles that include it

  • T0OwnerThe organization and every repository in it
  • T1Security managerThe organization and every repository in it(in part: Security configurations for every repository. Can switch secret scanning, push protection and code scanning off org-wide.)
  • T1CI/CD adminThe organization's Actions setup(in part: Only the Actions policy part of organization Administration: which actions may run and what workflow tokens get.)
  • T2ModeratorThe organization's public spaces(in part: Moderation setting.)

Custom role permissions that add it

An owner can build a custom role from these on Enterprise Cloud. Nobody holds one until a custom role with it is assigned.

  • Manage organization OAuth app policiesmanage_organization_oauth_application_policyorganization role(in part: Decides which OAuth apps may use members' access to the organization.)
  • Manage organization ref update rules and rulesetsmanage_organization_ref_rulesorganization role(in part: Organization rulesets: can loosen or remove the rules on every repository.)
  • Manage organization Actions policieswrite_organization_actions_settingsorganization role(in part: Only the Actions policy part of organization Administration: which actions may run and what workflow tokens get.)

Classic scopes that reach it

  • T0admin:orgdocumented
  • T0repodocumented
  • T1manage_runners:orgstated by GitHub(in part: Only larger runners: their image, size and runner group. Moving a runner to another group or image changes where and on what privileged jobs run.)
  • T1write:orgstated by GitHub(in part: Only security configuration, but that is enough to switch secret scanning and push protection off across the organization.)

Attack paths

Other levels

GitHub Docs: Organization permissions for "Administration"