← 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
- PUT /orgs/{org}/actions/permissions
- PUT /orgs/{org}/actions/permissions/artifact-and-log-retention
- PUT /orgs/{org}/actions/permissions/fork-pr-contributor-approval
- PUT /orgs/{org}/actions/permissions/fork-pr-workflows-private-repos
- PUT /orgs/{org}/actions/permissions/repositories
- PUT /orgs/{org}/actions/permissions/repositories/{repository_id}also needs a permission GitHub's data does not name
- DELETE /orgs/{org}/actions/permissions/repositories/{repository_id}also needs a permission GitHub's data does not name
- PUT /orgs/{org}/actions/permissions/selected-actions
- PUT /orgs/{org}/actions/permissions/self-hosted-runners
- PUT /orgs/{org}/actions/permissions/self-hosted-runners/repositories
- PUT /orgs/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id}also needs a permission GitHub's data does not name
- DELETE /orgs/{org}/actions/permissions/self-hosted-runners/repositories/{repository_id}also needs a permission GitHub's data does not name
- PUT /orgs/{org}/actions/permissions/workflow
- POST /orgs/{org}/actions/policies
- PUT /orgs/{org}/actions/policies/{policy_id}
- DELETE /orgs/{org}/actions/policies/{policy_id}
- PATCH /orgs/{org}/code-scanning/ai-scan
- POST /orgs/{org}/code-security/configurations
- DELETE /orgs/{org}/code-security/configurations/detach
- PATCH /orgs/{org}/code-security/configurations/{configuration_id}
- DELETE /orgs/{org}/code-security/configurations/{configuration_id}
- POST /orgs/{org}/code-security/configurations/{configuration_id}/attach
- PUT /orgs/{org}/code-security/configurations/{configuration_id}/defaults
- POST /orgs/{org}/copilot/billing/selected_teamsalso needs GitHub Copilot Business: Write
- DELETE /orgs/{org}/copilot/billing/selected_teamsalso needs GitHub Copilot Business: Write
- POST /orgs/{org}/copilot/billing/selected_usersalso needs GitHub Copilot Business: Write
- DELETE /orgs/{org}/copilot/billing/selected_usersalso needs GitHub Copilot Business: Write
- PATCH /orgs/{org}/copilot/feature-policies
- PATCH /orgs/{org}/copilot/model-policies
- POST /orgs/{org}/credential-authorizations/revoke-all
- POST /orgs/{org}/credential-authorizations/revoke-credential-type
- DELETE /orgs/{org}/credential-authorizations/{credential_id}
- POST /orgs/{org}/credential-authorizations/{username}/revoke
- POST /orgs/{org}/credential-authorizations/{username}/revoke-credential-type
- PATCH /orgs/{org}/dependabot/repository-access
- PUT /orgs/{org}/dependabot/repository-access/default-level
- PUT /orgs/{org}/interaction-limits
- DELETE /orgs/{org}/interaction-limits
- PATCH /orgs/{org}/interaction-limits/pulls/creation-cap
- POST /orgs/{org}/rulesets
- PUT /orgs/{org}/rulesets/{ruleset_id}
- DELETE /orgs/{org}/rulesets/{ruleset_id}
- POST /orgs/{org}/secret-scanning/custom-patterns
- DELETE /orgs/{org}/secret-scanning/custom-patterns
- PATCH /orgs/{org}/secret-scanning/custom-patterns/{pattern_id}
- PATCH /orgs/{org}/secret-scanning/pattern-configurations
- PUT /orgs/{org}/security-managers/teams/{team_slug}
- DELETE /orgs/{org}/security-managers/teams/{team_slug}
- PUT /orgs/{org}/settings/immutable-releases
- PUT /orgs/{org}/settings/immutable-releases/repositoriesalso needs a permission GitHub's data does not name
- PUT /orgs/{org}/settings/immutable-releases/repositories/{repository_id}also needs a permission GitHub's data does not name
- DELETE /orgs/{org}/settings/immutable-releases/repositories/{repository_id}also needs a permission GitHub's data does not name
- POST /orgs/{org}/{security_product}/{enablement}
- GET /orgs/{org}/actions/policies
- GET /orgs/{org}/actions/policies/{policy_id}
- GET /orgs/{org}/bypass-requests/push-rules
- GET /orgs/{org}/copilot/feature-policies
- GET /orgs/{org}/copilot/model-policies
- GET /orgs/{org}/interaction-limits/pulls/creation-cap
- GET /orgs/{org}/rulesets
- GET /orgs/{org}/rulesets/rule-suites
- GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}
- GET /orgs/{org}/rulesets/{ruleset_id}
- GET /orgs/{org}/rulesets/{ruleset_id}/history
- GET /orgs/{org}/rulesets/{ruleset_id}/history/{version_id}
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 policies
manage_organization_oauth_application_policyorganization role(in part: Decides which OAuth apps may use members' access to the organization.) - Manage organization ref update rules and rulesets
manage_organization_ref_rulesorganization role(in part: Organization rulesets: can loosen or remove the rules on every repository.) - Manage organization Actions policies
write_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
Techniques it enables
- Bypass or switch off the rules Submit malicious code
- Flip private repos to public Read or expose private code
Escalations it starts
- Flip private repositories to public: Private source code exposed to everyone.
Reached through
- Install your own App in an enterprise organization · from Enterprise organization installations: Write (enterprise)
- Join any organization as an enterprise owner · from The Enterprise owner role
Fixed or limited by
- Limit the number of organization owners to the minimum needed
- Restrict public repo creation, visibility changes, repo deletion, private forks and outside collaborator invites to owners
- Enable audit logging and export it to a SIEM for retention and detection
- Rulesets applied: push restriction, tag protection, sensitive file-path protection