# 我可以复制一个群组吗？

**URL:** https://meta.discourse.org/t/can-i-duplicate-a-group/330649
**Category:** Support
**Created:** [2024年十月13日 09:10 UTC](https://meta.discourse.org/t/can-i-duplicate-a-group/330649 "2024-10-13T09:10:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![ludwikc](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ludwikc/32/438823_2.png) [@ludwikc](https://meta.discourse.org/u/ludwikc)
#### Post date: [2024年十月13日 09:10 UTC](https://meta.discourse.org/t/can-i-duplicate-a-group/330649/1 "2024-10-13T09:10:59Z")

</div>

有办法复制一个组吗？

我创建了一个名为“Courses”的类别和名为“Course1”的子类别，因为最初我只有一个。现在，当我创建了“Course2”子类别并为其创建了相应的组（“SecondCourseGroup”）时，我想将所有最初有权访问“AllStudents”的用户添加到“FirstCourseGroup”组。

总结一下：  
当前设置：

| 类别 | 组访问权限 |
| --- | --- |
| Courses | AllStudents |
| - - Course1 | AllStudents |
| - - Course2 | SecondCourseGroup |
| CommonSpace | AllStudents |

预期结果：

| 类别 | 组访问权限 |
| --- | --- |
| Courses | AllStudents |
| - - Course1 | FirstCourseGroup |
| - - Course2 | SecondCourseGroup |
| CommonSpace | AllStudents |

如何将_所有_用户从_AllStudents_复制到_FirstCourseGroup_？

目前我只有 handful 的_SecondCourseGroup_成员，所以手动管理不是问题。

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [2024年十月13日 14:08 UTC](https://meta.discourse.org/t/can-i-duplicate-a-group/330649/2 "2024-10-13T14:08:23Z")

</div>

有一个现有的功能请求，但您可以使用 API 来填充组。

> [@How to clone a group](https://meta.discourse.org/t/how-to-clone-a-group/71656/2?u=lilly):
>
> If you need to do stuff like this I would recommend using the API now, there is no permission clone feature built in atm.

> **[Discourse API Docs](https://docs.discourse.org/#tag/Groups/operation/addGroupMembers)**
