Open WebUI SSO with Microsoft Entra ID

Connect Open WebUI to one Entra tenant through its generic OIDC support, map security groups to readable names, restrict sign-in to your email domain and verify each step before users arrive.

On this page

How Open WebUI signs in Microsoft Entra ID users

If your team runs self-hosted Open WebUI and must sign people in with their Entra accounts, the connection is built on the OIDC method. Open WebUI documents single sign-on through OIDC and LDAP, and for Entra the practical path is an app registration in one Microsoft tenant that Open WebUI uses as its OpenID Connect provider. Before you build it, confirm the exact setting names, redirect path and environment variables in the Open WebUI documentation for the version you run, since those details change between releases. The Open WebUI features documentation is the starting point for the SSO options your version exposes.

The integration covers three things: sign-in through the Entra tenant, optional group sync so that Entra security groups arrive in Open WebUI as readable names rather than object IDs, and restricting sign-in to your own email domain so that accounts from outside your organization cannot register. Each of these depends on what Entra sends in the token. Group names only appear if the app registration is configured to emit group claims, and whether your version maps them as readable names must be verified in a test tenant. Domain restriction is a setting you must confirm against the current documentation, not assume from the sign-in flow alone.

This integration does not cover SCIM provisioning, which creates and deprovisions users and groups ahead of sign-in, and it does not enforce multi-factor authentication. Those are separate decisions. If you need Entra to remove access when someone leaves, plan SCIM or an equivalent process and test it. If you need MFA for every user, decide whether Entra Conditional Access or Open WebUI's own authenticator-app MFA carries that requirement, because the two are configured in different places. Ask whoever owns your tenant to confirm which of these controls already exist before the Open WebUI build starts.

What you need in place before configuring Entra sign-in

Five items must be settled before anyone touches the Entra admin center or Open WebUI settings. Each one has an owner and a check that confirms it is ready. Getting these right first prevents most redirect, consent and group-mapping failures later in the sign-in setup.

Stable public HTTPS address

Open WebUI needs one fixed public HTTPS URL, and the Entra redirect URI is built from it, so the address cannot change after registration without updating the app registration too. Your platform or network team owns the DNS record and reverse proxy. Confirm that the URL loads over a trusted certificate from outside your network and that the host name you register matches exactly what users type into the browser.

Pinned Open WebUI version

Pin one release in your deployment manifest rather than tracking latest. The most recent supplied release is v0.12.3, published on October 16, 2026. Your platform team should confirm that the release notes and the Open WebUI SSO documentation for that version describe the Microsoft OAuth settings you plan to use, then record the version in your change log before the first configuration.

Open WebUI releases

Entra tenant rights

The person registering the application needs rights to create app registrations and, for group claims, a directory role or delegated permission to consent to the Microsoft Graph permissions the sign-in flow requests. Ask your Entra administrator to confirm, in the tenant, that the account can register the app and grant admin consent. Without consent, users see a blocking prompt on first sign-in.

Named owner for groups

Someone must own the security group structure that Open WebUI will read as roles and groups. Decide who creates groups, who approves membership and how group names will read in Open WebUI. Ask the owner to confirm the group list and naming convention in writing. Ungoverned groups are the most common cause of users receiving access they should not have after sign-in.

Trusted certificate chain

Open WebUI's server must trust the full certificate chain of the identity endpoints it calls, including the Microsoft login and token endpoints. If your organization inspects outbound TLS or uses a private certificate authority, the root must be installed in the container or host trust store. Your security team should confirm the chain with a test call from the Open WebUI host, since a failed token exchange often shows up only as a generic sign-in error.

Configure Entra sign-in in Open WebUI step by step

