mirror of
https://github.com/open-webui/open-webui.git
synced 2026-06-03 15:27:37 -05:00
[GH-ISSUE #21603] feat: change primary admin #74136
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 @realhuseyn on GitHub (Feb 19, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21603
Check Existing Issues
Verify Feature Scope
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
@Classic298 commented on GitHub (Feb 19, 2026):
Needs modification in database for now - the error is intended. Admins cannot edit the primary admin
@realhuseyn commented on GitHub (Feb 19, 2026):
@Classic298 understood. Could you share SQL commands to modify it?
@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