# Help on implementing User Invitation Auth Flow

**URL:** <https://community.auth0.com/t/help-on-implementing-user-invitation-auth-flow/80366>\
**Category:** Get Help\
**Tags:** auth0\
**Created:** [March 22, 2022, 9:27pm UTC](https://community.auth0.com/t/help-on-implementing-user-invitation-auth-flow/80366 "2022-03-22T21:27:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgallegos](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mgallegos/32/36082_2.png) [@mgallegos](https://community.auth0.com/u/mgallegos)\
**Post date:** [March 22, 2022, 9:27pm UTC](https://community.auth0.com/t/help-on-implementing-user-invitation-auth-flow/80366/1 "2022-03-22T21:27:34Z")

</div>

Hi everyone

I’m trying to implement User Invitation Auth using this tutorial: [Send Email Invitations for Application Signup](https://community.auth0.com/t/send-email-invitations-for-application-signup/62582)

However, I’m confused right now. Let me explain what we are doing right now:

- A user is created using the api: [Create User API](https://auth0.com/docs/api/management/v2#!/Users/post_users)
- Then, we send an email with the Change Password template, but as a Welcome Template, using the flag `email_verified` to check which email should we send.
- The user receives the email and set the password for the first time.

This is working well. However, in the first step, we have to set a password so we are using our default password. So, what we really want?  
We want to implement the same flow described above, but without setting up the default password!

For what I investigated, [this tutorial](https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup) is the best approach. But it also requires a user already created in the connection. But for that, we need a password: so now I’m really confused

Am I missing something?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![hendrik](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hendrik/32/31562_2.png) [@hendrik](https://community.auth0.com/u/hendrik)\
**Post date:** [March 23, 2022, 10:19am UTC](https://community.auth0.com/t/help-on-implementing-user-invitation-auth-flow/80366/2 "2022-03-23T10:19:47Z")

</div>

As far as I can tell you cannot create a database connection user without a password. Therefore you basically need a random password generator that obeys the password security standards.

Choosing one default password would be really bad from a security perspective.

To be honest, for me this was a showstopper in that already complex invitation flow that utilizes password reset. So we switched to organization invites, which is a much simpler ticketing apporach [Invite Organization Members](https://auth0.com/docs/manage-users/organizations/configure-organizations/invite-members)

But it comes with it’s own pitfalls I can tell. I really like auth0 but the way how they offer invitation options is really obsolete.

---

<div class="post-metadata">

**Author:** ![mgallegos](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mgallegos/32/36082_2.png) [@mgallegos](https://community.auth0.com/u/mgallegos)\
**Post date:** [March 23, 2022, 2:46pm UTC](https://community.auth0.com/t/help-on-implementing-user-invitation-auth-flow/80366/3 "2022-03-23T14:46:27Z")

</div>

Thanks for answering @hendrik

One limitation that I see with Invite Organization Members is that we can’t set as Application Login URI a local environment that don’t uses `https`. Any workaround regarding that?

And also, for invite Organization Members, is not that clear what we have to do after the user accepts the invitation from email. Can you elaborate more about this, please?

---

<div class="post-metadata">

**Author:** ![hendrik](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/hendrik/32/31562_2.png) [@hendrik](https://community.auth0.com/u/hendrik)\
**Post date:** [March 25, 2022, 7:46am UTC](https://community.auth0.com/t/help-on-implementing-user-invitation-auth-flow/80366/4 "2022-03-25T07:46:05Z")

</div>

Well regarding the https redirects I can’t tell, since we also use https routes in the local dev env.

Regarding the flow, it requires you of course to have at least one organization setup. For now we use one default organization for all invitations.

Our app however runs without a certain organization scope at the moment.

It is a hybrid way, which allows for self-signup (not possible in organization scoped app) and invitations (only possible in organization scoped apps).

That’s what I meant with the pitfalls.
