[PR #9114] [CLOSED] feat: add config to disable non oauth role mgmt #22320

Closed
opened 2026-04-20 04:04:18 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/9114
Author: @jeeteshchel
Created: 1/30/2025
Status: Closed

Base: devHead: fork-disable_non_oauth_role_mgmt


📝 Commits (1)

  • ab445a1 feat: add config to disable non oauth role mgmt

📊 Changes

4 files changed (+36 additions, -19 deletions)

View changed files

📝 backend/open_webui/config.py (+5 -0)
📝 backend/open_webui/main.py (+2 -1)
📝 backend/open_webui/routers/users.py (+9 -2)
📝 src/lib/components/admin/Users/UserList.svelte (+20 -16)

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for validating the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To clearly categorize this pull request, prefix the pull request title, using one of the following:
    • feat: Introduces a new feature or enhancement to the codebase

Changelog Entry

Description

  • This PR adds a configuration to allow disabling role management in the UI admin console when OAuth role management is enabled.
  • This ensures that role management is handled through a single channel, which is beneficial for enterprise environments where roles are typically managed via centralized directory services.

Related discussion https://github.com/open-webui/open-webui/discussions/7351

Added

  • A new configuration option to disable role management in the UI which comes into play only when OAuth role management is enabled.
  • UI changes to reflect the disabled state when this setting is active.

Changed

  • Updated the admin console UI to respect the new configuration setting.

Deprecated

  • N/A

Removed

  • N/A

Fixed

  • N/A

Security

  • Ensures role management is handled centrally, reducing the risk of inconsistent role assignments.

Breaking Changes

  • None

Additional Information

  • This change aligns with enterprise security best practices by enforcing a single source of truth for role management.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/9114 **Author:** [@jeeteshchel](https://github.com/jeeteshchel) **Created:** 1/30/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fork-disable_non_oauth_role_mgmt` --- ### 📝 Commits (1) - [`ab445a1`](https://github.com/open-webui/open-webui/commit/ab445a1e6b693963dbc36f7ef63509454d6cb1e2) feat: add config to disable non oauth role mgmt ### 📊 Changes **4 files changed** (+36 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+5 -0) 📝 `backend/open_webui/main.py` (+2 -1) 📝 `backend/open_webui/routers/users.py` (+9 -2) 📝 `src/lib/components/admin/Users/UserList.svelte` (+20 -16) </details> ### 📄 Description # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** Provide a concise description of the changes made in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [x] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [x] **Testing:** Have you written and run sufficient tests for validating the changes? - [x] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [x] **Prefix:** To clearly categorize this pull request, prefix the pull request title, using one of the following: - **feat**: Introduces a new feature or enhancement to the codebase --- # Changelog Entry ### Description - This PR adds a configuration to allow disabling role management in the UI admin console when OAuth role management is enabled. - This ensures that role management is handled through a single channel, which is beneficial for enterprise environments where roles are typically managed via centralized directory services. Related discussion https://github.com/open-webui/open-webui/discussions/7351 ### Added - A new configuration option to disable role management in the UI which comes into play only when OAuth role management is enabled. - UI changes to reflect the disabled state when this setting is active. ### Changed - Updated the admin console UI to respect the new configuration setting. ### Deprecated - N/A ### Removed - N/A ### Fixed - N/A ### Security - Ensures role management is handled centrally, reducing the risk of inconsistent role assignments. ### Breaking Changes - None --- ### Additional Information - This change aligns with enterprise security best practices by enforcing a single source of truth for role management. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 04:04:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#22320