Studio roles
Everyone who signs in to Studio has a Studio role. The role decides which screens they see and what they may change.
Pre-1.0: APIs and config may change between releases.
The four roles
A self-hosted project has four Studio roles:
Admin: Everything, including giving and removing Studio roles.
Developer: Everything an admin can do, except Studio roles.
Editor: Content and files. No schema, SQL or settings.
Viewer: Reads content, files, schema and logs. Changes nothing.
Supatype Cloud adds owner and billing roles for the organisation. On a self-hosted project those two grant nothing, and the CLI refuses any role but the four above.
What each role can do
The server checks every Studio request against this table.
| Can | Admin | Developer | Editor | Viewer |
|---|---|---|---|---|
| Browse content and download files | Yes | Yes | Yes | Yes |
| Edit content, upload and delete files | Yes | Yes | Yes | No |
| See the schema, migrations and access rules | Yes | Yes | No | Yes |
| See logs | Yes | Yes | No | Yes |
| Push the schema | Yes | Yes | No | No |
| Deploy functions, hooks and secrets | Yes | Yes | No | No |
| Use the SQL editor | Yes | Yes | No | No |
| Work with full access | Yes | Yes | No | No |
| Use the realtime inspector | Yes | Yes | No | No |
| Manage API keys, CORS and domains | Yes | Yes | No | No |
| Manage the app’s users | Yes | Yes | No | No |
| See SSO providers | Yes | Yes | No | Yes |
| Change SSO providers and verify their domains | Yes | No | No | No |
| Create, change and delete buckets | Yes | Yes | No | No |
| Give and remove Studio roles | Yes | No | No | No |
Full access and Studio mode
Admins and developers work with full access. Studio acts for them as the service role, so your app’s access rules and field masks do not apply. An amber “Full access” banner shows while project rows are on screen. Every change is recorded.
Editors and viewers work in Studio mode. Your app’s row rules are skipped, so the Studio role decides which rows they reach. Field rules still apply, so masked columns stay masked. Every change is recorded.
There is no switch for this on content screens. To see data as an app user would, use Send as.
The project MCP, which lets an agent work with a running project’s records, acts with the signed-in person’s Studio role: a viewer’s agent can only read, and only an admin’s or developer’s agent may ask for full access. See MCP servers.
Field masking
A column with a field rule shows a padlock in Studio:
- A padlock alone: the value is hidden from you.
- A padlock with a question mark: the column is restricted per record, and this value is hidden or empty.
- A value with a small padlock: you can see it, but other callers may not.
In forms, a column you cannot read shows the padlock. A column you can read but not write is disabled. Admins and developers see every value with the small padlock, because masks do not apply to full access.
Send as
The API page’s Try it, the GraphQL explorer and a function’s Invoke tab ask who to send the request as:
| Choice | Sends | Offered to |
|---|---|---|
| Me (default) | Your own token. Your app’s access rules apply to you | Every role |
| Anonymous | The anon key, as a visitor who is not signed in | Every role |
| Service role | The service role. No rules apply. The key never reaches the browser | Admins and developers |
| A token I paste | A token you paste, such as a test user’s | Every role |
The choice applies to one request and is not remembered. The Invoke tab is on the Edge Functions page, which only admins and developers can open.
Drafts and publishing
On a model with drafts, the record editor shows Save draft and Publish. Its menu also schedules, discards and unpublishes.
Admins, developers and editors see drafts by default. Change this with publishing.draft_visibility in supatype.config.ts. A role that cannot see drafts does not get the publish controls.
In the Data browser, saving a cell or adding a row on a drafts model asks first:
- Save as draft: the change is stored as a draft, and a new row is created unpublished. The cell keeps the live value with a Draft badge until the record is published.
- Save and publish: the change goes live now, with any earlier draft changes to that record. A new row is created and published.
Giving someone a role
In Studio, open Authentication > Users. The Studio access column shows each user’s role. An admin can change it there, or choose No access. Developers see it read-only. Editors and viewers have no Authentication page. Your own row cannot be changed.
Create User has a Studio access choice too. Only admins see it.
From the command line:
$ supatype admin create-user --email sam@example.com --role editor$ supatype admin set-role --email sam@example.com --role viewer$ supatype admin list-userscreate-user makes a new sign-in user with a Studio role. --role is admin, developer, editor or viewer, and defaults to admin. It asks for the password if you leave out --password. supatype dev and supatype push make sure a first admin exists.
Only admins change admins
- Only admins give, change or remove Studio roles.
- A developer cannot change an admin’s account: no disabling, deleting, password or email changes, MFA changes, signing out or sending links. The server refuses with “Only a Studio admin can change another admin’s account.”
- Nobody can change their own Studio role or remove their own access.
- The last admin cannot be removed. Make someone else an admin first.