mirror of
https://github.com/open-webui/oikb.git
synced 2026-11-05 01:27:25 +00:00
[GH-ISSUE #54] Sharepoint Subsite access #36
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
open-webui/oikb#36
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Sinclairos1 on GitHub (Jun 15, 2026).
Original GitHub issue: https://github.com/open-webui/oikb/issues/54
I'm encountering an issue where OIKB cannot enumerate libraries from SharePoint subsites, despite the app having valid credentials and permissions.
What works:
My Azure app successfully authenticates with OIKB and can access the root SharePoint site. I've confirmed this by testing Microsoft Graph API directly with the app credentials, which successfully returns:
Access tokens (HTTP 200 OK)
Helper site metadata
The Documents library exists in the Helper subsite
The full drive information for the Documents library, including drive ID and metadata
OIKB currently works fine enumerating root site libraries (AITesting and Drop Off Library are found and listed correctly).
The issue
When I configure OIKB to sync from the Helper subsite, it fails to enumerate any libraries there. Instead, it only lists the root site libraries. URL (https://[TENANT].sharepoint.com/sites/Helper/Documents/Forms/AllItems.aspx)
I've tried multiple path formats:
All return the same error that looks like this:
AITesting and Drop Off Library are Documents libraries in the root site.
Config
My OIKB environment variables are set correctly:
SHAREPOINT_TENANT_ID
SHAREPOINT_CLIENT_ID
SHAREPOINT_CLIENT_SECRET
My Azure app has the Sites.Read.All permission granted with admin consent. My .oikb.yaml file also follows the official guide format.
LOGS:
Thank you very much for working on this project, it's an incredibly useful tool!
@DantesVault commented on GitHub (Jun 16, 2026):
Sorry I’m a little confused by your question. Are you trying to sync docs from a document library within the Helpers site?
@Sinclairos1 commented on GitHub (Jun 16, 2026):
The issue lay with the parser in sharepoint.py, Before it was:
which comes produces [TENANT].sharepoint.com which graph interprets as /sites/l[TENANT].sharepoint.com.
I've since written this to fix the parse:
Which has now resolved my issue