Sanity Pioneers: Get early access to betas, extra AI credits, and a direct line to the engineering team. Apply now

Can't log in to Sanity Studio - "Not authorized" despite being owner

9 repliesLast updated: Nov 29, 2025

Hey everyone!Sorry if I’m not on the right channel (?) for this.
Since a few days I can not log in to my Sanity account. I used to log in via my Github account and it worked perfectly.

Now I get this message:
“You are not authorized to access this studio. Maybe you could ask someone to invite you to collaborate on this project?
If you think this is an error, verify that you are logged in with the correct account. You are currently logged in as xxxxxx (
xxxxxx@gmail.com )”
What I don’t get is that I don’t
need any invitation since I’m the owner of this account, which I was using until now.I assume it could be because of my location: I sometimes get to travel. I tried with a VPN, it worked a couple of time and then nothing: the same message comes back again and again...

Any clue about this?
I really need to log in to keep working haha... Thanks a lot.
AI Update

I understand how frustrating this is! The "You are not authorized to access this studio" error when you're the project owner is a known issue that can happen for a few different reasons. Let me help you troubleshoot.

First, verify which account you're logged into:

The easiest way to check is using the Sanity CLI. Open your terminal and run:

sanity whoami

This will show you which Sanity account you're currently authenticated with. If you're not logged in or logged into the wrong account, run:

sanity login

Then select GitHub as your login provider to ensure you're using the same account.

Check which projects you have access to:

Run this command to list all projects associated with your current login:

sanity projects list

If your project appears in this list, you have access. If it doesn't appear, that confirms there's an account mismatch issue.

Common causes of this issue:

Try accessing Sanity Manage:

Can you log into sanity.io/manage? If so, go to your project and view the Members section. You should see your email with the GitHub logo on your avatar and a role of Administrator. If you don't see this, it confirms the account mismatch.

How to fix it:

Since you're the project owner, the best path forward is to contact Sanity support directly. They can:

In the meantime:

If you have access to your project's code locally, you can verify your project ID by checking your sanity.config.ts or sanity.json file. When you contact support, provide them with:

The VPN working intermittently is likely coincidental - Sanity doesn't typically block access based on location unless there are specific security policies in place for your organization.

Good luck, and support should be able to get you back in quickly!

Show original thread
9 replies

Was this answer helpful?

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Related contributions