Get started
Docs menu

Migrating

Migrating from Zitadel

On this page

Introduction

When you move from Zitadel to Signari, the people already in it should not have to start again. They should keep their passwords, their authenticator apps and the roles they had.

signari import zitadel reads an export of one Zitadel organisation, and writes it into one Signari organisation. People keep their password hashes and their time-based one-time password (TOTP) secrets, and project roles become groups. Applications do not come across, because the export leaves out their client IDs and secrets.

You export from Zitadel's Admin API, then run the import from the command line.

Export and import an organisation

Export one organisation through Zitadel's Admin API, then preview the import with -dry-run before you run it:

Shell# Export one organisation through Zitadel's Admin API, with an IAM token:curl -X POST https://zitadel.example.com/admin/v1/export \  -H "Authorization: Bearer $TOKEN" -H 'Content-Type: application/json' \  -d '{"org_ids": ["<org id>"], "with_passwords": true, "with_otp": true}' > zitadel.json# Here — preview first, it writes nothing:signari import zitadel -file zitadel.json -org <uuid> -dry-runsignari import zitadel -file zitadel.json -org <uuid>

One Zitadel organisation goes into one organisation here. An export holding several is refused rather than merged. Export each one by naming it in org_ids, and import each into its own organisation.

Both spellings of the export's field names are read, humanUsers and human_users.

A dry run is the import itself, run in a transaction that is rolled back. So its report is what the import would do.

What comes across

Each kind of record in the export becomes this in Signari:

In ZitadelHere
Human usersPeople, with their username, address and whether it was verified, first name, last name and display name. Active users and those still in their initial state come across. Inactive, locked, suspended and deleted ones are skipped and named
Password hashesKept, and verified as they are at the first sign-in, then replaced with Argon2id. A format that cannot be verified here is counted in the census, and the person is skipped and named
TOTPThe same secret, SHA-1, six digits every thirty seconds, as Zitadel enrols one. Needs SIGNARI_ROOT_KEY
Project rolesGroups named after the project and the role, such as Billing App / admin → Billing-App.admin, with the grants of each role as members
IdP linksKept, where a provider is registered here under the slug that the IdP's name makes: lower case, with other characters as hyphens (Corporate SSO → corporate-sso)
MetadataWritten where the organisation declares an attribute of that name, when the value is text

An identity provider (IdP) link joins a person to their account at another identity provider, so that they can sign in through it.

Run the import again after registering a provider or declaring an attribute. It duplicates nothing, and the report names whatever is still missing.

What does not, and why

Some things in the export cannot come across:

  • OpenID Connect (OIDC) and API applications. Zitadel writes an application into its export without its client ID or secret. So it cannot be recreated with the ID the application already uses. Each one is named in the report with its redirect URIs, and the URIs it returns people to after they sign out. Register it with signari client create -client-id <the ID it uses>.
  • The subject. Zitadel sends each person's ID as sub. That ID is a number written as text. An account's ID here, which is what Signari sends, is a universally unique identifier (UUID). An application that keyed its accounts on sub will not match anyone to their existing account. The report says how many people this applies to.
  • Machine accounts. They sign in with a key or a secret, and neither is exported. Register whatever uses one as a client.
  • Administrative roles, such as ORG_OWNER and project roles held as a member. Nothing is granted here by having held them. Each person's roles are named, so you can grant what is needed explicitly.
  • Passkeys and recovery codes. The export does not hold them. People register passkeys again, and make new recovery codes.
  • Everything else. Nicknames and phone numbers, and the organisation's policies, texts, actions, domains and IdP configurations. Each is counted in the report by field.

Changed Signari v0.2