[PR #17842] [CLOSED] feat: Add default group assignment for new users #63426

Closed
opened 2026-05-06 08:10:42 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/17842
Author: @Classic298
Created: 9/28/2025
Status: Closed

Base: devHead: feature/default-group-assignment


📝 Commits (10+)

📊 Changes

5 files changed (+65 additions, -2 deletions)

View changed files

📝 backend/open_webui/config.py (+6 -0)
📝 backend/open_webui/main.py (+2 -0)
📝 backend/open_webui/models/groups.py (+25 -0)
📝 backend/open_webui/routers/auths.py (+11 -2)
📝 src/lib/components/admin/Settings/General.svelte (+21 -0)

📄 Description

This feature allows administrators to configure a default group that new users are automatically added to upon registration.

  • Adds a 'Default Group' dropdown in the admin settings underneath the default role setting.
  • Updates the user creation logic to assign the selected default group.
  • Includes necessary backend API and database model changes.

This is useful for companies and setups where models are kept on private by default and those models are assigned on a group basis - this way, newly registered users can have access to a limited set of models or tools for example and can later be added to more groups.

Otherwise, model-based access based on groups is tideous and painstaking

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.


🔄 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/17842 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 9/28/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `feature/default-group-assignment` --- ### 📝 Commits (10+) - [`ba07f8e`](https://github.com/open-webui/open-webui/commit/ba07f8ea799da748bd1c0ed002b19c96cf7ab58e) feat: Add default group assignment for new users - [`387aea3`](https://github.com/open-webui/open-webui/commit/387aea32885abe21deee88c0b40a9d4882725715) Update auths.py - [`28f79ce`](https://github.com/open-webui/open-webui/commit/28f79cece4f7bb89ad29f07853c87823ea33794b) Update auths.py - [`ccba90b`](https://github.com/open-webui/open-webui/commit/ccba90bc1affe69121d802443b40df44258526c1) Update config.py - [`bd11281`](https://github.com/open-webui/open-webui/commit/bd11281510b0e1208ea30c95774cb647bcc0b77b) Update auths.py - [`0cba578`](https://github.com/open-webui/open-webui/commit/0cba578d8c198e4e49a5b43b944391d6fb8d8774) Update main.py - [`e05dd74`](https://github.com/open-webui/open-webui/commit/e05dd74f962f030d9f746963abd294a38fde93ab) Update auths.py - [`e63892a`](https://github.com/open-webui/open-webui/commit/e63892a65a7526315629bcaaf383cf4fe77de911) Update auths.py - [`1fa2baa`](https://github.com/open-webui/open-webui/commit/1fa2baaafcb488dce88a61c8a74a68c06c9a4d5a) Update auths.py - [`5acd805`](https://github.com/open-webui/open-webui/commit/5acd805ef2e62fccdbe3252219ae49a94157cda7) Update main.py ### 📊 Changes **5 files changed** (+65 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/config.py` (+6 -0) 📝 `backend/open_webui/main.py` (+2 -0) 📝 `backend/open_webui/models/groups.py` (+25 -0) 📝 `backend/open_webui/routers/auths.py` (+11 -2) 📝 `src/lib/components/admin/Settings/General.svelte` (+21 -0) </details> ### 📄 Description This feature allows administrators to configure a default group that new users are automatically added to upon registration. - Adds a 'Default Group' dropdown in the admin settings underneath the default role setting. - Updates the user creation logic to assign the selected default group. - Includes necessary backend API and database model changes. This is useful for companies and setups where models are kept on private by default and those models are assigned on a group basis - this way, newly registered users can have access to a limited set of models or tools for example and can later be added to more groups. Otherwise, model-based access based on groups is tideous and painstaking ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <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-05-06 08:10:42 -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#63426