Skip to Content
Potik Docs
Runbooks

Optional organizations

Single-tenant mode is the default. Existing personal projects stay in their original scope. To enable organizations in a deployment, configure the browser and API for OIDC as described in the browser sign-in runbook. Generate the Compose settings:

python3 tools/generators/tenancy.py multi compose.tenancy.yaml
docker compose -f compose.yaml -f compose.identity.yaml -f compose.tenancy.yaml up -d

Set the SMTP host and sender for invitations before starting the deployment. For local delivery, include compose.mail.yaml in the same Compose project and use SMTP_HOST=mailpit, SMTP_PORT=1025 and SMTP_TLS=off. See email delivery. To generate single-tenant settings, pass single and a different output path. The generator accepts an identical file on repeat runs and preserves custom edits.

Access

RoleScope
Application superadminAll organizations, their memberships and projects. The existing trusted ZITADEL administrator grant confers this role.
Organization administratorMemberships and projects in organizations where the user has the admin membership role.
MemberThe user's own projects in each organization where the user has a membership.

The organization management endpoint requires an authenticated user. In multi-tenant mode each GraphQL request must carry one positive decimal organization ID in X-Organization-ID. The selection identifies the intended organization. The database checks access on each operation. Personal and organization projects are stored separately. Switching modes does not move projects or copy memberships.

Invitations

Open Organizations, select Manage members, enter the recipient's email address and choose their organization role. An invitation for a new account is bound to the verified email returned by ZITADEL UserInfo. Sign in with the invited account and enter the emailed code under Accept an invitation. For a known local account, the inviter can also specify its application user ID. A code expires after 48 hours and can be redeemed once. Resending replaces the previous code.

For mobile clients using email-bound invitations, request the email scope along with openid and the API project scopes. The UserInfo endpoint must use HTTPS and share the configured issuer origin.

On this page