open-webui/backend/open_webui
Athanasios Oikonomou dc453efa5c feat: Display assigned user groups in Admin Panel
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

        Returns the list of groups assigned to a specific user.
        Requires admin privileges.

Frontend Changes:
    Implemented getUserGroupsById API function to call the new backend endpoint, in lib/apis/users.

    Updated EditUserModal.svelte to:
        Load user groups asynchronously when the modal is opened.
        Display the groups inline in the form before the Save button.
        Show a loading state while fetching, and a “No groups assigned” message if none exist.

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.
2025-08-10 14:49:01 +03:00
..
data refac: mv backend files to /open_webui dir 2024-09-04 16:54:48 +02:00
internal refac 2025-08-10 00:02:58 +04:00
migrations chore: format 2025-08-09 23:57:35 +04:00
models enh: folder filter 2025-08-10 02:10:18 +04:00
retrieval chore: format 2025-08-09 23:57:35 +04:00
routers feat: Display assigned user groups in Admin Panel 2025-08-10 14:49:01 +03:00
socket enh/refac: redis cluster support 2025-08-04 14:15:08 +04:00
static refac 2025-08-10 00:02:58 +04:00
storage Fix S3 allowed characters in Tags. 2025-05-23 11:09:40 +02:00
test chore: format, lint 2025-07-16 15:23:18 +09:00
utils Fix audit get_current_user 2025-08-10 02:10:00 +02:00
__init__.py Update __init__.py 2025-04-15 09:55:35 +02:00
alembic.ini dev5 2024-09-04 17:33:39 +02:00
config.py qdrant client improvements 2025-08-09 21:12:30 +03:00
constants.py feat: follow ups 2025-06-03 18:07:29 +04:00
env.py refac 2025-08-10 13:49:28 +04:00
functions.py refac: reserved __user__ param format 2025-06-04 15:53:07 +04:00
main.py fix: undefined model_id issue 2025-08-10 13:48:12 +04:00
tasks.py implement redis_key_prefix env support in all areas invoking redis to allow for clustermode compatibility with new docs function 2025-07-22 13:40:29 -04:00