Open WebUI with OneDrive and SharePoint: what the integration covers
Your users want to attach Microsoft 365 files to Open WebUI chats without downloading them first, and that goal splits into two separate paths. The first covers files in organization OneDrive for Business and SharePoint sites, which are governed by your tenant, your Entra ID app registrations and your site permissions. The second covers a user's personal OneDrive, which is a different storage scope with different access rules and a different consent story. Decide early which path you need, because the app registration, the permissions you grant and the users who can use the feature all differ between them.
The pillar documentation supplied for this page does not name a native OneDrive or SharePoint connector in Open WebUI. Do not assume one exists, and do not assume that an environment variable named for Microsoft 365 will work. Before any configuration starts, confirm the supported integration method, the protocol it uses, the required environment variables and the Microsoft Graph permissions it expects, using the Open WebUI features documentation for the exact version you run. Record the version number in your change request, since integration options can change between releases.
Treat that confirmation as a gate in your plan. Ask who will own the Entra ID app registration, how admin consent will be granted, which SharePoint sites are in scope, and whether file content will be sent to your chosen model provider once attached. Those answers decide whether the feature is a small configuration task or a project that needs identity, data governance and security review, and they should be settled before a quote is finalized.
What you need before connecting Open WebUI to Microsoft 365
Connecting Open WebUI to OneDrive for Business and SharePoint depends on decisions made in three places: the Open WebUI deployment itself, the Microsoft Entra ID tenant and the Microsoft 365 licensing behind the files. Confirm each item before scoping the work, because gaps in one area usually surface as failed sign-ins or missing files later in the build.
A running Open WebUI deployment
Record the Open WebUI version you run and the install method, whether Docker, Docker Compose, Kubernetes with Helm or pip. The integration depends on the version's file picker and environment variable names, so confirm them against the release you deploy rather than older notes. Check that you can sign in, that admin settings save and that a test chat works before you add any Microsoft configuration.
- Latest release cited
- v0.12.3
Multi-replica prerequisites in place
If more than one Open WebUI replica serves users, PostgreSQL, Redis and shared file storage must exist first. The scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments and Redis for shared sessions and websocket state. Without Redis, signing out does not revoke tokens, so a removed user could keep access until expiry.
- Default token lifetime
- 4 weeks
Entra ID tenant and an administrator
You need a Microsoft Entra ID tenant and an administrator who can register applications and grant admin consent for the delegated permissions Open WebUI requests. Agree beforehand who owns the app registration, where its client secret is stored and who approves consent. If your policy blocks user consent, plan for an admin to consent on behalf of the organization.
Microsoft 365 licensing for the file stores
Confirm that the users who will attach files hold licenses that include OneDrive for Business and SharePoint Online, and that the SharePoint sites they need are provisioned. Personal OneDrive access is a separate option with its own configuration, so decide which store each user group needs before you scope the work. Licensing gaps usually appear as empty file pickers for specific users.
Network paths to Microsoft endpoints
The Open WebUI server must reach the Microsoft sign-in and Graph endpoints over outbound HTTPS, and the browser must reach Microsoft for the sign-in redirect. Check egress rules, proxies and DNS in the network that hosts Open WebUI, including any allowlists your security team maintains. Test these paths from the actual host, because a working laptop does not prove the server can connect.
HTTPS on the public address
Entra ID redirects return the user to Open WebUI, so the public address must use HTTPS with a certificate the browser trusts. Confirm the exact redirect URI you will register, including scheme, host and path, because it must match the app registration character for character. A mismatch is one of the most common causes of sign-in failure after setup.
Only the Open WebUI backend holds app credentials when it reads SharePoint files
The diagram starts in the user's browser, which signs in through Entra ID and never receives the app credentials. The Open WebUI backend exchanges the sign-in result for tokens, then calls Microsoft Graph to read the file the user picked. File content returns to the backend, which holds it only as a retrieved copy for the chat. Check where that copy is stored, how long it lives, and which tokens are cached on the server.
Trust boundaries, token issue points and where file content lands.
Which OneDrive and SharePoint option fits your users
Files in OneDrive for Business and SharePoint document libraries belong to the organization, even when a person uploaded them. Access follows Microsoft 365 permissions: site membership, library permissions, sharing settings and any sensitivity labels your tenant already applies. The integration reads files as the signed-in user, so a person sees only what that person could already open in Microsoft 365.
- Content owner: the business unit or site owner, not the individual who uploaded the file.
- Permission model: Microsoft 365 group and site permissions, checked each time a file is read.
- Administrator approval: an Entra ID administrator registers the application and grants the delegated permissions, after your security team reviews the requested scopes.
- Subset rollout: start with one or two sites whose owners agree to the pilot, and limit sign-in to a pilot group through an Entra ID assignment on the enterprise application.
Before approval, identify which sites hold regulated or restricted content, because Open WebUI inherits whatever a user can read. Confirm the permission scopes against Microsoft's current documentation for your tenant.
Personal OneDrive holds files that belong to one user. The data boundary is that individual account, so each user consents to access to their own files, and no shared site policy covers them. This option uses its own app registration settings and its own consent path, so enabling the organization option does not enable it.
- Content owner: the individual user, who may keep work and personal material in the same drive.
- Permission model: the user's own drive access, granted through consent for that user's files only.
- Administrator approval: confirm whether your tenant lets users consent to applications or requires an administrator to approve the request, and set that policy before the rollout starts.
- Subset rollout: enable the option for a named pilot group, then review consent records and sign-in logs for that group before widening access.
- Offboarding: personal drives do not transfer with a team, so define what happens to files a user attached to chats when that user leaves.
Decide whether personal drives are in scope for regulated users at all, and record that decision before the option is switched on.
Some organizations need both options, but they operate as two integrations with separate settings, consent records and reviews. Treat them as two entries in the rollout plan, each with its own owner and test cases, so a change to one does not quietly widen the other.
- Content owner: organization content stays with the business owners, and personal drives stay with the users who own them.
- Permission model: users may see both sources in the file picker, so the instructions should explain which source they are choosing.
- Administrator approval: record a separate approval for each option, with the scope and the reviewer named.
- Subset rollout: use separate pilot groups for each option, widen them in stages, and write an exit criterion for each stage.
- Testing: confirm that a user outside the pilot group sees neither option, and that removing a user from the group removes the file picker entry.
Before you publish user instructions, confirm with your Microsoft 365 administrators how each option appears in the interface for the Open WebUI version you run.
How to configure the Entra ID app and Open WebUI in sequence
This sequence connects Open WebUI to a Microsoft Entra ID app registration so users can attach files from OneDrive for Business and SharePoint in chat, and it ends with a verified sign-in and file attach. Each step produces a check you can record before moving on.
Confirm the supported method for your version
Before touching Entra ID, confirm in the Open WebUI documentation for the exact version you run that a Microsoft cloud storage integration exists, which sign-in method it uses and which settings it expects. Read the release notes for the version you plan to deploy, because integration details can change between releases. Record the version, the documented method and the list of settings the docs name. Your check is a written note that matches the running version number shown in the admin panel, so the rest of the work targets the right configuration.
Register the application in Entra ID
An administrator in your Microsoft Entra tenant creates an app registration for Open WebUI, sets the supported account type to match your tenant policy, and adds a web redirect URI that uses the exact public address users reach, including scheme and path required by the docs for your version. Copy the application (client) ID and the directory (tenant) ID into your secure configuration record. Your check is that the redirect URI in the registration matches the address in your browser and the docs character for character.
Create a client secret or certificate
In the app registration, create the credential type that your deployment method supports and store its value in your secrets manager rather than in plain configuration files. Note the expiry date so the rotation is scheduled before it lapses. Your check is that the secret value is saved in the vault and that a calendar reminder or ticket exists for rotation, because an expired credential will look like a sign-in failure later.
Add only the delegated permissions the feature needs
Under API permissions, add Microsoft Graph delegated permissions limited to what the file picker needs to read files and list sites or drives the signed-in user can already access. Avoid application permissions, which let the app act without a user and reach content broadly. Remove any default permission that the docs do not require. Your check is a permission list you can explain line by line to the security reviewer, with each entry tied to a documented requirement.
Grant admin consent and verify the consent state
A user with the right Entra role grants admin consent for the tenant so signed-in users are not blocked by consent prompts. Confirm that the consent status shows as granted for every permission in the list. Your check is a screenshot or export of the API permissions page showing granted status, which is the evidence your change board will ask for.
Set client identifiers and tenant values in the deployment
Set the client ID, tenant value, secret and any redirect or callback settings as environment variables or secret references in your deployment manifest, using the exact names listed in the docs for the version you confirmed in step one. Do not guess variable names from older articles or forum posts. Keep the secret out of the image, the Compose file committed to source control and shell history. Your check is a rendered configuration that shows the variables are present without printing the secret value.
Restart the service and confirm the new configuration loaded
Restart Open WebUI through your normal deployment path, such as a container restart or a Helm rollout, so the new variables take effect. Then check the application logs for startup errors that mention authentication, the tenant or the redirect URI, and confirm the admin settings page shows the integration as enabled. Your check is a clean startup log and an enabled status in the admin panel for the integration.
Test sign-in and a file attach end to end
Sign in as a pilot user who has access to a known OneDrive for Business folder and a SharePoint document library, then attach one file from each location in a chat. Confirm the sign-in redirect returns to Open WebUI, the file listing shows only what that user can already see in Microsoft 365, and the attached file's content is available to the model. Repeat with a user who lacks access to the library and confirm the file is not listed. Your check is a documented test pass with both users, both locations and the expected results, which proves the permission model works in practice.
How Entra ID identities and groups map to Open WebUI access
This table maps each Microsoft 365 element that controls file access to the Open WebUI setting it touches, and names who controls it. Read it as a checklist for the access design: the sign-in identity, groups, file permissions, admin consent and the personal OneDrive path each need an owner and a confirmed behavior before rollout. Items marked for confirmation depend on the Open WebUI release and tenant configuration you deploy.
| Source in Microsoft 365 | Open WebUI target | Who controls it | What to confirm |
|---|---|---|---|
| Signed-in user identity in Entra ID | User account in Open WebUI, matched through the configured OIDC sign-in | Identity team with the Entra ID tenant administrator | Which claim (such as email or object ID) Open WebUI uses to match the account, and how duplicate accounts are avoided |
| Entra ID security groups | Open WebUI groups, mapped to roles through the group mechanisms in the features documentation | Entra ID administrators for membership, Open WebUI admins for group-to-role mapping | Whether group claims are emitted in the token, and whether nested or large groups are handled as expected |
| Open WebUI role assignment | Admin, user or pending roles that decide who can sign in and use the feature | Open WebUI administrators | Who may enable the OneDrive or SharePoint integration, and whether it is restricted to specific groups |
| SharePoint and OneDrive for Business file permissions | Files a user can attach, limited by what the signed-in identity can already read in Microsoft 365 | Site owners and library owners in Microsoft 365 | That attachments respect item-level and library-level permissions, and that revoked access stops new attachments |
| Admin consent for the Entra ID app registration | Delegated permissions the app is allowed to request on behalf of users | Tenant administrator who grants consent | Exact Microsoft Graph scopes granted, and whether consent is tenant-wide or limited to chosen users |
| Delegated permissions granted per user | Token the Open WebUI backend uses to call Microsoft Graph for that user only | Users at sign-in, bounded by admin consent | Whether users must consent individually and how consent is revoked when a user leaves |
| Personal OneDrive account | Separate personal OneDrive option with its own consent record, not the organization file scope | Each user for their own consent, with administrator policy on whether it is allowed | Whether personal accounts are permitted by tenant policy, and where each consent is recorded for review |
Security controls for a Microsoft 365 file integration
A OneDrive or SharePoint file picker gives Open WebUI a path into business documents, so the integration needs the same controls as any service that reads Microsoft 365 data. The cards below cover permissions, credentials, token lifetime, group scope, logging and where extracted content lives. Verify each control against the Open WebUI version you run, because settings and behavior change between releases.
Least-privilege delegated permissions
Request only the Microsoft Graph delegated permissions the file features need, so each user reads files as themselves and the app cannot see more than that user can. Avoid application-level permissions that read every site or mailbox in the tenant. Before granting consent, have an administrator review each requested scope in the Entra ID app registration and record why it is needed. Confirm the exact scope names against the Open WebUI documentation for your version, since the list can change.
Client credentials outside the image
Keep the Entra ID client secret and any other integration credentials in a secrets store or orchestrator secret, not in the container image, the Compose file or the Git repository. Pass them to the container at runtime through environment variables sourced from that store. Rotate the secret on a schedule and record who can read it. Check the variable names for your release in the Open WebUI documentation, because a leaked client secret lets anyone act as the registered app.
Token lifetime and revocation
Sign-out does not revoke Open WebUI tokens when Redis is not configured. Those tokens stay valid until they expire, which is by default after 4 weeks. In a multi-replica deployment, Redis is required for shared session state, so plan it before enabling the integration. Confirm the token lifetime setting for your version and decide whether a shorter lifetime fits your user offboarding process.
Scaling Open WebUI docsGroup-restricted feature access
Limit the OneDrive and SharePoint picker to the Open WebUI groups that have a documented business need, using role-based access control with groups. Keep the feature off for the default group so new accounts do not gain access to company file stores automatically. Pair this with SSO group mapping so removing someone from a directory group also removes their file access in Open WebUI. Test the restriction with a non-admin test account.
File access logging
Enable audit logging in Open WebUI and in Microsoft 365 so you can answer which user attached which file and when. Logs from the application show Open WebUI activity, while Microsoft Purview or the Entra sign-in and audit logs show Graph access. Confirm what each layer records for your version before relying on it, because the application may not log file identifiers by default. Send logs to a store your security team controls.
Extracted content in your own storage
Text extracted from attached files is stored in the Open WebUI database, upload storage and any vector store you configure. Keep all of those on infrastructure you control, and confirm that no extraction or embedding step sends document content to an external service. Set retention for uploaded files and chat attachments to match your document policy, and include those stores in backup and deletion procedures. Verify the storage locations for your version.
How to test file access before users rely on it
Test file access before any user is told the feature is available, because a broken sign-in or a permission gap will surface first as a support ticket or, worse, as a file a user should not have seen. Run the sign-in test with two accounts: a standard user and an administrator, each from a clean browser session. Confirm that both reach the OneDrive and SharePoint connection, that the Entra ID sign-in completes against the expected tenant, and that the file picker lists only the sites and libraries those accounts can already open in Microsoft 365. Also confirm that a sign-out followed by a fresh sign-in behaves as expected. If the admin account sees content the standard user cannot, record that as a finding before going further.
The permission test is the one that matters most. Pick a file that a test user cannot open in Microsoft 365 because it sits in a restricted library or is shared with someone else, then have that user try to attach it in a chat. The attachment must be refused, and the refusal should be visible in the Open WebUI logs so the team can trace it. Repeat the check with a file the user can open, so the team knows the positive path works too. Ask the Entra ID and Microsoft 365 administrators to confirm which permission model applies to the app registration (delegated access on behalf of the signed-in user is the case to verify), because a broader application permission would change what this test proves.
Test personal OneDrive separately from the organization connection, using a different account and a different set of files, so a pass on one does not hide a failure on the other. If more than one Open WebUI instance serves users, repeat the sign-in and attachment checks against each replica, and run a short concurrent-use test that signs in several users at once and attaches files during the same window. Each test needs a named owner, a written pass or fail result, the date, the environment and the evidence attached, such as screenshots and log excerpts. Treat the results as the input to the go-live decision: a failed permission test blocks release until it is fixed and retested, and the test record stays with the configuration so it can be repeated after upgrades.
Common failures when attaching OneDrive and SharePoint files
This table pairs each failure you are likely to see with its probable cause and a check you can run to confirm it before changing settings. Read each row from left to right, and run the check first, because several symptoms look alike but have different fixes. The main takeaway is that multi-replica and token problems come from shared state configuration, while sign-in and permission problems come from the Entra ID app registration and Microsoft 365 permissions.
| Failure | Likely cause | Check and fix |
|---|---|---|
| Sign-in loop after the Microsoft redirect | The redirect URI registered in the Entra ID app does not exactly match the Open WebUI callback URL, or the tenant in the authority URL is wrong. | Compare the redirect URI in the app registration with the callback URL your browser uses, character for character, including scheme and trailing path. Confirm the tenant ID in the configuration matches the tenant where the app is registered. |
| Consent required error when opening the file picker | Delegated Microsoft Graph scopes were requested but admin consent was not granted in the tenant. | In the Entra ID app registration, open API permissions and check the consent status column for each delegated scope. Grant admin consent for the tenant, then have a test user sign out and sign in again. |
| SharePoint site search returns no results | The signed-in user has no permission on the target site in Microsoft 365, so Graph returns nothing for it. | Sign in as the affected user and open the site in a browser. If the site does not load, the gap is in Microsoft 365 site permissions, not in Open WebUI. Ask the site owner to grant access, then retry the search. |
| Attached file appears on one replica but not another | Uploads or knowledge storage are not on shared file storage, or session state is not shared through Redis, as the scaling guide requires for multiple replicas. | Check that every replica mounts the same file storage and that Redis is configured for all of them. Upload a test file on one replica, then request it through another replica. If it is missing on the second, fix the shared storage or Redis configuration before retesting. |
| Users are signed out or sessions persist unexpectedly after a token or key change | Without Redis, signing out does not revoke tokens, so they remain valid until expiry, by default after 4 weeks. | Sign out in one browser, then reuse the old token through the API. If it still works, Redis-backed session handling is missing. Configure Redis for session state, then repeat the test to confirm revocation. |
Questions buyers ask before hiring help with this integration
How much does an Open WebUI OneDrive and SharePoint integration cost?
The cost depends on the scope agreed in writing, and a quote follows from that scope. Four factors move it most: the number of user groups that get access, whether the work covers personal OneDrive, organization SharePoint sites or both, how much identity design the Entra ID tenant needs, and how deeply the work is tested. Replica count also matters. The scaling guide requires PostgreSQL for multi-instance deployments, plus Redis and shared file storage for multiple replicas, and those components are infrastructure you own. DeployOpen does not publish a price list. Ask for a quote that lists each deliverable, who performs it, and which items recur, such as retesting after upgrades.
How long does an Open WebUI SharePoint integration take to build?
The timeline is set by how quickly approvals, access and testing can happen, more than by the configuration itself. The first constraint is availability: the Entra ID app registration needs an administrator, and site permissions need the Microsoft 365 owners of each SharePoint site. The second is the test group, which needs real users to confirm that attachments open, that permissions match what each person can already see in Microsoft 365, and that personal and organization scopes behave as designed. The third is replica count, since multi-replica setups add Redis, PostgreSQL and shared storage work. Fixed-scope engagements agree the timeline in writing before work starts, so ask for the schedule to be tied to these dependencies.
What does our team need to provide for an Open WebUI SharePoint integration?
Three groups of people are needed, and the work stalls if any of them is missing. The first is an Entra ID administrator who can create and consent to the app registration and confirm the permissions the integration requests. The second is one or more Microsoft 365 owners who can grant access to the SharePoint sites that users will attach files from. The third is a test group of users who represent the real access patterns, including people who should see a site and people who should not. You also need an environment where Open WebUI runs, with access to the identity and Microsoft 365 services it calls. Confirm the exact permissions and consent steps with your Microsoft 365 administrators before the scope is signed.
Can our in-house team set up Open WebUI with OneDrive and SharePoint?
Often yes, if the team already runs Open WebUI and administers Entra ID and Microsoft 365. The work combines three areas: app registration and consent in the identity tenant, environment configuration on the Open WebUI servers, and permission mapping on SharePoint sites and personal OneDrive accounts. Each area has operational consequences, such as how access is revoked when someone leaves a site. Your team should check whether it has time for the testing, including a test group and a review of what users can see. A written scope from a partner can make the work and handover more predictable, but it is your decision. Ask whether your team has the skills and time to own the setup after go-live.
Does the Open WebUI license change affect a OneDrive and SharePoint integration?
The integration work itself is not changed by the license, but the license affects how you deploy and brand the product. Code from v0.6.6 onward is distributed under the Open WebUI License, which forbids altering or removing Open WebUI branding in deployments that exceed 50 users in any rolling 30-day period, unless the operator holds an enterprise license or written contributor permission. Code through v0.6.5 remains BSD-3-Clause. Enterprise licenses allow white-labeling and custom branding, but pricing is not published and is quoted after you contact enterprise sales with an expected seat count. Confirm your user count and branding needs against the license documentation before the integration is scoped.
Can DeployOpen support the integration after go-live?
Yes. Ongoing support, upgrades and continuous testing are available as retainers, separate from the fixed-scope build. After go-live, the integration needs attention when Open WebUI releases change and when Microsoft 365 permissions or Entra ID settings change. Upgrades should be followed by a retest of attachments and permissions, because a new release can change how connectors behave. Your retainer scope should name who monitors release notes, who performs the retest, and how access reviews on SharePoint sites are handled. Check the Open WebUI releases page for the current release history, and ask for the support terms in writing before you sign the build scope.
How DeployOpen scopes and delivers this integration
DeployOpen plans, implements, tests and documents the OneDrive and SharePoint file connection inside your own infrastructure and identity tenant. Each engagement starts with a written scope that separates shared SharePoint access from personal OneDrive access, so your identity and security teams can review every permission before anything is built.
How we scope
- Confirm which OneDrive for Business and SharePoint sites users need, and which personal OneDrive access is needed, if any.
- Agree the Entra ID tenant, app registration ownership, permission scopes and admin consent steps in writing.
- Define the Open WebUI deployment, database and file storage the integration will run on, and the users who will test it.
How we build
- Register the Entra ID application and configure the environment variables for Open WebUI in your deployment.
- Validate that users can attach files only from the sites and accounts the approved scope allows.
- Test sign-in, token handling, file access revocation and behavior across multiple replicas, if your deployment runs more than one.
How we hand over
- Deliver a configuration record with app registration settings, variable names, scopes and the admin consent decisions made.
- Document the test cases, results and the steps to repeat them after an upgrade or secret rotation.
- Walk your identity, platform and security teams through the setup so they can review and operate it.
How we support
- Offer ongoing support, upgrade testing and periodic retesting of the integration as a retainer.
- Review changes to Open WebUI releases and Microsoft Entra ID settings that could affect the connection before you upgrade.
- Ask your team to confirm the support terms, response expectations and included retests in the written proposal.

