You could check with a get action event, if the user already has an account:
And if it’s the case, you run a path where you add this user to a group using a put action:
You could check with a get action event, if the user already has an account:
And if it’s the case, you run a path where you add this user to a group using a put action:
Awesome Krischan ! Thanks for your quick reply ! I’m trying it right now.
The Get part seems to work.
But I have an issue on the Put action :
1 / Can you tell me which Content-type do I have to put in header ?
(I guess I still add my API Username and API Key)
2/ On the URL of the Put Action, do I have to use the group ID (in number, like 110 in your example), or can I use the name I can get on the URL of the groupe ? (like “course-A” for example)
I tried to use the Name of the groupe (I don’t know where can I get the group ID) and it doesn’t seems to work.
Thanks ! ![]()
Content type: multipart/form-data
No, I guess you have to use the group ID. You can get it eg. from the json file: https://meta.discourse.org/g.json
Awesome, with this content type + group ID, it seems to work !
Thanks for your quick help Krischan!
Hi Krischan ! 
Do you know if there is a way to notify the user by email to tell him he has been added to a group (with the Discourse API on Zapier) ?
I know it’s possible to tick a box, when we manually add email to a group on Discourse.
It could be good if I could trigger an email when my Zap is adding them to a new group.
Thanks !
Thanks for your reply @Krischan !
Do you see a quicker way to notify the user ? (It’s ok if it’s a basic message from discourse, just like the one the user receives if I tick the checkbox “notify the users.”

Your solution is great, but as I have a lot of groups and automations, it could be great if I could just add “one” data type, for example to just “activate” the notification, instead of creating 30 new zap 
Sorry, I haven’t done this yet. But maybe this post can help you:
Thanks for your reply Krischan !
I will check that 
Hi guys 
Do you know if there is a way to Remove a member from a group, using the same logic explained upper ?
I noticed the API has a way to Delete group member : Discourse API Docs
But I’m not sure how to use it on Zapier 
最近有人在使用电子邮件邀请 Zap 时收到错误消息吗?在我的例子中,我收到 403 和 404 错误,并且一些邀请未能成功发送。
这听起来像是 Api-Key 或 Api-Username 的权限问题。尝试在您的 Discourse 站点上检查这两项。确保您为 Api-Username 提供的用户在该站点上仍然处于活动状态,并且 Api-Key 具有全局范围,或者具有已勾选“邀请”范围框的“粒度范围”。
如果这不能解决问题,请告知我们。
我正在顶一下 Juliano 的消息,因为我 刚才 尝试了这个,遇到了同样的问题。我该如何确保我创建的邀请是 电子邮件 邀请?我似乎只能创建 链接 邀请,尽管那些也运行得很好。
关于此问题,我将再次尝试,并提供一些更新。
Zapier 的 Discourse 集成应用似乎存在缺陷:它将“email”和“skip_email”的 POST 请求正文值映射到同一个键:“skip_email”。这导致 Discourse 收到的 HTTP POST 请求中没有“email”项,因此邀请被创建为“链接”邀请,而不是“电子邮件”邀请。
我正在给 Zapier 发送一封支持邮件。我们拭目以待。![]()
如果我使用 Zapier 的通用 Webhook 功能,我可以创建邀请,但 Discourse 没有发送电子邮件,所以我需要弄清楚原因。了解更多信息后我会跟进。
有没有办法使用 make.com 而不是 Zapier 来实现这一点?它的功能与 Zapier 类似,并且集成了 Discourse,但我找不到邀请命令。
我很确定有办法。
Discourse 的 Zapier 集成也没有邀请命令。这个话题实际上是在解释如何通过使用 Zapier 的操作步骤来解决这个问题,该步骤允许你向 Discourse 发起 API 调用。我很确定你可以在 make.com 上通过使用他们的“发起 API 调用”操作来实现同样的功能:https://www.make.com/en/integrations/discourse。
你可能会在这个话题的 OP 中找到关于如何设置的有用细节。如果你有关于如何使其工作的问题,最好在这里提问:https://meta.discourse.org/t/how-to-connect-discourse-with-hundreds-of-apps-using-integromat/180181/1。(Integromat 已更名为 Make.com)。
@JammyDodger 我链接的这个话题可能需要重命名和编辑,以明确它指的是 Make.com 而不是 Integromat。
非常感谢您的回复和链接。我之前不知道 Make.com 有另一个名字,所以这很有帮助。我会试试看的。