[GH-ISSUE #6119] Cannot change role for first admin #14248

Closed
opened 2026-04-19 20:40:17 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @sebastianlau on GitHub (Oct 11, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6119

Bug Report

Installation Method

Docker

Environment

  • Open WebUI Version: v0.3.32

  • Operating System: Ubuntu 20.04.03

Confirmation:

  • I have read and followed all the instructions provided in the README.md.
  • I am on the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below.

Expected Behavior:

Role switches between Pending/User/Admin

Actual Behavior:

Role remains the same, error "The requested action has been restricted as a security measure." is presented.

Description

Bug Summary:
The role of the first [admin] account on the system cannot be changed (as an aside that means it can also not be deleted); regardless of whether another admin account exists.

Reproduction Details

Steps to Reproduce:

  1. If new instance, register first admin user and log in; else, just log in as first admin user
  2. Create another admin user
  3. Log in as second admin user
  4. Attempt to change first admin users role

Notes

I'd expect this behaviour to be valid only if a single admin user was present

Originally created by @sebastianlau on GitHub (Oct 11, 2024). Original GitHub issue: https://github.com/open-webui/open-webui/issues/6119 # Bug Report ## Installation Method Docker ## Environment - **Open WebUI Version:** v0.3.32 - **Operating System:** Ubuntu 20.04.03 **Confirmation:** - [x] I have read and followed all the instructions provided in the README.md. - [x] I am on the latest version of both Open WebUI and Ollama. - [ ] I have included the browser console logs. - [ ] I have included the Docker container logs. - [x] I have provided the exact steps to reproduce the bug in the "Steps to Reproduce" section below. ## Expected Behavior: Role switches between Pending/User/Admin ## Actual Behavior: Role remains the same, error "The requested action has been restricted as a security measure." is presented. ## Description **Bug Summary:** The role of the first [admin] account on the system cannot be changed (as an aside that means it can also not be deleted); regardless of whether another admin account exists. ## Reproduction Details **Steps to Reproduce:** 1. If new instance, register first admin user and log in; else, just log in as first admin user 2. Create another admin user 3. Log in as second admin user 4. Attempt to change first admin users role ## Notes I'd expect this behaviour to be valid only if a single admin user was present
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#14248