mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-25 04:24:30 -05:00
[PR #15746] [CLOSED] feat: Add admin workspace privacy control with ENABLE_ADMIN_USER_WORKSPACE_ACCESS environment variable #10731
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/15746
Author: @Classic298
Created: 7/15/2025
Status: ❌ Closed
Base:
dev← Head:RESPECT_USER_WORKSPACE_PRIVACY📝 Commits (9)
0d46efaAdmin workspace access private items (#14)0a75eb7Update config.py33ba367Update knowledge.py5895107Update models.pyffc14bbUpdate prompts.py724e97fUpdate tools.py2aba33bMerge branch 'open-webui:main' into RESPECT_USER_WORKSPACE_PRIVACY5fbfe2bMerge pull request #15879 from open-webui/dev47844f7Merge branch 'open-webui:main' into RESPECT_USER_WORKSPACE_PRIVACY📊 Changes
5 files changed (+35 additions, -15 deletions)
View changed files
📝
backend/open_webui/config.py(+6 -0)📝
backend/open_webui/routers/knowledge.py(+3 -3)📝
backend/open_webui/routers/models.py(+2 -2)📝
backend/open_webui/routers/prompts.py(+3 -2)📝
backend/open_webui/routers/tools.py(+21 -8)📄 Description
Pull Request Description
This pull request introduces a new environment variable
ENABLE_ADMIN_USER_WORKSPACE_ACCESSthat allows administrators to control admin workspace access privileges. When disabled, administrators are treated exactly like regular users and only see workspace items (knowledge bases, models, prompts, and tools) that they have explicit access to through the existing access control system.Key Features:
ENABLE_ADMIN_USER_WORKSPACE_ACCESSenvironment variable (defaults toTruefor backward compatibility)Use Cases:
How it works:
Instead of admins seeing everything by default, they now follow the same permission rules as regular users. If an admin needs access to a user's private content, that user must explicitly share it with the admin or add the admin to a group with appropriate permissions - just like sharing between any other users.
Checklist Status
devbranchfeat:prefix for new featureChangelog Entry
Description
Added
ENABLE_ADMIN_USER_WORKSPACE_ACCESSenvironment variable to enable admin workspace access control. When disabled, administrators follow the same access control rules as regular users for workspace items, requiring explicit permission grants to access user content.Addresses
Addresses these issues/discussions:
https://github.com/open-webui/open-webui/pull/14288
https://github.com/open-webui/open-webui/discussions/14968
https://github.com/open-webui/open-webui/discussions/14083
These can be closed if this is merged.
Related Docs PR
https://github.com/open-webui/docs/pull/625
Added
ENABLE_ADMIN_USER_WORKSPACE_ACCESSenvironment variable (defaults toTrue)Changed
Deprecated
Removed
Fixed
Security
Breaking Changes
Additional Information
Environment Variable Details:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.