Open WebUI with Microsoft and Google sign-in together

Teams that want staff to sign in with either Microsoft or Google need a plan for two providers, one user account per person and safe email matching. This page covers the supported approach, the setup sequence, the risks and the tests.

On this page

How Open WebUI can offer Microsoft and Google sign-in side by side

Staff at many organizations hold both Microsoft 365 and Google Workspace accounts, and they expect the same Open WebUI workspace to accept either one. Open WebUI's documented single sign-on is built around OIDC and LDAP, so the practical answer is that Microsoft can be configured as a generic OIDC provider while Google can use the built-in Google option. Both paths must resolve to one Open WebUI account per person, which depends on how the two identities are matched, not on which button the user clicks. This page relies on the Open WebUI features documentation, and the exact environment variables, callback URLs and merge behavior must be confirmed against the release you plan to deploy before any configuration is written.

Plan the identity model before touching settings. Decide which email address is the authoritative identifier for each person, whether users may have different primary domains in Microsoft and Google, and who owns the account if a person signs in first with one provider and later with the other. Account merging by email only works cleanly when the address is the same and verified at both providers. Confirm with your identity and Workspace administrators that the Microsoft tenant and the Google domain both assert the addresses you expect, and list any aliases, shared mailboxes or contractors whose identities do not follow the standard pattern. Ask whether the Open WebUI version you run treats an unverified or changed email as a merge trigger, because a mistake here links one person's history to another's account.

Test the combined setup with a small set of pilot accounts that cover each case: Microsoft only, Google only, both with the same address, and a user whose addresses differ. Check that group and role claims arrive from the Microsoft side, that the Google user lands in the same groups, and that an admin can see and revoke sessions for either login. Record which provider each account last used so support can explain sign-in problems later. Note that the Microsoft and Google provider settings are deployment-specific, so the test plan should be repeated after every Open WebUI upgrade and after any change to the identity provider configuration.

What to have ready before configuring two sign-in providers

Configuring Microsoft and Google sign-in side by side touches the public address, the certificate, two admin consoles and the email policy that decides who gets in. Settle these items first, because a mismatch in any one of them shows up later as a sign-in failure that looks like a provider problem.

Stable public URL and valid certificate

Both providers redirect users back to the public address Open WebUI is configured with, so that address must be fixed before you register anything. Changing it later means editing both redirect URI lists again. Confirm the hostname resolves to the reverse proxy, the certificate is trusted by browsers, and the scheme is HTTPS. A certificate warning at the callback stage will block sign-in for both providers.

Admin access to both consoles

You need rights to register an application in the Microsoft Entra tenant and to create an OAuth client in the Google Cloud project that owns the sign-in. Confirm who holds those roles before the change window, not during it. Ask the Microsoft tenant administrator whether app registration requires approval, and check which Google Cloud project will hold the client credentials and who can rotate its secret.

Agreed list of allowed email domains

Account merging by email means a user's Microsoft and Google identities join one Open WebUI account when the addresses match. The domain list decides who can sign in at all and which identities are trusted to merge. Write the list down with the business owner, including any contractor or partner domains, and decide what happens to addresses outside it. Changing this list after launch affects existing accounts.

Current release to deploy

Check the Open WebUI releases page for the current release before you choose a version to deploy, and pin that version in your deployment files. Recent releases on the project page include v0.12.3, published October 16, 2026, but confirm which release you will run against the page on the day you start. Record the version in your change ticket so the redirect and OAuth settings you test match what is in production.

Open WebUI releases

Redis and external database for replicas

If you run more than one Open WebUI replica, the scaling guide requires PostgreSQL instead of SQLite and Redis as shared state for sessions and websocket connections. Without Redis, signing out does not revoke tokens, and they remain valid until they expire, by default after 4 weeks. Plan both services, and their backups, before you configure sign-in, so session behavior is tested in the same topology you will run.

Scaling guide

How a sign-in travels through Open WebUI, Microsoft, Google and the user database

The sign-in starts in the user's browser on the public internet, which Open WebUI sends to either the Microsoft or Google identity provider. Each provider authenticates the user and returns tokens to Open WebUI inside the company network. Open WebUI then checks the verified email against the user store, either matching an existing account or creating one, and records the session. Check that the email claim is verified, that the matching rule is what you intend, and that the session store is shared when you run more than one replica.

Sign-in paths through the identity providers, the account match by email, and where sessions are stored.

Which provider path fits the organization

