Repository navigation
Description
Summary
Creating an organization works on main 7d7b1ee98 for the owner and for an Admin who signed in with a password, on a deployment that names no creators. It is closed in two other situations, and in both the page says the same thing: "You cannot create an organization on this deployment. Contact the operator to request a workspace."
- A session from an SSO sign-in. Since v0.5.87 (fix(platform): bind organization session authority #4903) such a session is bound to the organization whose identity provider signed it in. The bound session cannot create an organization at all, whatever its role and whatever the deployment allows.
- A managed deployment (CLI) whose specification declares no
organizations.creators. The edge answers the capability probe with{"canCreate":false}and refuses the create call for everyone, owners included.
Reported as "Creating organizations no longer works" and "Admins cannot create new organizations?". The reporter confirmed that the affected Admins sign in with SSO, so the first situation explains the report on any deployment. Their sessions are bound to their organization, and neither a role nor the creator list opens creation for a bound session. Whether their deployment is CLI-managed is not known; that matters only for password sign-ins. This issue lays out both situations and asks what the intended behaviour is.
What the code does today (main 7d7b1ee98)
Who may create, on the backend. services/platform/backend/auth/organization-creation-gate.ts:24-36 and :74-82: a server-side call always passes; with TALE_ORGANIZATION_CREATORS unset, any signed-in user may create; a listed address passes; otherwise only the first organization of a deployment can be created. Enforced in the Better Auth before-hook (services/platform/backend/auth/auth.ts:1112-1144).
A bound session. An SSO sign-in writes the session with trustedOrganizationId set to the connection's organization (services/platform/backend/domains/sso/service.ts:238-263). For such a session:
GET /api/app/organizations/capabilitiesanswers{"canCreate": false}before the gate is asked (services/platform/backend/domains/organizations/routes.ts:73-76);POST /api/auth/organization/createis refused, because the path is not among the organization endpoints a bound session may call (services/platform/backend/auth/session-authority.ts:140-176, refusal at:237, checked for every authenticated call inservices/platform/backend/auth/auth.ts:618-623), with "This session is limited to the organization that signed you in." (services/platform/lib/shared/constants/session-authority.ts:3-4).TALE_ORGANIZATION_CREATORSdoes not change this;- the organization list shows the bound organization only (
services/platform/backend/domains/organizations/routes.ts:52-66).
A managed deployment. tools/cli/src/lib/deployment/runtime-prepare.ts:199-211: unless the specification declares creators, the edge answers the capability probe {"canCreate":false} and refuses POST /api/auth/organization/create with "Organization provisioning is managed by the operator" (403). Declared creators are written to TALE_ORGANIZATION_CREATORS, and the backend judges each caller. This dates back to 31af37b38 (2026-09-10); the creator list came with #3413 (v0.5.34).
What the person sees. The account menu's organization list shows Create organization only when the probe says canCreate: true (services/platform/app/features/organization/components/organization-list-panel.tsx:146). Opening /dashboard/create-organization otherwise shows workspace.creationForbidden (services/platform/app/routes/dashboard/create-organization.tsx:44-56; services/platform/messages/en/onboarding.yml:19). The page uses that one sentence for every reason.
What was observed
Local stack, default deployment (no TALE_ORGANIZATION_CREATORS):
| Who | Sign-in | canCreate |
Result |
|---|---|---|---|
| Owner | password | true |
Create organization in the menu; wizard created "Second Workspace" |
| Admin (added under Members) | password | true |
wizard created "Admin Workspace" |
| Same Admin | session bound to the organization, as an SSO sign-in writes it (see below) | false |
menu entry hidden; the page shows "You cannot create an organization on this deployment. Contact the operator to request a workspace."; POST /api/auth/organization/create → 403 ORG_FORBIDDEN "This session is limited to the organization that signed you in." |
The bound session was produced by setting trustedOrganizationId and activeOrganizationId on the Admin's live session row, the two fields createSsoUserSession writes. A full round trip through an identity provider was not run.
Not examined: a managed deployment's edge (read from the CLI source only), an SSO sign-in through a real identity provider, and trusted-header and passkey sessions after TALE_ORG_SESSION_CUTOVER_AT.
From the reporter
- The affected Admins sign in with SSO.
- Not known: whether the deployment is CLI-managed, and whether its specification declares
organizations.creators. That matters only for password sign-ins.
Constraints
- The binding is a security boundary: a session an organization's identity provider minted must not act on another organization (fix(platform): bind organization session authority #4903).
- On a managed deployment the operator decides who may open organizations; the edge cannot tell who is asking.
Options (no preference)
For the SSO case:
- Keep creation closed for bound sessions, and say why on the page: the sign-in is limited to one organization; sign in with a global account to create another.
- Allow a bound session to create an organization and bind the new organization to a fresh session, with or without a fresh proof of identity.
- Let the organization's SSO settings decide whether its members may create organizations.
For the page in general:
- Give each reason its own sentence: not a listed creator, a managed deployment without creators, a bound session.
- Show the menu entry disabled with the reason, instead of hiding it.
Questions
- Should an Admin of one organization be able to open a new one at all, or is that the operator's decision on every deployment?
- Should "Contact the operator" name who that is?
Related
- fix(platform): bind organization session authority #4903 (organization session authority), feat(platform): let the operator name who may create an organization #3413 (creator list), feat(platform): let admins allow members to create projects #5040 (let admins allow members to create projects), Decision: should a role in one organization let a member create an API key that works in another? #5046 (a role in one organization and API keys in another)
Activity
yannickmonney commentedon Nov 14, 2026
Decision
Rule: Only the operator decides who may create an organization, on every deployment. A role in an existing organization (Owner or Admin) never grants it and never blocks it. A session bound to one organization (from single sign-on, an authenticating proxy, or a passkey added during such a sign-in) stays limited to that organization and cannot create one. When creation is closed, the page says exactly why and offers a next step that works.
Answers
TALE_ORGANIZATION_CREATORSunset means everyone, a list means those people, empty means nobody once the first organization exists. That holds for a global session, whatever the role. A bound session cannot, whatever the role or the list.organizations.creatorsstay closed after the first organization. The backend now enforces this through an empty creator list.Rationale. A bound session proves identity only through organization A's identity provider or proxy. Letting it open organization B would put a workspace outside A's IdP lifecycle, which is the boundary #4903 drew. For the same reason a passkey added in a bound session stays bound. An organization-level setting would let one admin grant a deployment-level right. Moving the managed rule to the backend leaves one enforcement point, covers the sandbox network, and lets the page give the real reason.
Implementation units (all on
main)TALE_ORGANIZATION_CREATORSwithout declared creators, no Caddy create/capabilities handlers, a minimum image check, and confirmation that the bootstrap still owns the first organization. (M)