This sequence takes one Entra tenant from an app registration to a verified sign-in, with the public URL, secret handling, OIDC settings and domain restriction checked in order. Each step ends with a check so the team knows whether to continue or go back.

  1. Confirm the public Open WebUI URL

    Before touching Entra, decide the exact public address users will open, including scheme, host and port, and set it as the WebUI URL in your deployment. The redirect URI Entra accepts must match this address character for character, so a mismatch here causes most later failures. Check it by loading the URL from a browser outside your internal network path and confirming the login page is served from that exact hostname over HTTPS. Note that environment variables and persistent configuration can override each other, so confirm which value the running instance actually uses, not only the one in your compose file or Helm values.

  2. Register the application in the Entra tenant

    In the Microsoft Entra admin center, an administrator creates an app registration for Open WebUI in the single tenant you want to use, and adds a web redirect URI built from the confirmed public URL with the OIDC callback path that the Open WebUI OAuth documentation specifies. Record the application (client) ID, the directory (tenant) ID and the redirect URI in your change record. Check it by confirming the registration lists the exact redirect URI and that the platform type is web, not single-page or public client.

  3. Create and store the client secret

    Create a client secret in the app registration and record its value once, because Entra will not show it again. Store it in your secrets manager or an environment source your platform team controls, not in a values file committed to version control or a plain persistent config entry. Set a calendar reminder for the expiry Entra displays, since an expired secret stops sign-in without warning. Check it by confirming the secret is referenced by name in your deployment and that no copy of the value appears in your repository or chat history.

  4. Set the OIDC settings in Open WebUI

    Set the OIDC provider values in Open WebUI: the client ID, the client secret, and the discovery URL for your tenant's OpenID configuration, along with the scopes you need, including the openid, email and profile scopes. Take these values from the Entra app registration and the tenant's well-known configuration endpoint, not from examples. Restart or redeploy the instance, then check the login page to confirm a Microsoft sign-in button appears. If it does not, check whether a persisted admin setting is overriding the environment variable you just changed.

  5. Enable the email domain restriction

    Turn on the setting that limits OAuth sign-ups and sign-ins to your permitted email domain, entering your organization's domain exactly as it appears in user email addresses. Confirm the setting persisted by reviewing it in the admin settings after the restart, and check whether an environment variable for the same setting exists, since it may override the value you entered in the interface. Check it by attempting sign-in with a test account from an outside domain, if you have one, and confirming access is refused.

  6. Sign in with a test account

    Sign in with a dedicated test account from your tenant, starting from a fresh browser session, and complete the Microsoft authentication flow including any conditional access prompts your tenant enforces. Confirm the user lands in Open WebUI and that the session is tied to the Entra identity rather than a local account created earlier. Check it by confirming the new account appears in the user list with the email address from Entra. Make sure this test runs against the public URL, not a port-forwarded or internal address.

  7. Confirm the account receives the expected role

    Compare the role the test account received with the role your access design expects, which for a default configuration is typically a standard user unless your administrators set otherwise. Check the user's role and group membership in the admin panel and confirm that no unintended administrator access was granted. If you plan to map Entra groups to roles later, record this baseline first so later changes can be compared against it. Verify by signing in with a second test account if available and confirming its role matches your expectation.

How a user's sign-in travels from Open WebUI to Entra and back

The sign-in starts in the browser, which Open WebUI redirects to the Entra authorization endpoint. Entra authenticates the user and returns the browser to the Open WebUI callback URL with an authorization code. Open WebUI then checks the token and claims, including the group claim and the email domain, before it creates a session in its own database or Redis store. Check that the callback URL matches the registered redirect URI exactly and that the domain check runs before any session is issued.

Sign-in flow between the browser, Open WebUI, Entra ID and the session store.

Why Entra group sync shows GUIDs and how to get readable names

Entra ID normally puts group object IDs, not display names, into the token claims it sends to an application. That is why Open WebUI can show a group as a long GUID after sign-in even though the group is named clearly in the Entra admin center. The fix is a design decision, not a single setting, so the team should settle it before mapping any groups. The token contents, not Open WebUI, determine whether readable names are possible. Open WebUI can only map what arrives in the token, so the team needs to know exactly which group identifiers Entra will emit for its tenant and app registration.

There are three realistic options to evaluate. The first is to configure the app registration's token so it emits group names or a name-based claim instead of object IDs, if the tenant supports that for the group types in use. The second is to keep GUIDs in the token and map each object ID to a readable name inside Open WebUI's group handling, which keeps Entra as the source of truth but adds a maintenance step whenever a group is renamed or created. The third is to use Entra app roles, which avoids group claims for access decisions but moves assignment work into app role management. Which of these is available depends on the tenant's Entra licensing and on the group type (for example, security groups versus Microsoft 365 groups), so the team should check both before committing.

