zitadel_provision_user
Provision a user for core SSO apps by creating an idempotent account via email or ID, assigning an admin or standard role, and granting org manager permissions to admins.
Instructions
Atomically provision a user for the core SSO apps (the app-portal cascade-up). Creates the human user (idempotent by email or supplied userId), assigns the Admin|Standard project role via the v2 AuthorizationService, and — for Admins — grants ORG_USER_MANAGER so they can manage any user (no-super-admin pattern). Returns { zitadelUserId, role, authorizationId }. Safe to re-run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | Business role: "admin" or "standard" (the only two) | |
| Yes | Email address for the user | ||
| userId | No | Optional client-supplied user ID for idempotent retries | |
| lastName | Yes | Last name | |
| firstName | Yes | First name | |
| projectId | No | Project ID for the role assignment (uses default project if omitted) | |
| grantOrgManager | No | Grant the org-manager role. Default: true for role=admin, false for role=standard. Set explicitly to override. |