# 群组批量邀请

**URL:** https://meta.discourse.org/t/bulk-invite-to-group/280055
**Category:** Support
**Created:** [2023年九月25日 18:20 UTC](https://meta.discourse.org/t/bulk-invite-to-group/280055 "2023-09-25T18:20:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)
#### Post date: [2023年九月25日 18:20 UTC](https://meta.discourse.org/t/bulk-invite-to-group/280055/1 "2023-09-25T18:20:27Z")

</div>

我有一个 CSV 文件，其中包含需要邀请参加我们论坛并添加到群组的人员的电子邮件。

有些人已经是我们论坛的成员，而有些人则不是。

如何以以下方式批量发送邀请：

1. 尚未成为我们论坛成员的人，在注册后会自动收到邀请并添加到群组中。

2. 已经是成员的人，只会自动添加到群组中，而不会收到邀请。

---

<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: [2023年九月25日 18:25 UTC](https://meta.discourse.org/t/bulk-invite-to-group/280055/2 "2023-09-25T18:25:23Z")

</div>

🤔 我认为这个主题可能包含一些有用的信息：

> [@Group membership scripting](https://meta.discourse.org/t/group-membership-scripting/226473/12?u=lilly):
>
> There’s a possibility I may have confused myself. slight_smile Let me have an explore and see if there’s a way to achieve what you want using the existing forum features. +1 Edit: I think this is possible using the Bulk Invite option. If you have a csv file of email addresses, with a second column for the group(s) you wish to add them to, then running that through the Bulk Invite tool will email an invite to anyone who doesn’t have an account, and add existing members to the group(s) you e…

---

<div class="post-metadata">

### Author: ![Sami\_Syed](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sami_syed/32/93193_2.png) [@Sami\_Syed](https://meta.discourse.org/u/Sami_Syed)
#### Post date: [2023年九月25日 18:26 UTC](https://meta.discourse.org/t/bulk-invite-to-group/280055/3 "2023-09-25T18:26:40Z")

</div>

如果您使用 WordPress SSO，该工具是否可用？

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2023年九月25日 19:37 UTC](https://meta.discourse.org/t/bulk-invite-to-group/280055/4 "2023-09-25T19:37:57Z")

</div>

是的，在使用 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)（WordPress SSO）时，您可以发送批量邀请。允许在启用 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) 时发送邀请的设置已更改过几次，因此我现在正在对其进行测试，以确认其有效性并检查用户体验。

通过 Discourse UI 发送邀请电子邮件或上传邀请 CSV 文件都可以毫无问题地发送电子邮件。

当用户点击邀请电子邮件中的链接时，他们会被带到如下所示的屏幕：

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/b/e/dbe316dd0156bebfbec80b612f84390e3814160e.png)

点击“继续”按钮会将用户重定向到 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) 身份验证站点（WordPress）进行身份验证。

在此测试中，我假设被邀请用户尚未在 WordPress 上注册账户，因此他们需要点击“注册”链接：

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/3/a/f3a223b2b3ba2d953cb7e97697e4c743c6291b4e.png)

我正在 WordPress 多站点设置上测试此功能，因此注册表单与单站点设置的外观不同：

 ![image](https://global.discourse-cdn.com/meta/original/4X/2/7/9/279eadc3633c6880597341562ab83b8d7aa045fa.png)

从这里开始，用户必须完成使用 WordPress 确认其电子邮件地址的过程，然后登录 WordPress。之后，他们可以登录 Discourse，但他们最初是通过接受 Discourse 站点邀请而开始此过程的上下文已丢失。他们可以返回 Discourse 站点，点击“登录”按钮并毫无问题地登录 Discourse，但除非在 WordPress 中添加了指导用户的说明，否则我认为这会非常令人困惑。

因此，从用户的角度来看，当启用 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) 时，邀请尚在该 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) 身份验证站点上没有账户的用户可能会令人困惑。虽然这可以正常工作，但更直接的方法是邀请用户直接到 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) 身份验证站点，然后在该站点上显示一个链接，用户可以点击该链接登录 Discourse。有关创建该链接的详细信息，请参见此处：[创建 DiscourseConnect 登录链接](https://meta.discourse.org/t/create-a-discourseconnect-login-link/109290)。

如果用户已经在 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) 站点上拥有账户，接受 Discourse 站点的邀请将是一个直接的过程。但即使在这种情况下，可能更容易直接在 [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true) 站点上显示一个指向 Discourse 的登录链接。

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2023年十月25日 19:38 UTC](https://meta.discourse.org/t/bulk-invite-to-group/280055/5 "2023-10-25T19:38:33Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