This path fits an organization whose workforce mostly signs in with Microsoft Entra ID, but where a defined group of users, such as contractors, partners or a pilot team, signs in with Google Workspace or consumer Google accounts. Microsoft is configured as the single generic OIDC provider, and Google is enabled through Open WebUI's built-in Google module. Both sign-in methods then point to one deployment, and accounts are linked when the email address matches.

  • Who is served: Mixed populations where the primary directory is Entra ID and a smaller external group uses Google identities.
  • Confirm in your version: That the installed release still exposes a generic OIDC provider slot alongside the built-in Google option, and that account merging by email behaves as documented for your release.
  • Confirm the email trust model: Whether Google accounts can assert addresses in your domain, since email matching is only as strong as the provider's control over those addresses.
  • Ongoing maintenance: Client secrets and redirect URIs for both providers, plus a review of which email domains are accepted at sign-in.
  • Ongoing testing: A sign-in test for each provider after every upgrade, because callback and claim handling changes between releases.

Keep the Microsoft configuration as the primary identity source and treat the Google path as an exception that needs its own owner and review date.

Configuring Microsoft and Google sign-in in the right order

This sequence sets one public address, registers each identity provider against it, and confirms each sign-in works alone before testing account merging with both providers together. The result is a sign-in page offering both options, limited to approved email domains, with tested behavior for shared email addresses.

  1. Fix the public WebUI URL first

    Decide the public address users will type to reach Open WebUI, including the scheme and any port, and set it in the instance before either provider is registered. Both identity providers build their callback addresses from this value, so changing it later breaks sign-in for every provider. Your platform or security team should own this decision, usually together with the reverse proxy and certificate setup. Done means one agreed address is written down, resolves to your proxy, and matches what you will enter at each provider.

  2. Register Open WebUI in Microsoft Entra ID

    An administrator in your Entra tenant creates an app registration for Open WebUI and sets the redirect URI to the callback path Open WebUI documents, built from the public address in the previous step. Confirm the exact path in the current documentation for the release you deploy. Store the client secret in your secrets manager, not in a shared document. Done when the registration shows the application (client) ID, the secret is stored, and the redirect URI matches the public address character for character.

  3. Register a Google OAuth client

    In Google Cloud, configure the OAuth consent screen, then create an OAuth client for a web application. Choose the user type that matches your population, and confirm with your Google Workspace administrator whether accounts outside your organization need access. Add the same callback address pattern used for Microsoft, derived from the public WebUI URL, and copy the client ID and secret into your secrets manager. Done when the client exists with the redirect URI listed exactly as Open WebUI expects it.

  4. Enable the Microsoft OIDC settings

    Enter the Entra tenant details, client ID and client secret in the Microsoft OAuth settings of Open WebUI, and turn on sign-up through OAuth. Keep your local administrator account working before you change anything, so you can recover if a setting is wrong. Restart or reload the instance as the documentation requires for your deployment method. Done when the sign-in page shows a Microsoft option in a fresh browser session and selecting it sends you to the Microsoft sign-in prompt.

  5. Enable the Google option

    Turn on the built-in Google module and enter the Google client ID and secret from the earlier registration. Google uses its own module, so this is a separate setting from the generic OIDC provider, which means you can run Microsoft and Google together without a custom OIDC bridge. Reload the instance using the same method as before. Done when a Google option appears beside the Microsoft option, and a fresh Microsoft sign-in still reaches the Microsoft prompt, confirming the change did not break the first provider.

  6. Restrict sign-in to approved email domains

    Set the list of approved email domains before you invite wider groups of users. Without this restriction, the sign-in options may admit accounts you did not intend to approve, depending on your tenant and Google settings, so check the current setting in the documentation and in your Entra external collaboration and Google consent configuration. List every domain your staff use and nothing else. Done when an account from an unapproved domain is refused at each provider and an account from an approved domain is admitted.

  7. Test each provider in a clean session

    Open a private browser window, or clear cookies and site data, and sign in with one Microsoft account from an approved domain. Sign out completely, open another clean session, and sign in with one Google account from an approved domain. Use a separate test account for each provider so the results are easy to trace. Done when each login lands in the interface with the expected name and email, and the admin user list shows one new user record per test account with the correct provider.

  8. Test both providers and email merging

    Sign in with a Microsoft account, sign out, then sign in with a Google account that uses the same email address, in a clean session. Open Web UI links accounts by email, so this test shows whether the two identities resolve to one user. Confirm the behavior in the release you deploy, and be aware that anyone who controls an email address at one provider may be able to reach the same account through the other, which is why the domain restriction must already be in place. Done when the admin list shows one user for that address, and the result is recorded for future upgrades.

