mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
feat: User Permission Toggle for RAG Document Access #440
Reference in New Issue
Block a user
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 @silentoplayz on GitHub (Mar 8, 2024).
Is your feature request related to a problem? Please describe.
Yes, the current options for user account permissions in the
Userstab of theAdmin Settingsin theAdmin Panelare lacking. Specifically, while users can call upon admin uploaded documents and ask questions about them in the context of Retrieval-Augmented Generation (RAG), there is no user permission toggle to control access to these documents for the RAG feature on user accounts. This could pose a potential security risk to unaware admins about this potential leakage of their vital information.Describe the solution you'd like
I would like a user permission toggle for admin uploaded document access within the
Userstab of theAdmin Settingsin theAdmin Panel. This will allow admins to better control and secure their uploaded documents from potential leakage or unauthorized access.Describe alternatives you've considered
N/A
Additional context
Adding this feature will provide consistency in managing user permissions across core features of Open WebUI. Additionally, it will improve the security of admin uploaded documents and provide admins with more control over their information.
Benefits
Implementation
Userstab of theAdmin Settingsin theAdmin Panel.Allow RAG Document Access.@silentoplayz commented on GitHub (Apr 4, 2024):
Alternative Solution(s)
Two potential solutions to consider are:
For example, a new "Access Level" field could be added to the document metadata with the following options:
Admins could then set the Access Level field for each document as they upload it, allowing them to restrict access to documents as needed.
Implementation
Alternative 1
Alternative 2
These alternative solutions would provide the following benefits:
@wenzel-felix commented on GitHub (Apr 11, 2024):
Hi, maybe another idea in addition to @Silentoplayz proposed solutions:
Alternative 3:
Benefits:
@silentoplayz commented on GitHub (Apr 11, 2024):
Alternative 4
Introduce a document access approval system that triggers a notification to the document owner(s) or an assigned delegate when a user requests access to their documents within RAG.
Features:
Benefits:
I'm all ears for more alternative solutions and even a combination of proposed features already. Let's keep this issue open and lively, shall we?
@silentoplayz commented on GitHub (Apr 11, 2024):
Because why stop there?
Alternative 5: Combined Document Access Control System (This should be a new issue at this point, lol)
Description: This solution combines together and refines the best aspects of the previous proposed alternatives and solutions in order to provide a comprehensive and user-oriented document management system that addresses access control, security, and user convenience.
Components:
1. Document Access Control
2. Workspaces
3. Document Access Approval System
4. Private Document Sharing
Benefits:
Implementation:
This combined solution offers improved security, flexibility, and user convenience, as well as decentralization of document management, accountability, and scalability.
TL;DR: The proposed solution is a comprehensive document management system that combines various aspects to address access control, security, and user convenience. It includes document access control with three levels (Public, Approval Required, and Confidential), workspaces for secure sharing, a document approval system for notifications, private document sharing, and a lock/unlock icon in the Documents tab. This system offers improved security, flexibility, decentralization, accountability, scalability, and user convenience. Implementation involves adding an Access Level field to documents, creating workspaces within the UI, developing a notification system, integrating approval expiration and revocation features, and implementing private document sharing with a lock/unlock icon in the Documents tab.
@jacobsamo commented on GitHub (Apr 28, 2024):
Adding to this I would like to include some possible mockups of the UI.
Admin configuration
As suggested by @Silentoplayz earilier, the ability to toggle on or off RAG for users


Which would show the documents tab in sidebar, looking something like this:
Documents page, adding documents, securing documents
The change of access control in adding of doucuments may look something like this:

I have added an extra type which is
Privatewhich would allow users to share specific documents with users or just leave it as their own giving the ability to share if you chooseNotes
Excaildraw documents for those interested: https://excalidraw.com/#json=NXy7y5Tots5SZzegjjsmJ,J-7YC24eiRVPaDVc-37ggQ
I will continue to update this comment with more mock ups as i go, as I haven't covered all possible changes just yet. Please share any thoughts or possible changes
@tjbck commented on GitHub (Jun 8, 2024):
Closing in favour of https://github.com/open-webui/open-webui/issues/2924