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 
Hola,
Necesito ayuda aquí. Seguí todas las instrucciones y se creó el enlace. Sin embargo, el enlace no está asignado a un correo electrónico. El campo de correo electrónico está vacío y el usuario no recibe ningún correo electrónico.
Ver:
Los resultados:
¿Alguien ha recibido mensajes de error en sus zaps de invitación por correo electrónico recientemente? En mi caso, obtengo 403 y 404 y algunas invitaciones no se envían correctamente.
Parece un problema de permisos con la Api-Key o el Api-Username. Intenta verificar ambos en tu sitio de Discourse. Asegúrate de que el usuario que proporcionaste para Api-Username todavía esté activo en el sitio y que la Api-Key tenga el ámbito Global o un ámbito Detallado con la casilla de ámbito de Invitaciones marcada.
Háznos saber si eso no soluciona el problema.
Estoy reabriendo el mensaje de Juliano porque lo intenté justo ahora y experimenté lo mismo. ¿Cómo me aseguro de que la invitación que creo sea una invitación por correo electrónico? Parece que solo puedo crear invitaciones por enlace, aunque estas funcionan perfectamente.
Una pequeña actualización sobre esto, ya que lo estoy intentando de nuevo.
La aplicación de integración de Discourse de Zapier parece tener un defecto: mapea tanto el valor del cuerpo de la solicitud POST “email” como el de “skip_email” a la misma clave: “skip_email”. Esto da como resultado que Discourse reciba una solicitud HTTP POST sin el elemento “email” en el cuerpo de la solicitud, por lo que la invitación se crea como una invitación de “enlace” en lugar de una invitación de “correo electrónico”.
Estoy enviando un correo electrónico de soporte a Zapier. Veremos qué pasa. ![]()
Si uso la función genérica de Webhook de Zapier, puedo crear la invitación, pero Discourse no está enviando el correo electrónico, así que necesito averiguar por qué no. Haré un seguimiento cuando sepa más.
¿Hay alguna forma de hacer esto usando make.com en lugar de Zapier? Funciona de manera similar y tiene integración con Discourse, pero no encuentro un comando de invitación.
Estoy seguro de que la hay.
La integración de Zapier con Discourse tampoco tiene un comando de invitación. Este tema explica cómo solucionar ese problema utilizando un paso de acción de Zapier que te permite hacer una llamada a la API de Discourse. Estoy bastante seguro de que puedes lograr lo mismo en make.com utilizando su acción Hacer una llamada a la API: https://www.make.com/en/integrations/discourse.
Puede que encuentres detalles útiles en el primer mensaje de este tema sobre cómo configurarlo. Si tienes preguntas sobre cómo hacerlo funcionar, lo mejor es hacerlas aquí: How to connect Discourse with hundreds of apps using Make. (Integromat pasó a llamarse Make.com).
@JammyDodger el tema que enlacé debería renombrarse y editarse para dejar claro que se refiere a Make.com y no a Integromat.
Muchas gracias por la respuesta y los enlaces. No sabía que Make.com tuviera otro nombre anteriormente, así que eso ayuda. Le daré una oportunidad.