Open WebUI SCIM user provisioning

Automate Open WebUI account and group lifecycle from Okta, Entra ID or Google Workspace with SCIM 2.0, and map groups to model and knowledge permissions in infrastructure you control.

On this page

What Open WebUI SCIM user provisioning does for a shared deployment

For a shared company deployment, SCIM 2.0 provisioning lets your identity provider create, update and deactivate Open WebUI accounts and groups as people join, move within the company and leave, instead of an administrator maintaining each account by hand. Open WebUI documents SCIM 2.0 user and group provisioning as a feature separate from single sign-on. SSO decides how a person proves who they are, through OIDC or LDAP. SCIM decides whether the account exists, what it is called and which groups it belongs to. A team needs SCIM when headcount changes often, several departments share the platform, or access reviews must trace back to one source of truth. Manual administration is usually acceptable for a small pilot with a handful of stable users.

The groups are the part that matters most for access. Open WebUI uses role-based access control with groups and per-resource permissions, so group membership sent from Okta, Entra ID or Google Workspace becomes the basis for who can use a given model or read a given knowledge base. Before go-live, confirm which user attributes update on each sync, how group names map to Open WebUI groups, and whether the identity provider or Open WebUI is the authority for group membership. Decide who owns group naming and who approves a new group. Test these behaviors in your own environment with the Open WebUI version you run, because field-level mapping details should be verified rather than assumed from the feature list.

Deprovisioning is the control auditors and security teams will question first. Without Redis, signing out of Open WebUI does not revoke tokens, which stay valid until they expire, by default after 4 weeks. Multi-replica deployments need Redis anyway, so confirm how session state is handled when an account is deactivated, and test it with a disposable account that you disable in the identity provider. Also plan for the delay between a change in the identity provider and the next sync, and decide what happens to chats, uploads and knowledge bases owned by a departed user. Those answers belong in the access procedure before the first leaver.

How Okta, Entra ID and Google Workspace fit the SCIM model

Okta usually acts as the identity provider that pushes users and groups to Open WebUI through a SCIM 2.0 integration configured on an Okta application. Sign-in and provisioning are separate settings in Okta, so a working login does not prove that account creation, group pushes and deprovisioning work. Confirm the exact setup against Okta's current SCIM documentation and the Open WebUI features page before enabling push in production.

  • Connector and endpoint: Confirm the SCIM base URL, authentication method and token format that Open WebUI expects, and store the token in a secrets manager.
  • Attribute mapping: Confirm which Okta profile attributes map to the email, name and username values Open WebUI uses to match accounts, and decide how an email change is handled.
  • Group push: Confirm which Okta groups are pushed, how membership changes propagate on each sync, and whether a group must already exist in Open WebUI before members can be assigned.
  • Deprovisioning: Test that unassigning a user in Okta deactivates the Open WebUI account, and plan for existing sessions, because tokens stay valid until they expire unless Redis is in place.

Check each mapping and push rule in a test tenant with a few accounts before you widen the assignment scope.

Provisioning configuration options and when each fits

This table compares the main decisions for an Open WebUI SCIM rollout: which groups the identity provider pushes, who owns group membership, how deactivation maps to account state, and whether SSO and SCIM go live together. Read each row against your team size and your audit expectations, and treat the right-hand columns as the starting point for a design review rather than a finished configuration.

DecisionSmall team fitLarge shared deployment fit
Which IdP groups are pushedPush only the few groups that gate chat access or a single shared modelPush a curated set of groups that map to model, knowledge and admin permissions; confirm the group count your IdP can filter on
Group membership owner: SCIM or Open WebUI adminsAdmins edit groups in Open WebUI; simple, but drift from the IdP is likely over timeSCIM owns membership so joiner, mover and leaver changes follow HR-driven access reviews in the IdP
Deactivation mapping to account stateDisabling in the IdP is enough if the team has one admin reviewing accountsConfirm in a test tenant whether a deactivated user is disabled, removed or left with sessions; verify that existing tokens stop working
Sign-in and SCIM configured togetherOne change window; lower coordination cost and fewer moving parts to testStage it: SSO first with a pilot group, then SCIM, so login problems and provisioning problems are separated during testing
Admin role assignmentKeep the first admin accounts manual so the instance is never locked outMap admin roles from IdP groups only after a documented break-glass admin exists outside SCIM
Retention of content after deprovisioningUsually a simple rule: archive chats and delete accounts on a fixed schedule set by the ownerAgree with legal and records owners how chats, uploads and knowledge bases owned by departed users are reassigned or kept
Session and token lifetime after leavingDefault expiry may be acceptable if the user base is small and access is low riskWithout Redis, tokens stay valid until expiry (4 weeks by default per the scaling guide); plan Redis before relying on deprovisioning

