mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[PR #16441] [MERGED] feat: Display assigned user groups in Admin Panel #24135
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/16441
Author: @athoik
Created: 8/10/2025
Status: ✅ Merged
Merged: 8/10/2025
Merged by: @tjbck
Base:
dev← Head:user_groups📝 Commits (1)
dc453effeat: Display assigned user groups in Admin Panel📊 Changes
3 files changed (+68 additions, -1 deletions)
View changed files
📝
backend/open_webui/routers/users.py(+10 -0)📝
src/lib/apis/users/index.ts(+27 -0)📝
src/lib/components/admin/Users/UserList/EditUserModal.svelte(+31 -1)📄 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:
devbranch.Changelog Entry
This PR adds the ability to view a user’s assigned groups in the Admin Panel when editing a user.
Description
This PR adds the ability to view a user’s assigned groups in the Admin Panel when editing a user.
Backend Changes:
Added a new endpoint:
GET /api/v1/users/{user_id}/groups
Frontend Changes:
Implemented getUserGroupsById API function to call the new backend endpoint, in lib/apis/users.
Result:
Admins can now see which groups a user belongs to directly from the edit user modal, improving visibility and reducing the need to navigate away for group membership checks.
Added
Breaking Changes
Additional Information
Related with https://github.com/open-webui/open-webui/discussions/16416
Screenshots or Videos
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.