mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #16635] issue: OAUTH_GROUPS_CLAIM isn't read correctly #56653
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 @antondelgado123 on GitHub (Aug 14, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/16635
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.6.22
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
I have have configured Keycloak as my OAUTH identity provider (works as per the guide) and would like to also enable automatic group creation. Per the following settings, my Keycloak Token contains the relevant groups under "roles" (company specific config).
value: "true"
value: "true"
value: "roles"
When running OI with the above config, I expect on the login of a non-admin user groups to be automatically created.
Actual Behavior
Groups are not automatically created
Steps to Reproduce
The reason for this behaviour is very simple - the os.environ.get call for this config has a typo.
extract from
config.py.Logs & Screenshots
N/A
Additional Information
No response
@tjbck commented on GitHub (Aug 14, 2025):
Addressed with
daa4b3284f@antondelgado123 commented on GitHub (Aug 14, 2025):
Thanks @tjbck , I actually wanted to use this as an opportunity to raise a simple PR in the repo. No worries, I'll raise another a more complex one tomorrow.