open-webui/backend/open_webui/routers
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
..
audio.py Update audio.py Fix Format error 2025-07-23 08:49:00 +02:00
auths.py refac: oidc provider url validation 2025-08-09 00:15:19 +04:00
channels.py refac/fix: channel messages 2025-07-20 15:17:17 +04:00
chats.py fix: cloned chat metadata not taken into consideration 2025-08-05 16:21:03 -04:00
configs.py chore: format 2025-08-06 14:27:58 +04:00
evaluations.py ci fix 2025-07-21 22:17:08 +03:00
files.py added handler for deleting files from vdb upon files deletion 2025-07-18 18:40:29 +03:00
folders.py refac 2025-08-10 01:44:33 +04:00
functions.py refac 2025-07-28 11:31:06 +04:00
groups.py
images.py
knowledge.py feat: ENABLE_ADMIN_WORKSPACE_CONTENT_ACCESS 2025-08-06 01:44:52 +04:00
memories.py refac: memory handling 2025-07-20 15:00:24 +04:00
models.py feat: ENABLE_ADMIN_WORKSPACE_CONTENT_ACCESS 2025-08-06 01:44:52 +04:00
notes.py
ollama.py
openai.py chore: format 2025-08-09 02:05:07 +04:00
pipelines.py
prompts.py feat: ENABLE_ADMIN_WORKSPACE_CONTENT_ACCESS 2025-08-06 01:44:52 +04:00
retrieval.py refac/fix: serply 2025-08-09 00:37:37 +04:00
scim.py refac 2025-08-06 14:27:07 +04:00
tasks.py
tools.py feat: ENABLE_ADMIN_WORKSPACE_CONTENT_ACCESS 2025-08-06 01:44:52 +04:00
users.py feat: Display assigned user groups in Admin Panel 2025-08-10 14:49:01 +03:00
utils.py