mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #21465] issue: USER_EMAIL variable not working #35019
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 @HennieLP on GitHub (Feb 16, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21465
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.0 and v0.8.1 and v0.8.2
Ollama Version (if applicable)
No response
Operating System
Debian 13 / Ubuntu 24
Browser (if applicable)
Safari / Microsoft Edge
Confirmation
README.md.Expected Behavior
{{USER_EMAIL}} will return the email of the User
Actual Behavior
{{USER_EMAIL}} returns unknown
Steps to Reproduce
Create a model with the system promt Email: {{USER_EMAIL}} an ask the model, "What's my email?" or look in the API call
Logs & Screenshots
Additional Information
We are using OAuth, so maybe that could be the problem, but under admin settings the email is listed. I already wrote in #20881 but because this is a more complex problem, I moved it to its own issue.
I already tried it in 2 completely different environments. And with local user and OAuth user
@Classic298 commented on GitHub (Feb 16, 2026):
works for me, cannot reproduce here.
Need more steps to reproduce or setup details.
Does your account have an email address?
Obviously it gets replaced by "Unknown" which in the .ts code is the fallback for if the email could not be retrieved.
@HennieLP commented on GitHub (Feb 16, 2026):
Yes, both users have an email adress
Docker Compose:
@HennieLP commented on GitHub (Feb 16, 2026):
@Classic298 commented on GitHub (Feb 16, 2026):
Ok. I will test models.
Can you test if it works for prompts for you (for me, it works for prompts)
Will report back later
@Classic298 commented on GitHub (Feb 16, 2026):
Ok yeah for models i can reproduce. Very interesting. Only model system prompt seems to be affected
@Classic298 commented on GitHub (Feb 16, 2026):
https://github.com/open-webui/open-webui/pull/21479