See how we built our intranet. Live + Q&A, June 30

401 Error: Missing sanity.organization.projects/detach Grant When Transferring Project

3 repliesLast updated: Nov 29, 2025

Hello,I am getting a 401 error when trying to transfer an ownership from one organisation to another. I am an admin for both organisations. Any idea what could be wrong?

error: "Unauthorized"

message: "User is missing required grant sanity.organization.projects/detach on \"onPK83UGl\" to perform this operation"

statusCode: 401
AI Update

The error you're seeing indicates that you're missing a specific organization-level permission needed to transfer projects between organizations. Even though you're an admin in both organizations, the Administrator role alone isn't always sufficient for project transfers.

What's Happening

According to the Plans and Payments documentation, to transfer a project between organizations, your role must include these specific permission grants:

The error message specifically mentions you're lacking the sanity.organization.projects/detach grant on the source organization.

How to Fix This

Important Note

This is a security feature - the sanity.organization.projects.detach permission is intentionally restricted because detaching/transferring projects has significant implications for billing and resource management. It ensures that only users with proper organization-level authority can move projects between organizations.

If you continue having issues after verifying your organization-level permissions, I'd recommend reaching out to Sanity support as they can check your specific account permissions.

Show original thread
3 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