Entra also limits how many groups it places in a token. When a user belongs to many groups, Entra may omit the group claim and send a link or overage indicator instead, and some assignment methods behave differently from direct membership. Open WebUI will then see fewer groups than the user actually holds, which can look like a sync bug. Before choosing an option, the team should confirm current Entra token claim behavior, group overage handling and licensing requirements against Microsoft's own documentation, and test with a user who belongs to a large number of groups.

Which Entra claims map to which Open WebUI fields

This table pairs each Microsoft Entra source with the Open WebUI field or behavior it drives and the check that confirms it. Rows marked for confirmation depend on the claim name in your tenant and the Open WebUI version you run, so verify those with a test sign-in before you enforce domain or group rules.

Entra sourceOpen WebUI field or behaviorCheck to confirm
User principal nameSign-in identifier in Entra. Not used for the domain restriction, so it can differ from the mailbox address.Compare the UPN and email for three test users. Note any mismatch before rollout.
Email claim (confirm claim name)Account email in Open WebUI. Also the value checked against the allowed email domain list.Confirm which claim carries the address in your tenant and version. Sign in with a non-allowed domain and expect refusal.
Display name (name claim)Display name shown in the Open WebUI user list and chat history.Sign in as a test user and confirm the name appears correctly in the admin user list.
Object ID (oid)Stable directory identifier. Useful for support lookups. Open WebUI matches accounts by email, not by this value.Record the object ID of a test user and confirm it matches the Entra user in the portal.
Group membership claim (confirm claim name and format)Source for group sync. Entra may send group object IDs instead of names, so Open WebUI may show GUIDs.Sign in as a user in a test group and confirm the group arrives in readable form in Open WebUI.
App role claim (confirm claim name)Alternative source for admin or role assignment when groups are not used for that purpose.Assign a test app role, sign in, and confirm the expected Open WebUI role is applied.
Group overage in tokenWhen a user belongs to many groups, Entra may omit the group list, and Open WebUI then sees no groups.Test with a user in many groups and check whether group membership still syncs.
Admin assignment sourceDetermines which signed-in users receive Open WebUI administrator rights. Mistakes here grant broad access.Confirm only the intended group or role produces admin rights, using a non-admin test account.

Security settings to decide before production use

These six decisions determine how well Open WebUI SSO with Microsoft Entra ID holds up after launch. Several of them sit in Entra, not in Open WebUI, so the Entra team and the Open WebUI operators need to agree on ownership before users sign in. Review the Open WebUI side of admin and API access separately, because those settings are not covered by Entra policy.

Keep the client secret out of source control

The Entra app registration issues a client secret that Open WebUI uses to complete the OAuth code exchange. Store it in a secrets manager or an orchestrator secret, not in a Compose file, Helm values file or Git repository. Check that container logs and environment dumps do not print it, and confirm who can read the secret store.

Restrict the redirect URI to production

The redirect URI registered in Entra must match the production Open WebUI URL exactly, including scheme, host and path. Avoid wildcards and leftover test hostnames, since a loose redirect list lets another application receive the authorization response. Remove test URIs when the pilot ends and confirm the list with the Entra administrator.

Limit tenant and user sign-in

Decide whether the app registration is single-tenant or multi-tenant and whether user assignment is required before sign-in. Enabling assignment in Entra means only listed users or groups can obtain a token for Open WebUI. Pair this with the email domain restriction in Open WebUI so that a valid Entra account from another domain cannot create an account.

Assign admin rights through a controlled group

Choose one Entra security group whose members become Open WebUI administrators, and name its owners in writing. Anyone who can add members to that group can take control of the Open WebUI instance, so restrict group ownership, use access reviews and alert on changes. Check that the group claim is limited to groups Open WebUI needs.

Enforce MFA with Conditional Access

Require multifactor authentication for the Open WebUI enterprise application through a Conditional Access policy in Entra, so the control applies to every sign-in regardless of Open WebUI settings. Confirm which policies already cover the tenant, whether exemptions exist for service accounts, and how sign-in logs will show MFA results during an audit.

Plan rotation and offboarding

Set a schedule for rotating the client secret before it expires, and record the expiry date in your change calendar. Define the offboarding path so that disabling a user in Entra blocks new sign-ins and existing Open WebUI sessions are ended on a known timeline. Test both steps before production, because token lifetime in Open WebUI determines how long a removed user can keep access.

What session revocation and replicas change for Entra sign-in

