This PR introduces a new feature that allows administrators to clone user groups.
A new modal has been added to the group management interface, which allows the user to specify a name for the new group and choose whether to clone the group's members and settings.
The implementation includes:
A new backend API endpoint for cloning groups.
A new Svelte component for the cloning modal.
Updates to the group list UI to include a "Clone" option.
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/17844
**Author:** [@Classic298](https://github.com/Classic298)
**Created:** 9/28/2025
**Status:** ❌ Closed
**Base:** `dev` ← **Head:** `group-cloning-feature`
---
### 📝 Commits (10+)
- [`cafe748`](https://github.com/open-webui/open-webui/commit/cafe748b1b932a85773c5a2507cd5de7228202ac) feat(groups): Clone default group permissions for new groups
- [`9d9bdcd`](https://github.com/open-webui/open-webui/commit/9d9bdcd54b7277bc20d6c908eafae99bad4cf71f) feat: Add group cloning functionality
- [`0210c3d`](https://github.com/open-webui/open-webui/commit/0210c3d25ff0aa4d7d52b80e685546595ab01dc5) Update CloneGroupModal.svelte
- [`0026934`](https://github.com/open-webui/open-webui/commit/0026934d46b00a093faa5d6f634ee970726574c6) Update Duplicate.svelte
- [`ce48dcb`](https://github.com/open-webui/open-webui/commit/ce48dcb0ce4ee7d6b404368bd6a32860e3143962) Update GroupItem.svelte
- [`effeba1`](https://github.com/open-webui/open-webui/commit/effeba1cd3337a300849bf323b3317db32ebad64) Update Duplicate.svelte
- [`570c78a`](https://github.com/open-webui/open-webui/commit/570c78adaa6e4bf4e90b1e81d45b32d6c128b159) Update CloneGroupModal.svelte
- [`cbd1805`](https://github.com/open-webui/open-webui/commit/cbd1805d3dedff63b0d0a20693c7520f2392b9b7) Update Duplicate.svelte
- [`66e2a13`](https://github.com/open-webui/open-webui/commit/66e2a139e7e3646d76d7b930aa9e292d0f50a261) Update Duplicate.svelte
- [`74c193a`](https://github.com/open-webui/open-webui/commit/74c193a42230fb60c9091e70e27ab9cf564ad412) Update Duplicate.svelte
### 📊 Changes
**9 files changed** (+357 additions, -143 deletions)
<details>
<summary>View changed files</summary>
📝 `backend/open_webui/models/groups.py` (+44 -0)
📝 `backend/open_webui/routers/groups.py` (+35 -0)
📝 `src/lib/apis/groups/index.ts` (+31 -0)
📝 `src/lib/components/admin/Users/Groups.svelte` (+12 -7)
➖ `src/lib/components/admin/Users/Groups/AddGroupModal.svelte` (+0 -116)
➕ `src/lib/components/admin/Users/Groups/CloneGroupModal.svelte` (+133 -0)
📝 `src/lib/components/admin/Users/Groups/GroupItem.svelte` (+88 -20)
➕ `src/lib/components/icons/Duplicate.svelte` (+13 -0)
📝 `src/lib/i18n/locales/en-US/translation.json` (+1 -0)
</details>
### 📄 Description
This PR introduces a new feature that allows administrators to clone user groups.
A new modal has been added to the group management interface, which allows the user to specify a name for the new group and choose whether to clone the group's members and settings.
The implementation includes:
- A new backend API endpoint for cloning groups.
- A new Svelte component for the cloning modal.
- Updates to the group list UI to include a "Clone" option.
- Internationalization for new UI strings.
**DEPENDENT ON #17843 !!!!!**
### Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/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>
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.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/17844
Author: @Classic298
Created: 9/28/2025
Status: ❌ Closed
Base:
dev← Head:group-cloning-feature📝 Commits (10+)
cafe748feat(groups): Clone default group permissions for new groups9d9bdcdfeat: Add group cloning functionality0210c3dUpdate CloneGroupModal.svelte0026934Update Duplicate.sveltece48dcbUpdate GroupItem.svelteeffeba1Update Duplicate.svelte570c78aUpdate CloneGroupModal.sveltecbd1805Update Duplicate.svelte66e2a13Update Duplicate.svelte74c193aUpdate Duplicate.svelte📊 Changes
9 files changed (+357 additions, -143 deletions)
View changed files
📝
backend/open_webui/models/groups.py(+44 -0)📝
backend/open_webui/routers/groups.py(+35 -0)📝
src/lib/apis/groups/index.ts(+31 -0)📝
src/lib/components/admin/Users/Groups.svelte(+12 -7)➖
src/lib/components/admin/Users/Groups/AddGroupModal.svelte(+0 -116)➕
src/lib/components/admin/Users/Groups/CloneGroupModal.svelte(+133 -0)📝
src/lib/components/admin/Users/Groups/GroupItem.svelte(+88 -20)➕
src/lib/components/icons/Duplicate.svelte(+13 -0)📝
src/lib/i18n/locales/en-US/translation.json(+1 -0)📄 Description
This PR introduces a new feature that allows administrators to clone user groups.
A new modal has been added to the group management interface, which allows the user to specify a name for the new group and choose whether to clone the group's members and settings.
The implementation includes:
DEPENDENT ON #17843 !!!!!
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.