SCIM 2.0 user provisioning in Zitadel

Provisioning and deprovisioning users into self-hosted Zitadel over SCIM 2.0 from an HR system or another IdP, with the design choices that keep identities correct.

On this page

How SCIM 2.0 user provisioning in Zitadel keeps identities current

If HR or an upstream identity provider is the source of truth for who works with you, Zitadel can follow that source automatically. Zitadel's SCIM v2 service provider interface creates, updates, deactivates and deprovisions users so that no one has to copy accounts by hand when someone joins, changes role or leaves. The interface is the right fit when your identity source can push changes over the SCIM 2.0 standard and you need accounts to exist before the person ever signs in.

Teams usually need SCIM when account state must change without the user logging in, for example when a leaver must lose access the same day, when group or attribute changes must reach Zitadel on schedule, or when auditors ask who held an account on a given date. Login-time federation and just-in-time creation are simpler. They create or update a user at first sign-in from an external provider, but they cannot remove an account that nobody uses again. If your offboarding obligations depend on deactivation, plan for SCIM or an equivalent process, and confirm with your own compliance team which timing they require.

Two concepts shape the design. The externalId attribute links each Zitadel user to the identifier in the source system, so repeated updates land on the correct account. Because two source systems can issue overlapping identifiers, Zitadel scopes externalId values by provisioning domain, which is set as service account metadata. Plan your domains before the first sync: one domain per source system or tenant, with a clear owner for each. Attributes without a direct Zitadel equivalent are stored in user metadata, so confirm which HR fields you need to keep before mapping them. The Zitadel SCIM v2 guide sets out the exact endpoints and fields to verify against your version.

Provisioning design options and when each fits

This table compares three ways to bring users into Zitadel: one provisioning domain per source system, a single shared domain, and SCIM versus federation or just-in-time creation. Read each row as a decision: the fit describes when the option makes sense, the risk shows what breaks if it is chosen badly, and the confirmation column lists what to check in your own environment before committing.

OptionBest fitMain riskConfirm in your environment
One domain per source systemSeveral HR systems or IdPs each own a different population of users, such as employees and contractors from separate directoriesOverlapping externalId values across sources stay separated, but the team must maintain one service account and metadata scope per sourceWhich systems are authoritative for which users, and whether any user appears in more than one source
Single shared domainOne authoritative HR source provisions all workforce users into a single organizationTwo sources writing to the same domain can overwrite each other's externalId values and deactivate users unexpectedlyThat no second system provisions into the same domain and that externalId values are unique across all feeding systems
SCIM provisioningThe source system must create, update and deactivate accounts ahead of first sign-in, including removalsDeprovisioning depends on the source sending deactivation events, so a missed change can leave accounts activeThat the source supports SCIM 2.0 push, the attribute mapping is agreed, and a deactivation test passes end to end
Federation with just-in-time creationUsers arrive through an external login and accounts can be created at first sign-in without a pre-built directory feedAccounts exist only after a login, so removed users stay active until their sessions and access are revoked elsewhereWhether the identity provider's session lifetime and group changes are enough for offboarding, and who owns access removal
Federation alone without lifecycle syncSmall user populations where manual account review is acceptableNo automated record of who should still have access, which weakens access reviewsWhether an assessor will accept manual review evidence for the population and how often it runs

How to set up SCIM provisioning in Zitadel