Removing a user in Entra ID does not immediately end their Open WebUI access. Without Redis, signing out of Open WebUI does not revoke tokens, so they stay valid until they expire, which by default is 4 weeks according to the scaling documentation. A former employee who is disabled or removed from the assigned group in Entra may keep working in Open WebUI for that full window. Confirm the token lifetime your installation actually uses, and treat the gap as a live risk until a documented offboarding process closes it. Closing it is a process and configuration task. Back-channel logout, which ends sessions when a user signs out at the identity provider, is covered separately in its own topic.

A single replica with SQLite is only reasonable when the database file sits on locally attached SSD or NVMe storage, not network storage, and the user base is small enough that one instance is an accepted risk for your team. Evaluation environments and small teams can fit this pattern. Once you run multiple replicas or workers, the scaling guidance requires PostgreSQL instead of SQLite, because SQLite does not handle concurrent writes from multiple processes well. Multiple replicas also need Redis for shared sessions, websocket connections and application state, plus shared file storage so uploads and knowledge stay reachable from every replica.

Replica count changes the revocation picture as well, because Redis is what allows sign-out to take effect across instances. Decide the replica model before you configure Entra sign-in, since moving from SQLite to PostgreSQL and adding Redis later means revisiting the OAuth settings and session behavior you tested. Ask your platform team to confirm where the database, Redis and file store will run, how each is backed up, and who owns the offboarding runbook that covers the revocation window.

Common Entra sign-in failures and how to fix them

This table pairs common Entra sign-in symptoms with their likely causes and the checks that confirm each one. Read it by matching the symptom your users report, then work through the cause column in order, since several failures look alike from the user's side. Most failures trace back to a mismatch between the registered redirect URI, the WebUI URL and the environment settings.

SymptomLikely causeFix and check
Entra shows AADSTS50011 or a redirect URI error after sign-inThe redirect URI registered in the Entra app registration does not exactly match the callback URL Open WebUI sendsCompare the Web redirect URI in the app registration character by character with the callback path on your WebUI URL, including scheme, host, port and trailing slash
Sign-in completes but returns to the wrong host or loops back to the login pageThe WebUI URL setting differs from the public address users type in the browserSet the WebUI URL to the exact public address, using HTTPS when users reach it over HTTPS, then restart and test from a private browser window
Microsoft sign-in button is missing or sign-in fails with a configuration errorAn environment variable is misspelled, empty or missing its client ID, tenant or secretCheck each OAuth variable name and value against the app registration, and confirm the container received them with a command that prints the environment inside the running container
Changed environment variables have no effectPersistent configuration stored in the database overrides the environment values on later startsReview the settings in the admin panel and confirm which source is active before editing environment variables again
Users with a valid Microsoft account see an error or are refused accessThe email domain restriction does not include the domain on their account, or the account uses a different UPN than their mail addressCompare the domain allow list with the mail attribute on the user object in Entra, and test with one affected account and one known-good account
Group names appear as long GUIDs instead of readable namesEntra sends group object IDs in the token, and the group claim is not mapped to a nameConfirm the groups claim is configured in the token, then check the group mapping in Open WebUI uses the names your team expects and document the object IDs for each group
Group claims never arrive in the tokenUsers belong to more groups than the token can carry, or the app is not configured to emit group claimsCheck the group claim setting on the app registration, review the number of groups per user, and consider limiting the claim to assigned groups or using Graph lookups where your design allows
Admins sign in but regular users failAdmin roles or group mappings depend on claims that only some users receive, or the default role for new users is set to a role that is not allowed to sign inCompare the decoded token for an admin and a regular user, confirm the same claims appear, and check the default role and pending approval settings in Open WebUI

Questions teams ask before configuring Entra sign-in

Can our team configure Entra sign-in for Open WebUI without outside help?

Yes, a team with administrator access to both the Entra tenant and the Open WebUI host can do it, and the free software documents OIDC sign-in. The harder part is the coordination: app registration, redirect URI, group claims and admin consent all need someone who can approve changes in the tenant. Teams without a platform engineer who has done OIDC work before often find the first sign-in attempt is the easy step, while group claims and domain restriction take the most testing. A partner can take that work under a written scope if your internal capacity is limited.

What makes the Entra configuration effort larger or smaller?

