docs icon indicating copy to clipboard operation
docs copied to clipboard

issue: OneDrive Integration Documentation Missing Environment Variable

Open christopherquenneville opened this issue 5 months ago • 0 comments

Check Existing Issues

  • [x] I have searched the existing issues and discussions.
  • [x] I am using the latest version of Open WebUI.

Installation Method

Azure Container Docker Pull

Open WebUI Version

v0.6.9

Ollama Version (if applicable)

N/A

Operating System

Server = Azure Container running Linux. Client = Windows 11

Browser (if applicable)

Chrome

Confirmation

  • [x] I have read and followed all instructions in README.md.
  • [x] I am using the latest version of both Open WebUI and Ollama.
  • [x] I have included the browser console logs.
  • [x] I have included the Docker container logs.
  • [x] I have listed steps to reproduce the bug in detail.

Expected Behavior

There is missing this environment variable from documentation: https://docs.openwebui.com/getting-started/env-configuration#onedrive

ONEDRIVE_SHAREPOINT_URL Type: str Default: None Description: Specifies the Sharepoint URL. Example: "https://yourtenant.sharepoint.com"

Without this variable, the "Microsoft OneDrive (work/school) Includes SharePoint" does nothing

Also, there is missing information:

  1. App registration requires to be its own (for example, you can't reuse the Microsoft 365 OAuth).

  2. The redirect URI specified in the request is Open WebUI's URL (http://localhost:3000) (or https://yourdomain.com if you have it that way) + the path to the conversation for example: https://yourdomain.com/c/6d0e2ddc-314c-4e1f-8aaa-4e555f672f3d This can't be the desired behavior, as every conversation gets a unique id

  3. Missing information about permissions required for the App registration. Files.Read.All: 7495a24c-3e31-4d6a-b510-eba7b9ed143c Sites.Read.All: 589cf5b0-a8b4-4e7d-bf8a-122b0953517b Both in delegated with admin consent, to only give access to what the user can see usually

  4. The "ONEDRIVE_CLIENT_ID" variable is used inside the "Microsoft OneDrive (personal)" option. This makes no sense as the request goes to "login.live.com" but looks for a client id on the business side "login.microsoftonline.com". It outputs this error:

We're unable to complete your request unauthorized_client: The client does not exist or is not enabled for consumers. If you are the application developer, configure a new application through the App Registrations in the Azure Portal at https://go.microsoft.com/fwlink/?linkid=2083908.

Was the excepted setup supposed to be about activating the app for any ms account? This is not recommanded:

Due to temporary differences in supported functionality, we don't recommend enabling personal Microsoft accounts for an existing registration. If you need to enable personal accounts, you can do so using the manifest editor. Learn more about these restrictions.​

  1. Once correctly set (just to test I added the redirect URI to "https://yourdomain.com/c/6d0e2ddc-314c-4e1f-8aaa-4e555f672f3d") The "Microsoft OneDrive (work/school) Includes SharePoint" option just loads and then exits, without anything happening afterwards.

Actual Behavior

Documentation currently only includes:

ENABLE_ONEDRIVE_INTEGRATION Type: bool Default: False Description: Enables or disables OneDrive integration. Persistence: This environment variable is a PersistentConfig variable.

ONEDRIVE_CLIENT_ID Type: str Default: None Description: Specifies the client ID for OneDrive integration. Persistence: This environment variable is a PersistentConfig variable.

Steps to Reproduce

https://docs.openwebui.com/getting-started/env-configuration#onedrive

Logs & Screenshots

https://docs.openwebui.com/getting-started/env-configuration#onedrive

Additional Information

Love the app! Just need that functionnality to be able to import OneDrive / SharePoint data. Keep up the good work! :)

christopherquenneville avatar May 15 '25 08:05 christopherquenneville