This sequence takes a team from an undefined identity source to a SCIM 2.0 connection that creates, updates, deactivates and deprovisions Zitadel users, with each step confirmed before the next begins. It produces a tested path that the operations team can repeat across environments.

  1. Define the source of truth and attribute map

    Name the system that owns each user's identity record, usually the HR system or the directory that already drives joiner and leaver events. List every attribute the sender will push, mark which ones map to Zitadel's standard user fields, and decide which ones have no direct equivalent and will be stored as user metadata. Assign one owner who signs off the map. Done when the mapping is written down and each attribute has a named target, and the owner has approved it.

  2. Create the service account and provisioning domain

    In the target organization, create a service account for the sending system and generate its credential according to your secrets handling policy. Set the provisioning domain as service account metadata. Zitadel scopes externalId values by this domain, so choose a name that identifies the source system and keeps it distinct from any other provisioning source. Record the domain name in your change log. Done when the service account exists, the metadata entry is visible, and the credential works against a single read request.

  3. Configure the SCIM client in the sending system

    In the HR system or upstream identity provider, enter the Zitadel SCIM 2.0 endpoint for the instance and the service account credential. Confirm which user attribute the sender uses as the externalId and which attributes it sends on create and update. Keep the first run scoped to a test group of users so mistakes stay contained. Done when the sender reports a successful connection test and the configuration matches the attribute map from step one.

  4. Test create, update and deactivate on a non-production instance

    Run the sequence on a non-production instance that mirrors production settings. Create a test user from the sender, change one mapped attribute and confirm the update appears in Zitadel, then deactivate the user in the source. Repeat with a user whose attributes include one that has no direct equivalent. Keep a record of each request and its result. Done when all three operations produce the expected state in Zitadel and no duplicate users appear.

  5. Verify externalId scoping and metadata

    Open the test users in Zitadel and check that each externalId is recorded under the provisioning domain you set, not as a bare value. Confirm that attributes without a standard field appear in user metadata with the expected keys. Then create a second provisioning domain from a different test source and confirm that an identical externalId does not collide with the first. Done when both domains hold their own values and the metadata matches the attribute map.

  6. Verify deprovisioning results

    Remove or deactivate a test user in the source system and confirm the sender issues the matching request. Check the user's state in Zitadel and confirm that sign-in is blocked and existing sessions are handled as your policy requires. Confirm that the user's record remains available for audit according to your retention plan. Done when deprovisioning behaves as the written policy describes and the result is captured in the test record.

  7. Promote the configuration with a rollback record

    Repeat the verified configuration in production with a new service account and provisioning domain, keeping the test values out of production. Start with a limited user group, then widen scope once the first sync cycle completes without errors. Keep the rollback steps and the credential rotation owner documented. Done when production reports matching results for create, update and deactivate, and the operations team has the runbook.

Security and operational considerations for SCIM

Provisioning over SCIM gives an external system standing authority to create, change and disable identities in Zitadel, so the provisioning account, its endpoint and its audit trail deserve the same care as administrator access. The cards below cover the controls that connect those pieces and the behavior to test when a user is deactivated.

Scope the service account credential

The SCIM client authenticates as a service account, and whoever holds its credential can change users in the scoped organization. Issue one service account per provisioning source, such as the HR system or a partner IdP, so a leaked key can be revoked without disrupting other feeds. Confirm where the key is stored, who can read it, and that it never appears in source control or pipeline logs.

Zitadel SCIM docs

Rotate provisioning credentials on a schedule

A provisioning credential that is never rotated tends to outlive the person who created it. Define a rotation procedure before go-live: who generates the replacement, how the source system is updated, and how the old key is retired. Test the rotation in a non-production instance so the first real rotation is not also the first time the procedure runs.

Grant the provisioning account least privilege

The provisioning account should hold only the rights needed to manage users within its provisioning domain, not instance-wide administrator roles. Review which organization and project grants it inherits, and remove any role that lets it change login policies, identity providers or other administrators. Document the granted roles so a reviewer can compare them with what the sync actually needs.

Require TLS on the SCIM endpoint

SCIM requests carry personal data and bearer credentials, so the endpoint must only accept HTTPS from the provisioning source. Check the certificate chain the source trusts, the TLS version at your reverse proxy, and that HTTP is not redirected in a way that could expose credentials. Include the endpoint in certificate renewal monitoring so provisioning does not fail silently when a certificate expires.

Audit every provisioning event

