Supabase scopes Personal Access Tokens to projects and permissions by default
Brief
Supabase has made Personal Access Token scoping generally available: tokens can now be limited to specific organizations, projects and permissions instead of full account access.
Availability and defaults
- Scoping became generally available on September 28 and was announced at Supabase Select on October 2.
- New tokens created in the Dashboard are scoped by default; full-account-access tokens can still be created.
- Nearly nine out of 10 tokens created in the Dashboard since launch have been scoped.
Creating a scoped token
- Choose resources (the Dashboard recommends project-level scope), permissions and an expiry of up to one year.
- Permission presets are No access, Read-only and Full access; Read-only includes secrets such as API keys.
- The review screen shows covered Management API endpoints and MCP tools plus a Low/Medium/High risk rating; the token value is shown once and its scope is fixed at creation.
Access boundaries and API/MCP behavior
- A token can never exceed the user's own permissions; access is re-evaluated, so losing project access also removes it from the token.
- Scoped tokens use the sbp_fc prefix; the Management API returns 403 with a missing_permissions field when a permission is absent.
- MCP tools return tool errors when denied; Database read allows read-only execute_sql, SQL writes return a Postgres permission error, and apply_migration needs Migrations read-write.
CLI and existing tokens
- CLI browser login still creates full-access tokens today; use Dashboard tokens with supabase login --token or SUPABASE_ACCESS_TOKEN in CI.
- Database commands relying on SUPABASE_DB_PASSWORD bypass token permissions; supabase link requires read access to Project Settings, API Keys and API Key Secrets.
- Existing tokens keep working with no deprecation or shutoff date; full-access tokens carry a Legacy badge.
Generated by AI from the original article. Check the source for full details.