# Agent secrets: Write (organization)

Tier 2 permission, `permission:organization_agent_secrets:write`. Page: https://ghtier.com/tier/permissions/organization-agent-secrets-write

Creates, overwrites and deletes secrets given to the Copilot agent's environment, and chooses which repositories get them. The agent and copilot-setup-steps.yml see them as environment variables. The agent's changes still go through a pull request, so this does not reach production on its own.

**Reached by classic scopes:** [admin:org](https://ghtier.com/tier/tokens/admin-org.md) (Tier 0)

**Keys and policies that act as or change it:** [Agents secrets and variables](https://ghtier.com/tier/keys-policies/agent-secrets.md) (Tier 2)

**Sources:**
- [GitHub docs](https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps#organization-permissions-for-agent-secrets)

From ghtier (https://ghtier.com). Every entry and link: https://ghtier.com/data/graph.json. Tiers: https://ghtier.com/tier.
