N8n custom node - form-trigger for creating new users

Describe the issue/error/question

Hi team :wave: ,

I’m currently setting up a quick form using the following custom node (@Jon seems to be working on it):

It’s a simple form where users can provide their email to get access to our n8n instance without having to request us to do it manually.
I came across this answer User Management - #4 by BramKn but I don’t want to manually insert the user in the DB as I highly doubt that the user will receive such email:

So, do you have any recommendation?

Information on your n8n setup

  • n8n version: 0.201.0
  • Database you’re using (default: SQLite): postgresql
  • Running n8n with the execution process [own(default), main]: main
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: Kubernetes with one main pod, one worker pod and one webhook pod.

After digging a bit more on the subject, I’ve found out that the invitation url are simply done with two differents ids:
https://n8n.domain.com/signup?inviterId=aaaaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa&inviteeId=bbbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbbbb

And those ids generated are simply uuid which can be generated when contacting any uuid generator, for me, that was:
https://www.uuidgenerator.net/api/version4

And here is the final result:

Any comment will be welcome :slight_smile:

2 Likes

Nice digging!
Keep in mind you might need an embedded license, depending on what you are doing here.

1 Like

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