[GH-ISSUE #21603] feat: change primary admin #74136

Closed
opened 2026-05-13 06:49:16 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @realhuseyn on GitHub (Feb 19, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21603

Check Existing Issues

  • I have searched for all existing open AND closed issues and discussions for similar requests. I have found none that is comparable to my request.

Verify Feature Scope

  • I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions.

Problem Description

Hello. I want to change the primary admin user to another admin. But we cannot do it. I got that error: "Could not verify primary admin status"

Desired Solution you'd like

We can change the primary admin

Alternatives Considered

No response

Additional Context

No response

Originally created by @realhuseyn on GitHub (Feb 19, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/21603 ### Check Existing Issues - [x] I have searched for all existing **open AND closed** issues and discussions for similar requests. I have found none that is comparable to my request. ### Verify Feature Scope - [x] I have read through and understood the scope definition for feature requests in the Issues section. I believe my feature request meets the definition and belongs in the Issues section instead of the Discussions. ### Problem Description Hello. I want to change the primary admin user to another admin. But we cannot do it. I got that error: "Could not verify primary admin status" ### Desired Solution you'd like We can change the primary admin ### Alternatives Considered _No response_ ### Additional Context _No response_
Author
Owner

@Classic298 commented on GitHub (Feb 19, 2026):

Needs modification in database for now - the error is intended. Admins cannot edit the primary admin

<!-- gh-comment-id:3927725522 --> @Classic298 commented on GitHub (Feb 19, 2026): Needs modification in database for now - the error is intended. Admins cannot edit the primary admin
Author
Owner

@realhuseyn commented on GitHub (Feb 19, 2026):

@Classic298 understood. Could you share SQL commands to modify it?

<!-- gh-comment-id:3927899469 --> @realhuseyn commented on GitHub (Feb 19, 2026): @Classic298 understood. Could you share SQL commands to modify it?
Author
Owner

@Classic298 commented on GitHub (Feb 19, 2026):

I dont have them at hand right now, but essentially what you have to do is: modify the account creation date of the account you want to become the new primary admin to be 1 second before the other account

In other words: the new primary admin has to be 1 second OLDER than the previous primary admin.

The account age - aka the first user to exist in the database - is always primary admin

I am sure AI can help you figure out the simple SQL command for modifying the account creation date.
Tables are documented on the docs also

<!-- gh-comment-id:3928058151 --> @Classic298 commented on GitHub (Feb 19, 2026): I dont have them at hand right now, but essentially what you have to do is: modify the account creation date of the account you want to become the new primary admin to be 1 second before the other account In other words: the new primary admin has to be 1 second OLDER than the previous primary admin. The account age - aka the first user to exist in the database - is always primary admin I am sure AI can help you figure out the simple SQL command for modifying the account creation date. Tables are documented on the docs also
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#74136