# 我想知道如何将数百名用户添加到组中？是否有任何API？

**URL:** <https://meta.discourse.org/t/i-wonder-how-to-add-hundreds-of-users-into-a-group-is-there-any-api/234488>\
**Category:** Support\
**Created:** [2022年七月30日 07:27 UTC](https://meta.discourse.org/t/i-wonder-how-to-add-hundreds-of-users-into-a-group-is-there-any-api/234488 "2022-07-30T07:27:14Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jessii](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jessii/32/354015_2.png) [@jessii](https://meta.discourse.org/u/jessii)\
**Post date:** [2022年七月31日 19:18 UTC](https://meta.discourse.org/t/i-wonder-how-to-add-hundreds-of-users-into-a-group-is-there-any-api/234488/2 "2022-07-31T19:18:48Z")

</div>

嘿 @Alienazk – 我认为我找到了一个可以帮助你将用户添加到组的简单方法。它基于这篇帖子中的信息 ([Bulk add all users to group from a trust level? - #6 by jomaxro](https://meta.discourse.org/t/bulk-add-all-users-to-group-from-a-trust-level/68544/6))。以下是我采取的步骤，因为这似乎有点不同：

1. 转到汉堡菜单并单击管理 (Admin) \> 用户 (Users) \> 导出 (Export)（你可以导出任何活跃用户、新用户、工作人员等）
2. 导出完成后，你应该会收到一个系统通知，其中包含 .csv 文件和一个 zip 文件夹
3. 在 Excel 或 Google 表格中导入文件
4. 文件打开后，转到用户列，根据操作系统（Windows）左键单击 + Shift 或（iOS）左键单击 + Command 来选择你想要的用户名并复制它们
5. 转到管理 (Admin) \> 用户 (Users) \> 组 (Group) \> + 新建组 (+ New Group)
6. 在“成员”下粘贴复制的用户名。它们应该会自动分开！

这是我从 .csv 文件复制它们后的视频：

---

_[View the full topic](https://meta.discourse.org/t/i-wonder-how-to-add-hundreds-of-users-into-a-group-is-there-any-api/234488)._
