mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[GH-ISSUE #12086] feat: Add get user api key endpoint for admins #55132
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 @shohamyamin on GitHub (Mar 26, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/12086
Check Existing Issues
Problem Description
In scenarios where an application uses Open WebUI as a gateway to manage user access, there is a need for the application to access Open WebUI on behalf of specific users. Currently, there may be a gap in functionality, as there is no apparent method for an admin user to retrieve a user's API key via the Open WebUI API. This limitation can hinder seamless application integration and prevent smooth delegation of access on behalf of users.
Desired Solution you'd like
Introduce a feature in the Open WebUI API that allows an admin user to retrieve a specific user's API key. This functionality would enable the application to act on behalf of the user by using their API key to access Open WebUI. The solution should include appropriate security measures, such as:
This enhancement would streamline integrations and improve the flexibility of applications interacting with Open WebUI on behalf of users.
Alternatives Considered
No response
Additional Context
No response
@tjbck commented on GitHub (Mar 27, 2025):
You can do this via python scripts.