mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-21 17:13:00 -05:00
[GH-ISSUE #13418] issue: When admin user is logged into via OAUTH, role is reset to user #87642
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 @Lutherwaves on GitHub (May 1, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/13418
Check Existing Issues
Installation Method
Other
Open WebUI Version
0.6.5
Ollama Version (if applicable)
No response
Operating System
Ubuntu 22.04
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
When admin user logs in via oAUTH, the user remains admin.
Actual Behavior
When a user with an email matching the email of the original Admin (first logged in user), the role of the admin is changed to user.
Steps to Reproduce
Logs & Screenshots
Recording of login via admin, then login with same user via Auth0 changing the role
https://github.com/user-attachments/assets/e0404853-4705-4a14-b7f3-14fa27cd65d4
Additional Information
@Lutherwaves commented on GitHub (May 1, 2025):
https://discord.com/channels/1170866489302188073/1367487568622649416/1367487568622649416
@Lutherwaves commented on GitHub (May 2, 2025):
Actually, this seems not to be a bug when using OAUTH. In order to avoid overwriting the admin (in case users overlap), proper RBAC needs to be setup using the respective OAUTH variables and setup on the OAUTH provider.
above ensures proper setup and this issue is no longer seen.
With that being said, there is no bug
@xkww3n commented on GitHub (Jun 5, 2025):
Hello, I'm also using Auth0 with Open WebUI and facing exactly the same issue. I've followed lots of guidance but still got my administrator account reset to normal user. May I know the actual
OAUTH_ROLES_CLAIMvariable and specific Auth0 configuration? My configuration is on Discord: https://discord.com/channels/1170866489302188073/1241654544639725609/threads/1373627876192157746