Mapping groups to model and knowledge permissions

The core decision in this section is which identity provider groups should map to which Open WebUI permissions, and that decision should be made before the first SCIM push reaches production. Open WebUI supports role-based access control with groups and per-resource permissions, so a provisioned group can be granted access to specific models and knowledge bases rather than to the whole platform. Start by listing the model and knowledge资源 that different teams genuinely need, then work backward to the smallest set of IdP groups that expresses those needs. For example, an illustrative design might give a legal team access to one knowledge base and one custom model, while engineering receives a coding model and a separate documentation collection. Write this matrix down with an owner for each row, because it becomes the reference when an access request arrives.

Watch for group sprawl. Directories often contain groups created for email distribution, ticketing, licensing or one-off projects, and a SCIM feed may push all of them into Open WebUI unless you filter at the IdP. Each extra group becomes a permission target that someone must review, and stale groups quietly keep access alive after a project ends. Ask the IdP team which group types are included in the provisioning scope, and confirm how the connector handles group membership changes and deletions. Nested groups need particular care: a user who is a member of a child group may or may not be flattened into the parent when the IdP sends membership, so test a nested case in a non-production tenant and confirm what Open WebUI actually receives before writing permissions against it.

Finally, verify the mapping with real accounts from each group, including a user who belongs to two groups with different grants and a user removed from a group mid-test. Confirm that access to a model or knowledge base changes when group membership changes, and that a user with no groups sees only what the default settings allow. Review the admin role separately, since administrative rights should not be granted through a broad IdP group without an approval step. Check the current permission model against the Open WebUI features documentation for your release, and record the results so the access matrix stays tied to evidence.

How to set up SCIM provisioning for Open WebUI

This sequence takes an Open WebUI instance from a deployment that can safely handle directory changes to a tested pipeline where users and groups created in the identity provider appear in Open WebUI, carry the right permissions, and lose access when removed. Each step ends with a check so the team knows it can move on.

  1. Confirm the deployment can run SCIM safely

    Before enabling any provisioning, the platform team confirms the deployment shape. A single replica on locally attached SSD or NVMe storage with SQLite can be acceptable for evaluation or a small team, but multi-replica deployments need PostgreSQL instead of SQLite, Redis as a shared state store, shared file storage reachable from every replica, and an external vector database because the default ChromaDB will crash in multi-process setups. Check: the team can name the database, Redis instance, shared storage and vector store for each replica, and has written that down in the deployment record. Ask the Open WebUI scaling documentation which settings apply to the version you run.

  2. Enable SCIM 2.0 in Open WebUI

    An administrator turns on SCIM 2.0 user and group provisioning in the Open WebUI admin settings or through the configuration the team manages with infrastructure-as-code. Confirm the exact setting names and the base URL for the SCIM endpoint in the version you run, because they change between releases. Check: the SCIM endpoint responds to an authenticated request from a tool such as curl, and an unauthenticated request is rejected. Record the endpoint URL and the date the change was made in the change log.

  3. Generate and store the provisioning credential

    Create the bearer credential that the identity provider will use to call the SCIM endpoint. Store it in the organization's secrets manager, not in a ticket, a shared document or a configuration file in source control, and limit who can read it. Set a named owner and a rotation procedure before the connector goes live. Check: the credential is visible only to the named owners, the vault entry records its owner, and a test call with the stored value succeeds while a call with a wrong value fails.

  4. Configure the identity provider connector

    In Okta, Microsoft Entra ID or Google Workspace, the identity administrator creates an application or connector that points to the Open WebUI SCIM base URL and supplies the stored credential. Map user attributes such as username, email, display name and active status, and decide which groups are pushed. Keep sign-in (OIDC or LDAP) configured separately, because SCIM manages accounts and groups while sign-in handles authentication. Check: the connector's test connection reports success, and the attribute mapping matches the list the team approved.

  5. Run a test user and group push

    Create one test user and one test group in the identity provider, assign the user to the group, and trigger a provisioning run. Use a pilot account that is not a real employee. Confirm that the user account and group appear in Open WebUI, and that the user's group membership matches the identity provider. Check: the test user and test group are visible in the Open WebUI admin panel with the expected names and membership, and the provisioning log in the identity provider shows no errors.

  6. Verify group-to-permission mapping

    Using the test group, confirm that the Open WebUI permissions tied to that group work as designed. Check which models the test user can see, which knowledge bases the user can read, and whether the user can write to shared resources. Repeat with a second test user who is outside the group to confirm that access is denied. Check: each permission test produces the expected result for both users, and the results are recorded in the test plan so that later changes can be retested against them.

  7. Test deprovisioning and token behavior

    Deactivate the test user in the identity provider and trigger a push. Confirm that the account in Open WebUI is disabled or removed according to the behavior your version documents, and that the user can no longer use the interface. Then test session behavior: without Redis, signing out does not revoke tokens, which remain valid until they expire, by default after 4 weeks. Confirm the expiry setting for your deployment and decide whether that window is acceptable. Check: the deactivated user cannot start a new session, and the team has a documented answer for how long an existing token stays valid.

  8. Document the runbook and schedule retesting

    Write down the endpoint, credential owner, attribute mapping, group list, expected permissions and deprovisioning test results. Include the steps for rotating the credential and for reviewing the connector after an Open WebUI or identity provider upgrade. Ask the security team to confirm the audit logging they need from both systems. Check: the runbook is stored where operations staff can find it, and each named owner has confirmed their part in writing.