Each create, update and deactivation made by the provisioning account should be traceable to that account and to the source record that caused it. Confirm that Zitadel's event history captures these changes, decide where events are retained, and forward them to the same log store your security team uses for other identity activity. Without this trail, a bad HR feed can be hard to distinguish from a deliberate change.

Zitadel SCIM docs

Test sessions after deactivation

Deactivating a user through SCIM does not automatically prove that existing sessions and issued tokens stop working for every application. Test a deactivated account against each client: active browser sessions, refresh tokens and any API access tokens that have not expired. Decide the maximum token lifetime you accept and confirm that the applications you rely on check session state when it matters.

Questions buyers ask about SCIM provisioning in Zitadel

What drives the cost of SCIM provisioning work in Zitadel?

The main cost drivers are the number of source systems sending users, how complex the attribute mapping is, and how much testing the rollout needs. A single HR system feeding one provisioning domain is a much smaller job than several HR systems or a partner IdP feeding multiple customer organizations, each with its own externalId values. Attribute mapping adds effort when HR fields must be translated into Zitadel user fields or stored as metadata. Ask any provider for a quote built from a written scope that lists each source system, each mapped attribute and each test case. Confirm which costs are one-time (design, build, testing) and which recur (ongoing support or retainers).

How long does a SCIM provisioning project take in Zitadel?

Duration depends on scope rather than on a fixed number of weeks. The timeline grows with the number of source systems, the number of provisioning domains, the depth of attribute mapping and the amount of joiner, mover and leaver testing needed before go-live. Dependencies on HR and IT owners for access, sample data and approvals often set the pace more than the Zitadel configuration does. Ask for a timeline tied to the written scope, with milestones for design sign-off, test environment validation and production cutover.

Can our internal team set up SCIM provisioning in Zitadel without a partner?

Yes, an experienced platform or identity team can configure SCIM in a self-hosted Zitadel instance, provided it has the skills to run Zitadel itself and to work with the source system's provisioning connector. The harder parts are usually design decisions: how externalId values are scoped by provisioning domain, which SCIM attributes map to native user fields and which go into metadata, and how deprovisioning is tested end to end. Teams that lack these skills, or lack time to test thoroughly, often bring in a partner for design review or the build. Use the SCIM guide to judge the design surface before deciding.

What do HR and IT owners need to provide for SCIM provisioning?

The HR system owner needs to confirm which employee records are authoritative, which fields are reliable, and which events (hire, role change, leave, termination) must trigger provisioning changes. The IT or identity owner must provide a Zitadel environment, service account access, the organization and provisioning domain structure, and decisions on how users are matched and deactivated. Security and compliance owners should approve the attribute list and the deprovisioning rules. Sample exports, a test population and a named approver for each mapping decision reduce rework.

What goes wrong when SCIM users are deprovisioned incorrectly?

The most common failure is an account that stays active after the person has left, or a deactivation that hits the wrong user because externalId values collided across source systems. Attributes without a direct Zitadel equivalent are stored in user metadata, so teams that skip mapping review can end up with sensitive data stored where it is not needed. Tests should cover joiner, mover and leaver cases, re-provisioning of a previously removed user, and what happens when the source system sends a partial update. Confirm the exact behavior with the Zitadel SCIM guide and in your own test environment before cutover.

How does attribute mapping affect the SCIM project scope?

Attribute mapping sets much of the scope. Each source attribute needs a decision: map it to a native Zitadel user field, store it as metadata, or leave it out. Attributes that have no direct equivalent in Zitadel are stored in user metadata, which means downstream applications and data owners must agree on how those values are read and governed. A short mapping specification, signed by the HR and identity owners, keeps the build predictable. Ask for the mapping specification to be part of the written scope so that changes are priced and scheduled openly.

What should we check before accepting a SCIM provisioning quote?

