mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #17144] issue: Adding users to a group via the intended API endpoint does not work #33713
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?
Originally created by @DirkRemmers on GitHub (Sep 2, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/17144
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.22
Ollama Version (if applicable)
No response
Operating System
Debian
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When using the following API endpoint:
POST /api/v1/groups/id/{group_id}/users/add, the user that is specified in thedatashould be added to the group.Actual Behavior
Instead, when I use the following api endpoint:
POST /api/v1/groups/id/{group_id}/users/add, the user that is specified in thedatais not added to the group.Steps to Reproduce
To reproduce:
GET/api/v1/users/) and get the id (user_id)GET /api/v1/groups/) and get the id (group_id)POST /api/v1/groups/id/{group_id}/users/addwithdata = {"user_ids"=[user_id]})GET /api/v1/groups/id/{group_id}) and see that the user is not addedLogs & Screenshots
Additional Information
I don't believe this is the intended behaviour, so I guess this should be fixed?
For anyone experiencing an issue here as well, there is method that does work. Instead of using the dedicated endpoint (
POST /api/v1/groups/id/{group_id}/users/add), you can instead use the/api/v1/groups/id/{group_id}/update"endpoint. In here, you can add the user_id to the existing users_ids of the group, and pass that to thedatarequired to update the group.WARNING: you have to define ALL users with this method, since it will use
data["user_ids"]as the new "source of truth"Cheers,
Dirk
@tjbck commented on GitHub (Sep 2, 2025):
0.6.22 is not the latest version.
@DirkRemmers commented on GitHub (Sep 3, 2025):
Ah appologies for this one! Thanks for the quick response!