[PR #9163] [MERGED] Bug fix, configurable default if using oauth via the DEFAULT_USER_ROLE env variable #61183

Closed
opened 2026-05-06 04:34:17 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/9163
Author: @rragundez
Created: 1/31/2025
Status: Merged
Merged: 1/31/2025
Merged by: @tjbck

Base: devHead: default-role


📝 Commits (2)

  • 681851c Configurable default role for oauth
  • 1f2b5fa move comment to top

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 backend/open_webui/utils/oauth.py (+2 -1)

📄 Description

TBh I think this is a straight forward one @tjbck

For some reason currently the default role behaviour is different if using the OAuth roles. This PR addresses that, it changes the hardcoded default role for the one available for the user to set via environment variables. If the user does not set the default role via the environment variables then it will default to the same behaviour as before.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/9163 **Author:** [@rragundez](https://github.com/rragundez) **Created:** 1/31/2025 **Status:** ✅ Merged **Merged:** 1/31/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `default-role` --- ### 📝 Commits (2) - [`681851c`](https://github.com/open-webui/open-webui/commit/681851ca6b8d5ed3226f0ce8a4f0ac390790188c) Configurable default role for oauth - [`1f2b5fa`](https://github.com/open-webui/open-webui/commit/1f2b5fa68fc55c58e3a50dad42f2f0d7312f64b7) move comment to top ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `backend/open_webui/utils/oauth.py` (+2 -1) </details> ### 📄 Description TBh I think this is a straight forward one @tjbck For some reason currently the default role behaviour is different if using the OAuth roles. This PR addresses that, it changes the hardcoded default role for the one available for the user to set via environment variables. If the user does not set the default role via the environment variables then it will default to the same behaviour as before. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-05-06 04:34:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#61183