No Welcome eMail on User Creation via API in N8N

AI-generated summary

Nuenni is experiencing an issue with a Discourse forum where users created via an N8N Workflow are not receiving a welcome email to activate their account. The user is fully created in discourse, but no email is sent. Nuenni provided their JSON code and output, which confirms the user creation. RGJ suggested that the issue might be due to the "active": "true" parameter, which could be activating the user immediately. Nuenni tested with "active": "false" and found that the email was sent when the user was not activated immediately. merefield confirmed that active users are not sent the email, and Nuenni was able to resolve the issue by setting "active": "false". Nuenni also compared the workflow with a working Make workflow, which had "active": "true" but still sent the email. The issue was solved by setting "active": "false" in the N8N Workflow.

H folks,

I have 2 Discourse forums running with automations.

Community 1

Ony my first community it runs without any automation problems in make.com.

This automation sends the “Activate your account” welcome email.

Community 2

I wanted to set up an N8N Workflow for this Community (instead of make), and the user is fully created in discourse.

Here is a picture of the admin panel:


But the system sends no email.

Here is my JSON:

{
  "email": "{{ $json.body.member.current.email }}",
  "name": "{{ $json.body.member.current.name }}",
  "username": "ToolGuide{{ Math.floor(10000 + Math.random() * 90000) }}",
  "password": "{{ $json.body.member.current.uuid }}",
  "active": "true",
  "approved": "true"
}

In the output, it confirms the crearion:

[
{
"success": 
true,
"active": 
true,
"message": 
"Dein Konto ist nun freigeschaltet und einsatzbereit.",
"user_id": 
13
}
]

The Problem with Community 2

The new User doesn’t get any email to activate his new account in discourse ;-(

I tried the manual registration with link and then i get the email, that worked fine.

On this Community 2 I have invite only activated, the api user is system with global rights.

Any ideas or suggetions?

Thx for help and greetings from Germany!

I would guess that since you’re passing "active": "true" the user is already being activated?

Yes this is my setup what I copied from make there are the same approved and active with true variables.

I testet N8N with false. The I need to approve manually and the email for welcome and activate isn’t send too.

But today I got the reminder on my test email
To activate :rofl: only the initial welcome to activate email is missing :thinking:

Can you see it in Admin - Emails - Sent?

No there I can’t see it either it’s not triggered but why :rofl:

I don’t believe active users are ever sent the email, so set active to false.

Hey Robert,

youre right. I testet it with “false” on active and i get the email when the N8N Workflow runs. So i controlled the Make.workflow have a look:

ACTIVE USERS. TRUE

LOG CONTROL

When i look into the log it gives me this back:

Why it sends me this back i dont know, as i sad in make. with “true” it worked fine :slight_smile:

So thanks for solving it !