Why merging accounts by email needs verified addresses

When one person signs in with Google and later with Microsoft, and both identities carry the same email address, Open WebUI may link them to a single account. That convenience depends entirely on the provider asserting that the address is verified and still belongs to the person signing in. Before you enable both providers, confirm in your installed version how Open WebUI handles an existing account whose email matches a new sign-in: whether it links automatically, prompts, or creates a separate account. Test this with two accounts you control in a non-production instance, and record the result in your configuration notes so the behavior is known before users arrive.

The main risk is account takeover. If a provider accepts an unverified address, or an address that was reassigned after an employee left or a domain lapsed, a stranger who controls that mailbox can sign in and land in the existing Open WebUI account, with its chats, uploads, shared knowledge and any group memberships. Reassignment matters most with personal Gmail addresses and with mailboxes on domains your organization no longer controls. Ask your identity team which Microsoft tenant settings and Google Workspace settings determine whether addresses are verified, and whether accounts from outside your tenant or domain can sign in at all. Limit both providers to the domains you own, so an address outside that list cannot produce a match.

If your organization needs separate identities, for example because contractors use personal Google accounts or regulated teams must keep Microsoft and Google records apart, plan to block merging for those domains instead of relying on the provider alone. Write down which domains are blocked, who approves exceptions, and how an existing account is handled if someone was already merged by mistake. Also decide whether the Microsoft and Google identities should be treated as the same person for audit purposes. Changing this rule later can be harder than setting it correctly at the start, so confirm the approach with your security team before rollout.

Which attributes and roles each provider supplies to Open WebUI

This table maps each identity item from Microsoft and Google sign-in to its claim source and to the Open WebUI record it feeds. Read the Microsoft and Google columns as what each provider is expected to send, then confirm the exact claims in your own tenant and test sign-in before you rely on merging or role mapping.

Data itemMicrosoft sign-inGoogle sign-inOpen WebUI result
User identifierStable object ID or subject claim, usually a GUID. Confirm which claim is stored.Stable subject claim, a long numeric string tied to the Google account.Identifies the account record. Confirm that identifiers are never used to merge accounts.
Display nameName claim set from the directory profile. Administrators control the value.Name claim from the Google profile. The user can change it.Shown in the user profile. Expect differences when the same person signs in through each provider.
Email addressEmail or preferred username claim. Confirm it is present for every tenant account.Email claim for the Google account, including personal Gmail accounts.Primary input for matching a Microsoft and a Google sign-in to one Open WebUI user.
Email verification statusNo standard verified flag assumed. Confirm what your tenant sends and whether it is trusted.Email verified claim, set true for verified Google accounts. Confirm the value received.Merge by email only when verification is confirmed. Test an unverified case.
Group claimsGroup object IDs (GUIDs) by default. Readable names need claim configuration or a directory lookup. Confirm.Sign-in normally carries no group membership. Confirm whether your setup supplies any group data.Groups map to Open WebUI groups only after names or IDs are resolved and tested.
Role claimsApplication roles appear in a roles claim only when defined and assigned in the tenant. Confirm.No equivalent app role claim in standard sign-in. Confirm before assuming.Admin role from claims needs explicit mapping. Google-only users may need manual role setup.
Resulting Open WebUI userCreated on first sign-in or matched to an existing account by verified email.Created on first sign-in or matched to an existing account by verified email.One user record per person when merging works. Confirm duplicates are not created.
Resulting group or admin roleSet by mapped claims, which must be confirmed against group and role test users.Set by manual assignment unless a verified group or role source is confirmed.Access depends on the mapping. Review each provider's result with test accounts.

Security controls for a dual sign-in setup

Offering Microsoft and Google sign-in on one Open WebUI instance widens the set of identities that can reach it and links accounts by email. The controls below limit which identities can enter, how accounts are merged, who can change sign-in settings, and how sessions end when someone leaves.

Restrict allowed email domains

Limit sign-in to the email domains your organization owns, so a personal Google account or a second Microsoft tenant cannot create an account. Check the domain setting after every change to the sign-in configuration, and test with an account from an unlisted domain. Confirm how Open WebUI handles a domain that appears in a provider's tenant but not in your allowed list. Ask your Google Workspace and Entra administrators which domains they publish and whether aliases can carry a different domain.

Require verified email before merging

Account merging by email is only safe when the provider has verified the address. Without that check, a user who registers an unverified address matching an existing administrator's email could take over that account. Confirm that each provider returns an email-verified claim and that Open WebUI rejects the merge when it is false or missing. Test this with an unverified test identity before go-live.

Keep client secrets out of plain configuration

Each provider has its own client ID and client secret, and both should live in a secrets store, not in a compose file, Helm values file or shell history. Check where the environment variables are read from, and whether the container runtime exposes them through inspection commands. Rotate both secrets on a set schedule and after any staff change in the teams that own the app registrations. Confirm the rotation procedure with your secrets platform owner before you rely on it.

Limit who edits SSO settings

Changes to OAuth providers, allowed domains and merge behavior affect every user. Restrict admin rights for these settings to a short named list, and keep the list separate from people who manage models or users day to day. Review admin role assignments whenever the identity provider group mapping changes, since a group claim can grant admin rights at sign-in. Record who holds the admin role and check it on a regular schedule.

Log sign-in and merge events

Record each sign-in, each account created or merged by email, and each change to SSO settings, with the provider name and timestamp. These events show whether a merge linked two identities that should have stayed separate. Confirm which events Open WebUI writes to its logs, which ones your SIEM ingests, and how long each store keeps them. Test that a merge event appears in your central log before you rely on it for review.

Plan session end for leavers

Sign-out in Open WebUI does not revoke tokens when Redis is absent, so a session can stay valid until it expires, by default after 4 weeks. Deploy Redis before you rely on sign-out for offboarding, and confirm that revoking a user at the identity provider also ends their Open WebUI access. Decide how quickly leavers must lose access, then test it with a disabled test account. The related back-channel logout topic covers the next step.

Scaling guide

Failures when both providers sign in to the same Open WebUI

This table lists the failures teams most often hit when Microsoft and Google sign-in both point at one Open WebUI instance. Each row gives the likely cause, the check that confirms it and the fix, so you can work through them in order when a sign-in fails.

FailureLikely cause and checkFix
Redirect URI mismatch in Microsoft or GoogleThe redirect URI registered in the Entra app registration or Google Cloud OAuth client does not match the callback Open WebUI sends. Check the exact error text from each provider and compare the registered URI character by character.Register the callback URL for each provider using the public WebUI address, including scheme, host and path, then retry sign-in in a private browser window.
WebUI URL does not match the public addressThe configured WebUI URL differs from the address users type, for example an internal hostname, a missing https scheme or a port left over from testing. Compare the setting with the address shown in the browser after redirect.Set the WebUI URL to the public HTTPS address behind your reverse proxy, restart the service and update both provider registrations to match.
Two accounts for one personMicrosoft and Google return emails that differ in letter case, use a legacy alias or use a different domain. Check the user list for two rows with the same person's name and compare the stored email values.Normalize emails to lowercase in the directory, decide which address is the account key and merge duplicate accounts before enabling both providers for all users.
Merged account keeps old group membershipThe account already existed with groups or roles from a previous sign-in path, and the merge keeps those assignments. Compare the group list on the merged user with the current directory groups for that person.Remove stale group memberships and admin roles from the merged account, then let claims or group sync reapply current assignments and confirm the result.
Google works but Microsoft fails for one tenantThe Entra tenant may restrict the application to its own users, require admin consent or block the sign-in by conditional access. Check the sign-in logs in Entra for the failed attempt and the reason it lists.Grant admin consent for the application, adjust the tenant or conditional access policy for that user group, and confirm the tenant ID and allowed account types in the app registration.
Token stays valid after sign-outWithout Redis, signing out does not revoke tokens, which stay valid until they expire. By default they last 4 weeks. Test by signing out, then reusing the old session token against the API.Configure Redis as the shared state store for sessions in multi-replica or production setups, and confirm revocation by repeating the test after sign-out.
Mismatched sign-in method for the same personA user signs in with Google first, then Microsoft, and the second attempt creates or links to a different account because the email differs. Check which provider issued each login in the audit trail.Agree on one primary provider per user population, document which email the merge uses and tell users which button to choose.

What buyers ask about effort, cost and the work they must do

How long does configuring Microsoft and Google sign-in together take?

The time depends mostly on how many identity configurations are involved and how much verification the rollout needs, not on the sign-in code itself. Open WebUI supports one generic OIDC provider, so offering both Microsoft and Google means combining a built-in Google module with a second provider configuration and deciding how accounts merge by email. The main drivers are the number of Microsoft tenants in scope, whether group or role claims must map to Open WebUI groups, how many test users must sign in during validation, and how many redirect URIs and environments (test and production) must be set up. Ask any partner to show how each of these items is counted in the written scope before agreeing to a timeline.

