← All permissions
Organization permission·organization_agent_variables:write
Agent variables: Write
Tier 2 · Medium
Why Tier 2
Changes variables in the Copilot agent's environment.
- Target
- Organization
- Plane
- DataAI agents: Copilot agent settings and Copilot Spaces.
- Granted by
- Fine-grained PAT, GitHub App
- Available on
- Free, Team, 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.
- POST /orgs/{org}/agents/variables
- PATCH /orgs/{org}/agents/variables/{name}
- DELETE /orgs/{org}/agents/variables/{name}
- PUT /orgs/{org}/agents/variables/{name}/repositories
- PUT /orgs/{org}/agents/variables/{name}/repositories/{repository_id}also needs a permission GitHub's data does not name
- DELETE /orgs/{org}/agents/variables/{name}/repositories/{repository_id}also needs a permission GitHub's data does not name
Roles that include it
No built-in role includes it. Only tokens, Apps or custom roles can grant it.
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 agent variables
write_organization_agent_variablesorganization role
Classic scopes that reach it
- T0admin:orgdocumented
Attack paths
No attack technique, escalation or incident on ghtier goes through this yet.