"Insufficient permissions issue with newly created projects and organizations"
Last updated: Jul 1, 2023
Hello 👋 I am getting "Insufficient permissions" on newly created projects and organizations (please see attached image).
To troubleshoot, I've created multiple accounts using different auth methods and created projects under new organizations and personal accounts. The issue persists in all scenarios.
Is this a known issue? I've searched through Slack, and this has popped up in the past but has since been resolved.
I would greatly appreciate any help!
Jul 1, 2023, 1:59 PM
Interestingly enough, some of the "insufficient permissions" I'm facing in the UI is not the case when using the CLI. For example, I am able to view and create datasets for the CLI but not UI
Jul 1, 2023, 2:10 PM
Luckily I can manage my project via the Projects API . My permissions are in place in the backend, so the issue is most likely front-end related.
Jul 1, 2023, 2:31 PM
Hi (Removed Name). In Manage, please click your avatar in the top-right corner and select Account settings. On that page, take note of the details under
. Then, in your CLI, run the command
sanity debug | grep 'Email'
and see if that matches what was in Manage. If it doesn’t, then you’ll want to log out in your browser and back in using the login you’ve used in the terminal.
Jul 1, 2023, 2:42 PM
Just checked, emails match
Jul 1, 2023, 3:42 PM
It seems to have resolved itself. Was anything done on your end?
Jul 1, 2023, 3:54 PM
No, nothing done here.
Jul 1, 2023, 3:58 PM
The request in Manage to get your permissions comes after the initial paint, which causes some tabs to appear disabled at first. I’m only speculating, but it’s possible that the request for permissions was failing. Hard to know without reproducing or seeing your Network tab, but I’m glad it’s working again for you. I checked your email address, and it looks like you have some projects using Google as the login provider and other projects using GitHub. These will be treated as separate accounts.
Jul 1, 2023, 4:01 PM
Yea, that was part of my debugging process. I was wondering if it was auth related so I created accounts using all the auth methods lol