Originally created by @infra823 on GitHub (Jun 17, 2025).
Check Existing Issues
I have searched the existing issues and discussions.
Problem Description
Hi,
We deploy standardized Open-webui instances with centralized authentication via an Oauth provider. The initial post-install login being promoted to admin results in regular users being granted admin permissions on the instance, which is not something we want.
Desired Solution you'd like
Provide a way to disable first login promotion to admin.
Alternatives Considered
Systematically disable admin promotion only for Oauth users by default (promote only for local login if enabled)
Additional Context
No response
Originally created by @infra823 on GitHub (Jun 17, 2025).
### Check Existing Issues
- [x] I have searched the existing issues and discussions.
### Problem Description
Hi,
We deploy standardized Open-webui instances with centralized authentication via an Oauth provider. The initial post-install login being promoted to admin results in regular users being granted admin permissions on the instance, which is not something we want.
### Desired Solution you'd like
Provide a way to disable first login promotion to admin.
### Alternatives Considered
Systematically disable admin promotion only for Oauth users by default (promote only for local login if enabled)
### Additional Context
_No response_
the first admin is always the primary admin or also super admin.
if you already automate your deployment, what would speak against adapting your automation to always create an initial super-admin user?
For Open WebUI, it would go against core principles to allow the first user to not be an admin.
For you it would be a modification to a script
@Classic298 commented on GitHub (Jun 17, 2025):
the first admin is always the primary admin or also super admin.
if you already automate your deployment, what would speak against adapting your automation to always create an initial super-admin user?
For Open WebUI, it would go against core principles to allow the first user to not be an admin.
For you it would be a modification to a script
How would we do this ?
We have requirements to not create local accounts (hence why we only enable oauth), and going through the whole oauth process via script would not be trivial (and might not even be an option where MFA is used for auth).
@infra823 commented on GitHub (Jun 18, 2025):
How would we do this ?
We have requirements to not create local accounts (hence why we only enable oauth), and going through the whole oauth process via script would not be trivial (and might not even be an option where MFA is used for auth).
By logging in via OAUTH you are creating local accounts though!
You can create an initial admin account before enabling oauth, then enable oauth.
And that initial admin has randomly generated password and email making it unusable.
@Classic298 commented on GitHub (Jun 18, 2025):
By logging in via OAUTH you are creating local accounts though!
You can create an initial admin account before enabling oauth, then enable oauth.
And that initial admin has randomly generated password and email making it unusable.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @infra823 on GitHub (Jun 17, 2025).
Check Existing Issues
Problem Description
Hi,
We deploy standardized Open-webui instances with centralized authentication via an Oauth provider. The initial post-install login being promoted to admin results in regular users being granted admin permissions on the instance, which is not something we want.
Desired Solution you'd like
Provide a way to disable first login promotion to admin.
Alternatives Considered
Systematically disable admin promotion only for Oauth users by default (promote only for local login if enabled)
Additional Context
No response
@Classic298 commented on GitHub (Jun 17, 2025):
the first admin is always the primary admin or also super admin.
if you already automate your deployment, what would speak against adapting your automation to always create an initial super-admin user?
For Open WebUI, it would go against core principles to allow the first user to not be an admin.
For you it would be a modification to a script
@infra823 commented on GitHub (Jun 18, 2025):
How would we do this ?
We have requirements to not create local accounts (hence why we only enable oauth), and going through the whole oauth process via script would not be trivial (and might not even be an option where MFA is used for auth).
@Classic298 commented on GitHub (Jun 18, 2025):
By logging in via OAUTH you are creating local accounts though!
You can create an initial admin account before enabling oauth, then enable oauth.
And that initial admin has randomly generated password and email making it unusable.