Check that the quote lists every source system, the provisioning domains and their externalId rules, the attribute mapping specification, the test cases for provisioning, updates and deprovisioning, and the handover material. Ask whether the fixed scope includes post-go-live support or a separate retainer, and what happens if the HR system changes its SCIM implementation. Confirm who performs the Zitadel configuration, who owns the service accounts and who signs off on acceptance tests. A quote without these items is not yet comparable to another one.

How a SCIM request reaches Zitadel

The flow starts at the upstream source, an HR system or another identity provider, which sends SCIM 2.0 create, update and deactivate requests to a TLS endpoint in front of Zitadel. The important hand-off is inside Zitadel: the request is authenticated with the service account that the source uses, the provisioning domain stored in that service account's metadata scopes the externalId values, and SCIM attributes without a direct equivalent are written to user metadata. Check that every change is recorded and that deactivation reaches the same user record the create request made.

Path of one SCIM request from the source system into Zitadel's user store and event store.

What to decide before the first sync

The first decision is the provisioning domain. Zitadel scopes externalId values by a provisioning domain set as service account metadata, so each HR system or upstream IdP needs its own domain name before the first sync runs. Pick names that identify the source and the environment, such as one domain per HR system per environment, and record them in your configuration repository. Changing a domain later means your existing externalId values no longer match what the sync expects, which can produce duplicate users or orphaned accounts. Confirm with your identity team how many sources will write to the same instance and whether any source already holds identifiers you must preserve.

Next, write the attribute map before anyone configures it. Map each HR field to a Zitadel user field such as name, email or username, and decide which remaining attributes are application data. Zitadel stores SCIM attributes that have no direct equivalent in user metadata, so an attribute like cost center or job family will land there unless you choose otherwise. Decide now which of those fields your applications will read, because reading them from metadata or tokens depends on later design. Keep the map short. Every field you sync is a field you must later justify to a privacy reviewer and keep accurate.

Assign one owner for deprovisioning and write down the rule. The HR system is usually the source of truth for leavers, but someone must decide whether a deactivation from SCIM should also end sessions, remove grants and trigger a review of owned data. Also decide how rehires and duplicates are handled: whether a returning employee keeps the same externalId and account, and who resolves a case where the same person arrives under two identifiers. Illustrative example: a contractor converted to an employee gets a new HR record, and without a rule you may end up with two active accounts holding the same email address. Agree these answers with HR and the application owners, and test them on a staging instance before production.

How DeployOpen scopes and delivers Zitadel SCIM provisioning

DeployOpen plans SCIM 2.0 user provisioning in Zitadel as a written scope covering the HR or upstream identity source, the provisioning domains, the attribute mapping and the deprovisioning rules. The work is built and tested in a Zitadel instance you run in your own infrastructure, then documented so your team can operate it.

How we scope

  • Map which HR system or upstream IdP sends users, and which Zitadel organizations and provisioning domains each source will populate.
  • Agree the attribute mapping, including which SCIM attributes become user fields and which are stored in user metadata.
  • Set out deprovisioning rules, service account ownership and the test cases that define done, in a written scope before work starts.

How we build

  • Configure the SCIM 2.0 service account, provisioning domain metadata and externalId scoping in a non-production Zitadel first.
  • Test create, update, deactivation and deprovisioning requests against the source system, including duplicate and conflicting externalId cases.
  • Document the mapping tables, credential handling and rollback steps so changes to the source system can be reviewed and reproduced.

How we hand over

  • Deliver the configuration as code or documented settings, with a runbook for adding a provisioning domain or changing a mapping.
  • Walk your identity, HR and platform teams through the sync logs, error handling and the checks they should run after each change.
  • Provide a list of open items, including any source-system behavior your team must confirm with its vendor before go-live.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, upgrades and continuous testing for Zitadel and its provisioning integrations are available as a retainer.
  • Retesting after Zitadel upgrades or source-system changes can be included in the retainer scope, so provisioning behavior is checked again.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.