[GH-ISSUE #12500] feat: Have a separate setting for admin contact #71229

Closed
opened 2026-05-13 03:11:37 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @Davixk on GitHub (Apr 6, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12500

Check Existing Issues

  • I have searched the existing issues and discussions.

Problem Description

Currently, when the option to Show Admin Details in Account Pending Overlay is enabled, it will use the first User in the db table.
This is also why the view for /api/v1/users/update/role has a condition that directly disallows changing the role of the first User in the db table.
This isn't desirable because people might create other users and want to show those as contact info instead.

Desired Solution you'd like

Create an additional field for the User model (or otherwise store this flag) for whether this is the Contact Info user.

Alternatives Considered

Alternative could be to change the info (email + name) for that User, but if you've been using it and have lots of data there, then this is definitely not ideal, as changing things like the name will affect your prompting and experience if you have references to User name in the prompt.

Additional Context

I'll try to draft a PR for this.

Originally created by @Davixk on GitHub (Apr 6, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/12500 ### Check Existing Issues - [x] I have searched the existing issues and discussions. ### Problem Description Currently, when the option to `Show Admin Details in Account Pending Overlay` is enabled, it will use the first User in the db table. This is also why the view for `/api/v1/users/update/role` has a condition that directly disallows changing the role of the first User in the db table. This isn't desirable because people might create other users and want to show those as contact info instead. ### Desired Solution you'd like Create an additional field for the User model (or otherwise store this flag) for whether this is the Contact Info user. ### Alternatives Considered Alternative could be to change the info (email + name) for that User, but if you've been using it and have lots of data there, then this is definitely not ideal, as changing things like the name will affect your prompting and experience if you have references to User name in the prompt. ### Additional Context I'll try to draft a PR for this.
Author
Owner

@Davixk commented on GitHub (Apr 6, 2025):

It would seem that this is decided by config.ADMIN_EMAIL and can be set via environment variables.

Then the feature request would be to expose editing the default admin via the settings page. A dropdown menu to pick which user to use would be great.

<!-- gh-comment-id:2781178249 --> @Davixk commented on GitHub (Apr 6, 2025): It would seem that this is decided by config.ADMIN_EMAIL and can be set via environment variables. Then the feature request would be to expose editing the default admin via the settings page. A dropdown menu to pick which user to use would be great.
Author
Owner

@vaclcer commented on GitHub (Sep 29, 2025):

That actually is not a terrible idea.. I did by accident deleted the first user (🥲) and then was troubleshooting what is going on... Thanks for the hint!

It might also happen that there is a need to change the admin from time to time.

<!-- gh-comment-id:3346766981 --> @vaclcer commented on GitHub (Sep 29, 2025): That actually is not a terrible idea.. I did by accident deleted the first user (🥲) and then was troubleshooting what is going on... Thanks for the hint! It might also happen that there is a need to change the admin from time to time.
Author
Owner

@Classic298 commented on GitHub (Dec 30, 2025):

fixed by https://github.com/open-webui/open-webui/pull/20260

<!-- gh-comment-id:3699332924 --> @Classic298 commented on GitHub (Dec 30, 2025): fixed by https://github.com/open-webui/open-webui/pull/20260
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#71229