How identity provider changes reach Open WebUI

The diagram starts at the identity provider, which sends SCIM 2.0 requests for users and groups to the SCIM endpoint inside the trust boundary. The endpoint writes accounts and group membership to PostgreSQL, where group permissions decide which models and knowledge bases each user can reach. Sign-in is a separate path: the user authenticates through OIDC or LDAP, and Open WebUI checks the account it already holds. Confirm that the SCIM endpoint is reachable only from the identity provider, that deprovisioned users lose access, and that sign-in and provisioning are configured separately.

SCIM changes flow into PostgreSQL and group permissions, separate from sign-in.

Security and operational risks of automated account lifecycle

Automated provisioning moves account creation, role changes and removal out of ticket queues and into an identity provider, which makes a few settings carry a lot of weight. The cards below cover the bearer credential that connects the two systems, the sessions that outlive a disabled account, group grants that expand quietly, the logs needed to explain changes, and the regressions that appear after upgrades.

SCIM bearer credential handling

The identity provider authenticates to Open WebUI's SCIM endpoint with a bearer credential, and whoever holds it can create users, change group membership and disable accounts. Store it in the provider's secret store or your secrets manager, restrict who can view it in the identity provider admin console, and set a rotation procedure before go-live. Test rotation in a non-production instance so a credential change does not stop provisioning for every user at once.

Open WebUI features

Deprovisioning and lingering sessions

A SCIM deactivation removes the account from the provider's side, but sessions in Open WebUI can remain usable. Without Redis, signing out does not revoke tokens, and they stay valid until they expire, by default after 4 weeks. Confirm with your own tests whether a deactivated user's existing token still works, and confirm how a Redis-backed deployment handles revocation before you rely on deprovisioning for offboarding.

Scaling Open WebUI docs

Over-broad group grants

Mapping an identity provider group to an Open WebUI group gives every member the model, knowledge and tool permissions attached to that group. A broad directory group such as all staff can expose restricted models or knowledge bases to people who should not see them. Review each mapping against the permissions it grants, keep provisioned groups small and named for their purpose, and check the effective access of a sample user after every mapping change.

Audit trail for provisioning events

When an account is created, moved between groups or removed, someone must be able to answer who changed it, from which system and when. Decide where the identity provider's provisioning logs and Open WebUI's own logs are kept, how long they are retained, and who can read them. Confirm which events each side records, because a deletion in the provider may leave no matching entry in Open WebUI, and build a reconciliation check into your operations runbook.

Upgrade regressions in the SCIM endpoint

The SCIM endpoint is an integration surface that can change between releases, and a regression may quietly stop group updates or deactivations while sign-in keeps working. Read the release notes for each version you plan to run, including the current v0.12.3 release, and keep a staging instance connected to a test identity provider tenant. Run a fixed set of create, update, group change and deactivate checks after every upgrade before promoting it.

Open WebUI releases

Questions teams ask before setting up Open WebUI SCIM provisioning

What does an Open WebUI SCIM provisioning project cost?

The cost has two separate parts: the provisioning work and the Open WebUI license terms. The work is priced from a written scope, covering your team's time in the IdP and Open WebUI, testing, and documentation, plus any partner fee. Licensing is a separate question. The Open WebUI License requires an enterprise license or written contributor permission to alter or remove branding in deployments that exceed 50 users in any rolling 30-day period. Enterprise pricing is not published, so ask Open WebUI enterprise sales for a quote using your expected seat count. Also ask your IdP vendor whether SCIM provisioning requires a particular plan tier, since that cost recurs with your IdP subscription.

What makes an Open WebUI SCIM setup take more effort?

Effort rises with the number of groups and how they map to model and knowledge permissions. Each group that grants access to a custom model, a knowledge base or a tool adds design and test work. Other drivers include the number of identity providers in use, the attribute mapping you need from the IdP, and the number of test cases for creation, update and deactivation. Deployment shape matters too. Open WebUI's scaling guide requires PostgreSQL for multi-instance deployments and Redis as a shared state store for multiple replicas, so an environment that is not yet on those components adds infrastructure work before provisioning can be tested properly.

How long does a typical SCIM setup take in your team's own steps?

No standard duration is published for this work, so the answer depends on your environment. The steps are: confirm the deployment and sign-in path, create the SCIM application in Okta, Entra ID or Google Workspace, define attribute and group mappings, connect the group model to Open WebUI permissions, test user creation, group membership changes and deactivation, verify how existing sessions end, and document the runbook. Each step can take longer when change control, approvals or a shared test tenant are involved. Ask any partner or internal lead to estimate each step against your written scope before committing to a date.

What does SCIM provisioning need from IdP and platform admins?

The IdP admin creates and configures the provisioning application for Okta, Entra ID or Google Workspace, sets the attribute mappings, and decides which groups are pushed. The platform admin enables SCIM 2.0 user and group provisioning in Open WebUI, sets up the group-to-permission model for models and knowledge, and confirms the endpoint address and credential the IdP will use. Both teams need network paths from the IdP to the Open WebUI endpoint, and the reverse proxy must pass the SCIM requests through. Agree on change ownership before testing, since a group change in the IdP can alter access to models and knowledge bases immediately.

Can an internal team set up Open WebUI SCIM provisioning alone?

An internal team can do it if it has IdP administration experience, working knowledge of Open WebUI's admin settings and permissions, and time to run structured tests. The risk areas are the group permission model, the behavior of deprovisioning, and any multi-replica changes that require Redis or shared storage. A team without experience in those areas should either build a test plan before changing production or bring in outside help for a fixed-scope review. DeployOpen plans, implements and documents self-hosted platforms in your own infrastructure, and its engagements start from a scope agreed in writing.

Does SSO have to be working before SCIM provisioning starts?

Not necessarily, but plan them together. Open WebUI documents SSO through OIDC and LDAP and SCIM 2.0 provisioning as separate features, so you can design and test them in an order that suits your project. Provisioned accounts still need a working sign-in path, so a SCIM test that creates a user is incomplete until that user can sign in. Confirm the supported sign-in method and the required order against the documentation for your Open WebUI version before you start, and test the full path from IdP assignment to first login.

What happens to a user's active sessions after SCIM deprovisioning?

It depends on your deployment. Open WebUI's scaling guide states that without Redis, signing out does not revoke tokens, which stay valid until they expire, by default after 4 weeks. For multiple replicas, Redis is required as a shared state store for sessions, so the answer changes with your architecture. Before go-live, disable a test user in the IdP, confirm the SCIM deactivation reaches Open WebUI, and check whether an existing session still works. Record the result and the expiry setting in your runbook so offboarding has a known end time.

How DeployOpen scopes and delivers SCIM provisioning

DeployOpen scopes SCIM provisioning as a fixed-scope engagement with a written scope agreed before work starts. The scope names the identity provider in use, whether that is Okta, Entra ID or Google Workspace, and records the Open WebUI version, the deployment method and the database and Redis arrangement the provisioning will run against. It also states which groups exist in the directory, which of them should map to Open WebUI groups, and which model, knowledge and tool permissions each group should carry. Because the scope is written, your team can check what is covered, what is excluded and what you must supply before any configuration begins. A quote follows from that written scope, and DeployOpen does not publish a price list.

The deliverables follow the build sequence. The group-to-permission design is agreed first, since it determines what the directory must send and what Open WebUI must do with it. Deployment prerequisites are confirmed next, including the SCIM 2.0 endpoint reachability, the secret handling for the provisioning token, and the separation of SCIM provisioning from the sign-in method your team has already chosen. Provisioning and deprovisioning are then tested with test accounts, covering creation, group changes, attribute updates and removal, and the tests check that a removed user loses access rather than only losing a group. Handover documentation records the configuration, the mapping tables, the test evidence and the steps your administrators will repeat for new groups.

Retainers are available for ongoing support and upgrades once the initial scope is complete. Ask for the scope to state who owns the directory-side configuration after handover, who reviews changes to group mappings, and how upgrades to Open WebUI releases will be retested against provisioning, since mapping behavior should be verified after each upgrade. Confirm with your identity team which directory roles will grant the access needed for the work. DeployOpen will not need, and you should not share, production passwords or long-lived credentials outside your own secret store.

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.