Four factors drive most of the effort:

  • Tenant policy: conditional access, app consent rules and whether users can consent to apps all decide how much approval the app registration needs.
  • Group design: a small set of security groups that map cleanly to Open WebUI groups is far simpler than nested groups with overlapping membership.
  • Number of groups: each group needs a readable name in Open WebUI, and each mapping needs a test.
  • Multiple replicas: running more than one Open WebUI instance requires Redis and shared storage before sign-in behaves consistently, which adds infrastructure work.

Certificate setup for the connection between your identity layer and the host also adds steps when your environment uses internal certificate authorities.

How long does Entra sign-in setup take, and what causes delays?

Duration depends mainly on approvals rather than on the technical steps themselves. The app registration, client secret and redirect URI can often be set in a single working session, but tenant administrators may need a change request, a security review or consent from a second approver before the registration is allowed to request group claims. Each of these approvals adds calendar time that no technical work can shorten. Ask any provider for a written timeline that separates engineering days from waiting time for your approvals, and confirm which of your change windows apply.

Do we need a paid Open WebUI license to use Entra sign-in?

No paid license is needed for OIDC sign-in with Microsoft Entra ID as a generic OIDC provider. The free Open WebUI software documents SSO through OIDC and LDAP, so the core configuration is available without an Enterprise License. The Enterprise License is a separate commercial decision that adds white-labeling and custom branding with dedicated support options. Open WebUI does not publish its price. Sales quotes it after you contact them with an expected seat count, so ask them for that quote if you want the support tier or branding included. Also confirm the license terms that apply to your version, since branding rules depend on user count.

What do we need to provide before the work starts?

Three things make the work move quickly:

  • Tenant administrator access, or a named administrator who can create the app registration, grant consent and manage group claims.
  • A test group of users who can sign in during validation, ideally including someone who is not an administrator, so role and group mapping can be checked.
  • A named owner on your side who approves scope, handles change requests and accepts the result.

You should also provide the Open WebUI host details, the public URL users will reach, and the email domain you want to allow. Scope and deliverables are agreed in writing before work begins.

Can Microsoft and Google sign-in run together in Open WebUI?

Running both is possible, but it is not a simple toggle. Open WebUI supports one generic OIDC provider in its basic configuration, so offering Microsoft and Google together requires a specific approach, such as the built-in Google module alongside the generic OIDC setting and account handling by email. This raises questions about which provider owns each account and what happens when the same email appears in both. Decide the account policy first, then plan the test cases for each provider, including sign-in restricted to your own email domain. This is covered in a separate topic on sign-in with both providers.

Does restricting sign-in to our email domain stop every unwanted account?

Domain restriction limits sign-in to addresses in the domains you allow, but it is one control among several. It depends on the claim the application receives from Entra ID, so the email or user principal name value must be correct for your tenant. Guest accounts, external collaborators and aliases can produce addresses that look valid but belong to other organizations. Pair domain restriction with tenant-side controls such as assignment requirements and conditional access, and confirm with your security team how guest access is handled before testing.

How DeployOpen works on this

DeployOpen scopes Open WebUI sign-in with Microsoft Entra ID as a written, fixed-scope engagement inside your own infrastructure. We configure one Entra tenant, map security groups to readable names, restrict sign-in to your email domain, and document the result so your identity and security teams can review it.

How we scope

  • We confirm the Entra tenant, app registration ownership and the email domains allowed to sign in.
  • We agree which security groups must appear as readable names and which group-to-role mappings apply.
  • We record the deployment target, Redis and database state, and whether multiple replicas are in scope.

How we build

  • We register the Entra application, configure the OAuth settings in Open WebUI, and test sign-in with a pilot group.
  • We check that group claims arrive and that group names resolve instead of appearing as GUIDs.
  • We test domain restriction with accounts outside the allowed domain and confirm they are refused.

How we hand over

  • You receive the configuration record, the Entra app settings and the test results for each sign-in path.
  • You receive runbook notes covering secret rotation, redirect URI changes and how group mappings are maintained.
  • We walk your administrators through the setup and confirm who holds the admin role in Open WebUI.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after handover.
  • Upgrades to newer Open WebUI releases are retested against your Entra sign-in path before rollout.
  • Changes to tenant policy, group structure or domain rules can be scoped and tested as a new written request.

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.