Open WebUI group and role mapping starts with your identity provider
Group and role mapping matters when a shared Open WebUI deployment should grant access by following the groups your identity provider already maintains, rather than by an administrator adding people by hand. The goal is that a person's Open WebUI admin status, group memberships and model access are decided by their existing directory record, so joiners, movers and leavers are handled where HR and IT already manage them. A team needs this as soon as more than a handful of people sign in, or as soon as two departments need different model access or different permission to share resources.
Open WebUI documents several building blocks for this. Single sign-on works through OIDC and LDAP, SCIM 2.0 provides user and group provisioning, and role-based access control covers groups and per-resource permissions. Together they determine where group data comes from and what it controls. Before you configure anything, decide which system is the source of truth for group membership, and whether group changes should arrive at sign-in (through token claims) or through provisioning that runs ahead of the user's first login. Those two paths behave differently when a user is removed from a group, so the choice belongs in your design review.
The exact claim names, environment variables and mapping settings are specific to each version, and they change between releases. Confirm every one of them against the Open WebUI features documentation for the version you have installed, and test with a non-production account that belongs to a known set of groups. Record which claim carries the group list, which values map to admin rights, and which group names must match exactly between your directory and Open WebUI. Those three records will drive the rest of the configuration.
How group claims reach Open WebUI at sign-in
Sign-in starts in the user's browser at the identity provider, which returns an OIDC token carrying group claims, or answers an LDAP lookup. Open WebUI, running in the client's own infrastructure, reads those claims at login and applies the admin role, group membership, blocked groups and default sharing. The trust boundary sits between the provider and the self-hosted instance. SCIM provisioning is a separate path that writes users and groups ahead of login, so check which path owns each group.
Login claims flow into Open WebUI, with SCIM as a separate provisioning path.
Which mapping option fits which permission
This table compares the permission decisions you make when mapping identity provider data into Open WebUI, and where each input comes from: a token claim, a directory lookup or a SCIM push. Read each row as one decision, then check its fit against how your directory is structured. Setting and claim names change between releases, so confirm each one in the current Open WebUI docs before you configure it.
| Permission decision | What it controls | Input source | When it fits |
|---|---|---|---|
| Admin role from a claim | Grants or removes administrator rights at sign-in, based on a value in the token. | Token claim (confirm claim name and admin mapping in current SSO docs) | A small, stable admin group that should follow IdP membership without manual edits. |
| User group membership | Places the user in Open WebUI groups, which drive model access and shared resources. | Groups claim in the token, or SCIM 2.0 push from the IdP | Departments or projects that need different model access and shared knowledge. |
| Group sync through SCIM | Creates, updates and removes users and group membership in Open WebUI without a sign-in. | SCIM 2.0 push from the identity provider (confirm your IdP connector supports groups) | Offboarding and group removals that must take effect without waiting for the user to sign in. |
| Blocking specific groups | Stops members of listed groups from signing in at all. | Groups claim checked at login against a deny list (confirm setting name) | Contractor or retired groups that remain in the directory and must not reach the instance. |
| Creating groups at login | Creates an Open WebUI group when a claim names a group that does not exist yet. | Groups claim on first matching sign-in (confirm the create-at-login setting) | Teams whose groups change often, provided you restrict which claim values may create groups. |
| Default sharing for new groups | Sets the access that groups created at login receive to models and resources by default. | Admin configuration in Open WebUI | Only when a broad default is intended, since new groups may otherwise expose resources to every member. |
| Access removal timing | Sets when a removed membership or blocked group stops working for an existing session. | Next sign-in, SCIM update or token expiry | Without Redis, tokens stay valid until expiry, by default 4 weeks per the scaling guide. Plan revocation around this. |
Choosing a sync method by identity provider and directory
With OIDC, group membership arrives as a claim inside the token issued when the user signs in. Open WebUI reads that claim during login and applies the mapped groups and roles, so the data is only as current as the user's last sign-in. The identity provider must include the groups claim in the tokens it issues to the Open WebUI client, under a claim name you set and document.
- Group data: A list of group names or IDs in one claim, often named
groups, which Open WebUI maps to its own groups and admin roles. - Update timing: At each sign-in. A change made in the identity provider reaches Open WebUI on the user's next login, not at the moment the change is saved.
- IdP configuration: Add a group membership mapper to the client's tokens, then sign in as a test user and confirm the claim appears in the ID token or user info response.
- Identifier format: Some providers send opaque IDs instead of readable names. Decide which form Open WebUI receives and record the mapping so administrators can read it.
- Session effects: Without Redis, signing out does not revoke tokens, which stay valid until they expire, by default after 4 weeks. A removed group can keep its access until the token ends, so confirm this is acceptable before go-live. See the Open WebUI features documentation for the SSO settings.
Before rollout, check that a test user's token carries the expected claim and that the resulting groups and role match the intended mapping. Provider-specific steps are in the Keycloak, Microsoft Entra ID and Okta topics.
A directory does not issue a token to the application. Open WebUI authenticates the user against LDAP or Active Directory directly, and group membership comes from the directory entry or from a group search that runs for that user. Changes are seen when the user next authenticates, and the directory schema and search settings decide which groups Open WebUI can see at all.
- Group data: The group objects the directory returns for the user, typically found through a group search filter built from the user's distinguished name.
- Update timing: Confirm in your test environment whether membership refreshes on each login. Do not assume a background sync runs unless you have verified it.
- Directory configuration: A service bind account with read access to the user and group containers, plus membership attributes that match the search filter. Nested group handling depends on how the directory exposes membership.
- Transport: Use LDAPS with certificate validation so bind credentials and group lookups are not exposed on the network. The LDAP and Active Directory topic covers the certificate steps.
- Disabled accounts: Confirm that a user disabled in the directory fails to sign in, and that no local Open WebUI account remains usable after the directory change.
Test two cases before go-live: a user removed from a mapped group and a user disabled in the directory. Sign in as each and confirm the outcome matches your access policy. Setup detail for OpenLDAP and Active Directory is in the LDAP and Active Directory topic.
SCIM 2.0 is a push model. The identity provider sends create, update and deactivate requests for users and groups to Open WebUI, so lifecycle changes do not wait for the user to sign in. Open WebUI documents SCIM 2.0 user and group provisioning, which makes this the option where joiner, mover and leaver changes must take effect on a schedule the security team can explain.
- Group data: User records and group objects, including membership, created or updated by the provider's requests.
- Update timing: On each change the provider sends. The delay depends on the provider's provisioning cycle, so confirm that cadence in the provider's documentation.
- IdP configuration: Point the provider at the Open WebUI SCIM endpoint with a bearer credential you can rotate, then assign only the groups you want provisioned. Groups that are not assigned are not sent.
- Ownership split: Decide whether SCIM or sign-in claims set group membership, so the two sources do not overwrite each other. Record which source is authoritative for each group.
- Deprovisioning test: Remove a test user from an assigned group or deactivate the account, then confirm the change in Open WebUI. Check whether existing sessions end, given the token lifetime and Redis behavior.
After the first test change, compare the provider's provisioning log with the user and group records in Open WebUI. Confirm the endpoint and credential details in the Open WebUI features documentation before you configure the provider.
Setting up group and role mapping in order
This sequence moves IdP group and role mapping from a design on paper to a tested configuration in Open WebUI. Each step produces a record or check that the next step depends on, so admin access, user groups and blocked status can be verified before users depend on them.
Inventory identity provider groups and assign roles
The identity team and the Open WebUI owner export the groups that could grant access, then sort each one into three outcomes: Open WebUI admin, a standard user group, or blocked. Record the group's exact name, its unique identifier if the provider uses one, and its owner. Remove stale or overlapping groups now, because every group you map becomes a rule someone must maintain. The step is done when every group in scope has one outcome and a named owner in a draft table.
Add the group claim to the identity provider
The identity provider administrator configures the application so the sign-in token includes a groups claim, limited to the groups from the draft table. Confirm the claim name, whether the provider returns group names or identifiers, and how it handles users with many groups. Request a test sign-in for a single account and decode the token in a controlled environment. The step is done when the test token shows the expected groups and no unrelated ones.
Configure the claim and mapping settings in Open WebUI
The Open WebUI administrator enters the claim name and the mapping rules that match the draft table, using the settings documented for the identity provider you chose. Confirm where the environment variables and persistent configuration live, because a value set in one place can override the other. Keep the settings change in a change record with the date and the person who made it. The step is done when the saved settings match the table line for line and a restart or reload picks them up.
Test with three accounts
Sign in with one admin account, one standard user and one account in the blocked group, using accounts that exist only for testing. Check that the admin reaches the admin panel, the standard user does not, and the blocked account is refused at sign-in or immediately after it. Note any group that Open WebUI creates at login and whether it matches the name in your table. The step is done when all three outcomes match the design and the results are saved with screenshots or logs.
Confirm group membership and default sharing
Verify that the standard user appears in the expected Open WebUI groups and that membership changes when the identity provider group changes. Check the default sharing setting for groups created at login, then have the test user create a resource and confirm who else can see it. Confirm that removing a user from a group in the identity provider removes the access at the next sign-in, and document how long that takes in your environment. The step is done when membership and sharing behave as designed in both directions.
Record the mapping table as a versioned document
Store the final table in version control or a controlled document repository, with each row showing the identity provider group, the Open WebUI outcome, the owner, the test result and the date. Require a review and a new version for every future change, and link each version to the matching configuration change. Ask the identity provider and Open WebUI owners to confirm they will review the table at a set interval. The step is done when the table has a version number, an approver and a record of the three test results.
Blocking groups and setting default sharing for groups created at login
Blocking a group is a separate decision from granting one, and it is worth making deliberately for contractors, people who have left the organization but still hold directory accounts, and groups that should never reach an AI interface at all. A block decision in Open WebUI sits alongside the controls you already run at the identity provider. If your IdP still issues a token to a disabled or out-of-scope group, Open WebUI's block is the last check before a user gets in, so the two layers need to agree. Before you rely on it, map each blocked group to the IdP application assignment that should have excluded it, and confirm the behavior in a test sign-in with a member of that group. Also decide what happens to existing sessions when a block is added: check in your version whether a blocked user keeps an active session until the token expires, and plan a session revocation step if that window matters to you.
Default sharing for groups created at login decides what a newly created group can see and do with knowledge, models and other resources the moment it appears. Sharing defaults govern whether new groups inherit access to content owners have already shared, and whether resources created by members are visible to the whole group by default. A broad default can quietly expose internal knowledge bases, prompts or model access to a group that was never meant to see them, especially when group names arrive automatically from IdP claims that a directory administrator may create or rename. Before enabling automatic group creation, list the resources that matter most, confirm who owns them, and test with a throwaway group that has no membership history. Also confirm in the documentation for your version how groups created automatically at login are populated, whether they receive any default permissions, and whether an administrator is notified. Record the answers as part of your change review, because these behaviors have changed between releases.
Security risks in claim-driven permissions
Group and role claims decide who can administer Open WebUI and what data each user can reach, so a small mapping mistake has wide effects. The cards below pair each common failure with the control that catches it before users are affected.
Broad groups granting admin rights
A group named for a team, such as ai-users or platform, can carry more meaning in the IdP than its name suggests. If an admin role is mapped from a broad group, every member of that group becomes an Open WebUI administrator. Before enabling the mapping, list the exact membership of each admin group and confirm that only people who run the platform are in it. Use a narrow, purpose-named admin group that the platform team owns.
Group names that change silently
Mappings usually match on the group name string in the claim. If someone renames a group in the IdP, or the claim switches from names to IDs, users can drop out of a group or land in one they should not hold, with no error shown. Agree a naming standard for mapped groups, document each mapping with its IdP object ID, and re-test sign-in after any rename in the directory.
Unexpected sharing from auto-created groups
When groups are created at login, a new group can appear with default sharing settings that expose existing resources to users who were never meant to see them. Check what sharing defaults apply to automatically created groups, and decide whether those groups should share anything at all. Review the group list after a test login with an account from each department to confirm that no unexpected group appeared.
Admin access tied to one claim
If a single claim is the only path to administrator rights, one IdP change or a misconfigured claim can grant or remove admin access across the whole platform. Keep a named list of administrators outside the claim, and review who holds admin rights on a fixed schedule. Confirm with your IdP team how the claim is populated and who can change it.
Secrets mishandled during mapping tests
Testing a mapping often means decoding tokens, copying client secrets into config files or sharing screenshots of claim payloads. Those artifacts can carry group memberships, personal data or credentials that outlive the test. Use dedicated test accounts with no production data, keep client secrets in your secrets manager, and delete captured token samples after each test run.
Permission changes missing from audit trails
If an admin changes a role or group inside Open WebUI while the IdP is the intended source of truth, the change may not match what the directory shows. The next sign-in can then overwrite it, or the change can persist with no matching record in the IdP. Keep a change record for every mapping edit that names the requester, the approver and the IdP group affected, and compare Open WebUI group membership against the IdP on a schedule.
When a role change takes effect in Open WebUI
A permission change made at the identity provider does not always apply to a user who is already signed in to Open WebUI. Removing someone from an admin group, or from a group you have decided to block, takes effect only when Open WebUI next reads the user's claims and state, and the existing session may keep its old rights until then. Treat the time between the IdP change and the change inside Open WebUI as an exposure window and decide how long your organization can tolerate it, especially for admin rights.
The scaling guide states that without Redis, signing out of Open WebUI does not revoke tokens. They stay valid until they expire, and by default that is 4 weeks. A user who signs out is therefore not a reliable way to cut off access after a role change. For a multi-replica deployment, the guide requires Redis as a shared store for sessions, websocket connections and application state, so every replica sees the same session state. Confirm with the scaling documentation for your version whether Redis-backed session handling is the mechanism that lets a revocation or sign-out reach all replicas, and confirm the default token lifetime in your own configuration.
Test the propagation path in your own environment before you rely on it. Pick a test user, move them out of an admin group in the IdP, and record how long it takes for the Open WebUI role to change for an existing browser session, a new sign-in and an API key session. Repeat the test after a sign-out, with and without Redis, and across replicas if you run more than one. Write the observed times into your access runbook so that offboarding and emergency block procedures use measured behavior, and ask your IdP integration partner or the Open WebUI project to confirm the refresh behavior for the version you deploy.
Limits to confirm before you rely on group mapping
Group mapping looks simple until a claim is missing, a group is renamed or two sources disagree about who belongs where. The items below are the questions to settle against the exact Open WebUI version and identity provider you plan to run, before roles and group membership are trusted for access decisions.
Claim formats the installed version reads
Confirm which group claim shapes your installed Open WebUI version accepts, such as a flat array of strings, a comma-separated value or a nested object, and which claim name it reads by default. Check the group claim configuration in the Open WebUI admin settings and the release notes for the version you run, since claim handling has changed between releases. Then decode a real token from a test user and compare the claim shape with what the settings expect. Do not assume the claim arrives as you configured it in the IdP.
Open WebUI featuresNested IdP groups flattening
Find out whether a group nested inside another IdP group appears in the token as its own entry or only as the parent. Many directories return only direct memberships, so a user who inherits access through a nested group may not receive it in Open WebUI. Test this with a nested group in your IdP and a test account, then confirm the group list Open WebUI shows after sign-in. Decide early whether access should be granted through flat groups only.
Group renames and identifiers
Confirm whether Open WebUI matches groups by display name or by a stable identifier. If it matches by name, renaming a group in the IdP can detach members from their existing Open WebUI groups or permissions, and a reused name can grant access that was never intended. Check how the mapping behaves after a rename in a test tenant, and record a rename procedure for your admins before the first production change.
SCIM and claim mapping conflicts
If SCIM 2.0 provisioning and claim-based mapping both write group membership, decide which one is authoritative. A group removed in the IdP may still exist in Open WebUI after login if the claim sync does not remove it, or a SCIM update may be overwritten at the next sign-in. Check how each method adds and removes memberships, then run a test where a user is removed from a group in the IdP and confirm what Open WebUI shows afterward.
License and Enterprise terms for admin features
Confirm which administration features your deployment depends on are available under the license you hold. The Open WebUI License includes a branding clause that applies to deployments above 50 users in any rolling 30-day period unless an enterprise license or written contributor permission applies. Check whether any SCIM, group or branding feature you plan to use is covered by the free software or only by an Enterprise License, and ask Open WebUI enterprise sales to confirm in writing before you design around it.
Open WebUI LicenseToken size and group count
Find out whether your identity provider limits how many groups it places in an access or ID token, and what it does when the limit is reached. Some providers omit the groups claim or replace it with an overage indicator, so users in many groups can lose mappings without an error. Ask the IdP team for the group limit and the overflow behavior, then test with a user in the largest group set you expect. Where the limit applies, plan for filtering groups to those Open WebUI uses.
Questions teams ask before mapping groups to Open WebUI
How long does a group and role mapping project take?
The duration depends mostly on how many groups and claims the identity provider sends, how tangled the existing group structure is, and how many environments must be tested before production. A single IdP with a short, clean list of groups is a much smaller job than a directory with nested groups, several claim sources and a long list of groups that were never reviewed. No published duration applies to every setup, so ask any partner for a timeline in the written scope that lists the groups, environments and test cases included. Fixed-scope work is agreed in writing before it starts, which makes the timeline easier to hold to.
Can our own team map IdP groups to Open WebUI without outside help?
Yes, if you have an administrator who can change the identity provider's claims and an operator who can change the Open WebUI configuration and test sign-ins. The work is configuration and verification rather than custom code. Teams without a clear owner for each side, or without a test plan for admin and non-admin paths, tend to find the gaps in production. An outside partner is most useful for reviewing the group design before it is built, for testing blocked groups and default sharing, and for documenting the result so the next change is easier.
What does the identity provider administrator need to provide?
The IdP administrator needs to confirm which groups or roles will be sent as claims, the claim name and format, and whether group names or identifiers are used. They also need to confirm who can change group membership and how removals are handled. Ask for a test user in each relevant group so sign-ins can be checked. The Open WebUI operator needs the matching claim settings, a plan for admin rights, a list of groups to block and the default sharing behavior for groups created at login. Both sides should agree on the change process before go-live.
Is SCIM required to map groups to Open WebUI roles?
No. Open WebUI documents SCIM 2.0 user and group provisioning as a separate capability from SSO, and group membership can also be driven from claims during sign-in. The choice affects when changes arrive. With claims, group membership is refreshed when the user signs in. With SCIM, the provider pushes users and groups ahead of sign-in, which matters for offboarding and for groups that need to exist before anyone logs in. Confirm with your identity provider and the Open WebUI version you run which provisioning path you intend to use, and test it.
What changes after a group is renamed in the identity provider?
A rename can break the mapping if Open WebUI matches on the group name rather than a stable identifier. Users may lose access they should keep, or gain access through a group that now means something different. Before you rename anything, confirm which value the claim carries and how Open WebUI stores the link. Plan the rename as a change with a test sign-in for affected users, and review admin and blocked-group lists afterward. Treat stable identifiers as the safer default for long-lived mappings.
How do we test the mapping safely before production?
Use a non-production Open WebUI instance connected to a test realm or tenant with test users in each group. Check the cases that matter most: an admin sign-in, a standard user, a user in a blocked group, a user in no mapped group, and a user who moves between groups. Confirm that groups created at login get the default sharing you intended, and that removing a group from a user takes effect as expected. Keep the test results in writing so they can be repeated after each upgrade or IdP change.
What recurring work follows a mapping project?
The recurring work is reviewing groups as the directory changes, approving new admin mappings, checking blocked-group lists, and retesting sign-ins after Open WebUI upgrades or identity provider changes. Upgrade notes should be read before each change, since mapping behavior can shift between releases. If you buy ongoing support, ask whether it includes periodic access reviews, upgrade testing and documentation updates. Those tasks are where a mapping quietly drifts if nobody owns them.
What should a written quote for this work include?
Ask for a quote that lists the identity provider and its version, the Open WebUI version and deployment method, the number of groups and claim sources in scope, the environments to be built and tested, and the test cases to be run. It should name what the operator and the IdP administrator must provide, what is delivered as documentation, and what is excluded, such as custom code or changes to the directory itself. Ask whether any retesting after go-live is included, and how changes requested later are priced. Compare quotes on that scope, not on headline effort alone.
How DeployOpen scopes and delivers group and role mapping
DeployOpen treats IdP group and role mapping as a access design exercise before it is a configuration task. We agree the mapping rules in writing, build them into your Open WebUI deployment inside your own infrastructure, and hand over the configuration and the checks that show it works.
How we scope
- Engagements are fixed-scope, with the group mapping rules, deliverables and timeline agreed in writing before work starts.
- We inventory the identity provider claims, group names and admin populations that the mapping must read and drive.
- We confirm which groups are blocked, which are created at login and what default sharing each of those groups should have.
How we build
- We configure the group claim and role claim handling in your Open WebUI SSO settings, then test each mapping rule with sample accounts.
- We verify that admin roles, user roles and group membership update correctly at sign-in for users who change groups.
- We confirm blocked groups are denied access and that default sharing for new login-created groups matches the agreed design.
How we hand over
- You receive a written map from each identity provider group or claim value to its Open WebUI role, group or block setting.
- We document the test accounts, expected results and steps your team can repeat after future identity provider changes.
- Handover covers the configuration files or settings, the owners of each group and the change steps for adding a new group.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so mapping rules can be revisited as your directory changes.
- When Open WebUI releases change how claims or groups are handled, we can review the mapping and test it before you upgrade.
- Confirm with us during scoping which identity provider and Open WebUI version your team runs, since both shape the mapping steps.

