[PR #15885] [MERGED] feat: Add button (for admins) to export all users in DB as csv file #23972

Closed
opened 2026-04-20 05:09:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/15885
Author: @Classic298
Created: 7/20/2025
Status: Merged
Merged: 7/24/2025
Merged by: @tjbck

Base: devHead: admin_export_user_csv


📝 Commits (6)

📊 Changes

1 file changed (+50 additions, -0 deletions)

View changed files

📝 src/lib/components/admin/Settings/Database.svelte (+50 -0)

📄 Description

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Provide a concise description of the changes made in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests to validate the changes?
  • Code review: Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards?
  • Prefix: To clearly categorize this pull request, prefix the pull request title using one of the following:
    • feat: Introduces a new feature or enhancement to the codebase

Changelog Entry

Description

This discussion has raised the wish for such a feature: https://github.com/open-webui/open-webui/discussions/3640

This PR implements it

Added

  • Adds a button in the Admin Panel > Settings > Database, which, when clicked, exports all users from the database as a csv in the format of id,name,email,role

Changed

  • Removed / from dev.sh as the CORS_ALLOW_ORIGIN needs to be set without a slash at the end

Additional Information

PR was tested in my testing environment. Works as expected

Screenshots or Videos

image

Contributor License Agreement

By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/15885 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 7/20/2025 **Status:** ✅ Merged **Merged:** 7/24/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `admin_export_user_csv` --- ### 📝 Commits (6) - [`5fbfe2b`](https://github.com/open-webui/open-webui/commit/5fbfe2bdcadf5f157926f6551891e4dc0802b9f3) Merge pull request #15879 from open-webui/dev - [`0d1b06d`](https://github.com/open-webui/open-webui/commit/0d1b06d87c57e61faf1cc439e5b37a61e28ef1cc) Update Database.svelte - [`84f7a55`](https://github.com/open-webui/open-webui/commit/84f7a557533b057592e126b8b19cd0ff3a944bad) remove slash - [`74140ea`](https://github.com/open-webui/open-webui/commit/74140ea25170697427474eb205bb5aab70a7f4ea) Update Database.svelte - [`a2aa68c`](https://github.com/open-webui/open-webui/commit/a2aa68c84a142977c3437a730c62275d8a766b34) Update Database.svelte - [`3acd286`](https://github.com/open-webui/open-webui/commit/3acd286791c1c43fac3f375a83c365a5cf166abf) Merge branch 'dev' into admin_export_user_csv ### 📊 Changes **1 file changed** (+50 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/components/admin/Settings/Database.svelte` (+50 -0) </details> ### 📄 Description # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [X] **Target branch:** Please verify that the pull request targets the `dev` branch. - [X] **Description:** Provide a concise description of the changes made in this pull request. - [X] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [X] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [X] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [X] **Testing:** Have you written and run sufficient tests to validate the changes? - [X] **Code review:** Have you performed a self-review of your code, addressing any coding standard issues and ensuring adherence to the project's coding standards? - [X] **Prefix:** To clearly categorize this pull request, prefix the pull request title using one of the following: - **feat**: Introduces a new feature or enhancement to the codebase # Changelog Entry ### Description This discussion has raised the wish for such a feature: https://github.com/open-webui/open-webui/discussions/3640 This PR implements it ### Added - Adds a button in the Admin Panel > Settings > Database, which, when clicked, exports all users from the database as a csv in the format of `id,name,email,role` ### Changed - Removed `/` from dev.sh as the CORS_ALLOW_ORIGIN needs to be set without a slash at the end --- ### Additional Information PR was tested in my testing environment. Works as expected ### Screenshots or Videos <img width="649" height="572" alt="image" src="https://github.com/user-attachments/assets/d0dca042-f95f-4b37-b280-2614c0ddbd33" /> ### Contributor License Agreement By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 05:09:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#23972