Skip to content

issue: USER_EMAIL variable not working #21465

@HennieLP

Description

@HennieLP

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

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

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

{{USER_EMAIL}} will return the email of the User

Actual Behavior

{{USER_EMAIL}} returns unknown

Image

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

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions