Password panagement & "create an account for someone else"

Hi,

I get data from an external API (a backend workflow listen to webhooks).

From that data I need to create a user account (A)

Then, later on (B) , a few minutes or a few hours later, the user can come and login to my site and he is put into an onboarding flow where I want him to define his password.

What is the best practice to dealing with the password management in this situation?

If I use “create an account for somebody else” at A, then what’s the user password will be and if I don’t know it how will I be abble to modify it later on at B ?

My problems :

  • “Create an account for somebody else” does not allow to set a password
  • “sign the user up” might not work as this is run from a backend workflow, who is the user? Or will it work?
  • “send magic login link” does not allow me to send this through my own mail provider and I don’t want to use the native one

Best to you

You can save the generated password in a field in the “User” data type as a temporary password.

Just create link, don’t send email
Check this box if you would like to handle sending the magic link to the user yourself. The magic link will be created on the server side but not sent to an email address. The magic link can be subsequently handled by any server side action (such as included in a custom email action) using “Result of Step N’s Send magic login link”.