What does a fixed-scope engagement for this work include?

A fixed-scope engagement sets out the scope, deliverables and timeline in writing before work starts. For this topic, that scope typically covers reviewing the current Open WebUI deployment, configuring the Microsoft and Google sign-in paths, setting the email-based account merge behavior, testing sign-in with a group of test users, and documenting the configuration for your operators. Ask whether the written scope also covers rollback steps, handover of configuration values and a short retest after any change. Anything outside that list, such as group-to-role mapping design or MFA enforcement, should be named as a separate item so it is priced and scheduled on its own.

What recurring costs remain after the sign-in setup is complete?

Recurring costs come from running the platform, not from the sign-in configuration itself. Expect ongoing work for Open WebUI version upgrades, reviewing and rotating OAuth client secrets, updating redirect URIs when hostnames change, checking that Microsoft and Google settings still match Open WebUI, and handling new users or groups as they are added to the identity providers. You also carry the infrastructure cost of the hosts, database and any Redis or shared storage the deployment uses. If you want continuing help, ask about a retainer covering upgrades and testing, and ask for it as a separate line in the quote.

What must our team supply before the work starts?

You must supply the access the configuration depends on. In practice this means tenant administrator rights or an admin who can register an application in your Microsoft Entra ID tenant, access to the Google Cloud project where the OAuth client is created (with rights to manage consent screens and credentials), a written list of the email domains allowed to sign in, and a test group of users from each identity provider who can validate sign-in and account merging before production use. Missing any of these is the most common reason a timeline slips, so confirm each item and its owner before the engagement is scheduled.

Can our internal team set this up without a partner?

Yes, an internal team with identity and Open WebUI experience can perform this configuration, provided it has the access listed above and time to test. The work involves registering OAuth applications in two identity platforms, setting environment variables and redirect URIs correctly, and deciding how users with the same email address are merged. The risk lies in getting merging, domain restrictions or role mapping wrong, which can grant access to the wrong accounts. Teams without recent OIDC experience usually benefit from a review of the final configuration, even when they do the build themselves.

Does the Open WebUI License or enterprise branding affect this work?

For this topic, the license matters only if your deployment is large enough to trigger its branding rule. The Open WebUI License forbids altering or removing branding in deployments that exceed 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. Adding Microsoft and Google sign-in does not itself change branding, so the license has no effect on the sign-in work. If your user count is near or above that threshold, confirm the license position with Open WebUI before any branding changes, and ask whether an enterprise license affects your support options.

What are the main cost drivers for this sign-in setup?

Cost follows the number of identity systems, environments and rules involved. More Microsoft tenants, more Google domains, more group or role claims to map, and more environments to test each add review time. Requirements such as domain restrictions, account merging rules and documented evidence for an internal audit also add effort. Ask any quote to itemize the Microsoft configuration, the Google configuration, the account merge design, testing, documentation and handover as separate lines, so you can see what changes if one part of the scope shifts.

How DeployOpen works on this

DeployOpen scopes dual sign-in for Open WebUI as a written engagement covering the Microsoft and Google login paths, the account merging rules and the access model that follows from them. We build and test the setup in your own infrastructure, then hand over documentation your identity and security teams can review and maintain.

How we scope

  • We confirm which Microsoft tenant, Google domain and Open WebUI version the engagement covers before any configuration starts.
  • The written scope names the Microsoft provider, the Google module, the email-based account merge rule and the group mapping in use.
  • We record which users, domains and admin accounts must be able to sign in, and which must be blocked, before work begins.

How we build

  • We configure the Microsoft and Google login paths in your environment, with redirect URIs and client secrets managed under your own controls.
  • We test account merging by email, including mismatched addresses, shared mailboxes and users who already hold a local Open WebUI account.
  • We check the deployment behind Redis and shared storage when more than one replica serves sign-in, following the project's scaling guidance.

How we hand over

  • You receive configuration documentation covering each provider, environment variables, the merge rule and the known edge cases found during testing.
  • The handover includes a test script your team can rerun after upgrades, certificate changes or identity provider updates.
  • Runbook notes describe how to revoke access, disable a provider and recover an admin account if a sign-in path fails.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers once the initial engagement is complete.
  • Retainer work can cover Open WebUI upgrades, including checks on the license terms that apply to the release you run.
  • Retesting after each change confirms that both sign-in paths and the account merge rule still behave as documented.

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.