# Codespaces user secrets: Write (user)

Tier 2 permission, `permission:codespaces_user_secrets:write`. Page: https://ghtier.com/tier/permissions/codespaces-user-secrets-write

Creates, overwrites and deletes secrets injected into the user's codespaces, and chooses which repositories get them. Adding a repository the caller controls hands the values to its dev container scripts the next time the user opens a codespace there.

**Reached by classic scopes:** [codespace](https://ghtier.com/tier/tokens/codespace.md) (Tier 2), [codespace:secrets](https://ghtier.com/tier/tokens/codespace-secrets.md) (Tier 2)

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

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