# Registration only via organization invitations

**URL:** <https://community.auth0.com/t/registration-only-via-organization-invitations/108972>\
**Category:** Get Help\
**Tags:** user-invitation, user-management\
**Created:** [June 9, 2023, 5:22pm UTC](https://community.auth0.com/t/registration-only-via-organization-invitations/108972 "2023-06-09T17:22:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![pietor](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@pietor](https://community.auth0.com/u/pietor)\
**Post date:** [June 9, 2023, 5:22pm UTC](https://community.auth0.com/t/registration-only-via-organization-invitations/108972/1 "2023-06-09T17:22:41Z")

</div>

Hi all!

I am trying to remove the sign-up option of the universal login and only allow new sign-ups through an organization invitation E-Mail.  
When I disable the registration of a new user for the database connection (“Disable Sign Ups”) the sign-up via organization invites is also disabled, correct?

So the only possibility is to use this proposed workflow [https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup](https://auth0.com/docs/customize/email/send-email-invitations-for-application-signup). Essentially I have to create a user in the backend and sent a password-reset mail disguised as a invitation mail.

However, this flow does not account for organization information (name, logo) in the invitation/pw-reset-mail and the case of multiple open invitations to different organizations.

We have the following requirements:

1. The invitation mail must contain information of the corresponding org ( logo and name)
2. The user can only be added to the organization via the API **after** the password-reset/signup, as we need to differentiate between orgMembers with and without accepted invitations.
3. An invitation has to be created via the auth0 api in the backend, which we display in the frontend.
4. The correct UI for either password change and sign-up via Invitation has to be displayed after clicking on the link in the Email (the part “Add query parameters ticket URL” in the link above is unclear to me ☹ )

So far we tried the following:  
In the backend:

1. Create user with random password, we add the organization information into the user\_metadata field, to access the info later in the invitation/pw-reset-mail (logo and orgname). If the user already exists, which could mean he has already been registered or that he has another open invitation,  
we append the organization information as a new entry to the user\_metadata.
2. Create invitation, we set ‘send\_invitation\_email’ = false
3. Trigger a password reset mail for the invitee, we adjust the pw-reset-template according to the information in the user-metadata → pw reset mail or invitation with org info

After the user clicks the link and changes the password, we inserted the following steps into  
the post-password-change action:

1. Add user to the org listed in his user-metadata
2. Assign roles to user (also listed in user-metadata)
3. Delete the corresponding invitation
4. Update the user-metadata by removing the org’s metadata

This process is a rather complicated attempt of a solution to a seemingly simple problem and it has some difficult edge cases, when there are multiple accepted and open invitations for a single person. Is there a more elegant solution to the problem?

Something like a option to activate invites only would be nice or the possibility to redirect to a complete-invitation site in the pre-user-registration action depending on the invitation state of the user.  
Additionally, any clarification on the “Add query parameters ticket URL”-section in the link above is highly appreciated.

Thank you very much for your time and I look forward to your answers!

---

<div class="post-metadata">

**Author:** ![snir.benyosef](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/snir.benyosef/32/49243_2.png) [@snir.benyosef](https://community.auth0.com/u/snir.benyosef)\
**Post date:** [July 25, 2023, 1:51pm UTC](https://community.auth0.com/t/registration-only-via-organization-invitations/108972/2 "2023-07-25T13:51:07Z")

</div>

same here, did you find solution?

---

<div class="post-metadata">

**Author:** ![chris\_b](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/chris_b/32/72555_2.png) [@chris\_b](https://community.auth0.com/u/chris_b)\
**Post date:** [August 18, 2023, 5:26pm UTC](https://community.auth0.com/t/registration-only-via-organization-invitations/108972/3 "2023-08-18T17:26:27Z")

</div>

Any news on this topic? Having the same problem…

---

<div class="post-metadata">

**Author:** ![michael.dormann](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/michael.dormann/32/34313_2.png) [@michael.dormann](https://community.auth0.com/u/michael.dormann)\
**Post date:** [August 21, 2023, 3:44pm UTC](https://community.auth0.com/t/registration-only-via-organization-invitations/108972/4 "2023-08-21T15:44:47Z")

</div>

Same. It’s kind of frustrating that there seem to be posts about this going back years with people with the same problem, and still no great solution.

---

<div class="post-metadata">

**Author:** ![tom23](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/tom23/32/49793_2.png) [@tom23](https://community.auth0.com/u/tom23)\
**Post date:** [December 11, 2023, 7:37am UTC](https://community.auth0.com/t/registration-only-via-organization-invitations/108972/5 "2023-12-11T07:37:43Z")

</div>

Also looking for this.

---

<div class="post-metadata">

**Author:** ![PatrickHeneise](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/patrickheneise/32/39821_2.png) [@PatrickHeneise](https://community.auth0.com/u/PatrickHeneise)\
**Post date:** [December 15, 2023, 1:26am UTC](https://community.auth0.com/t/registration-only-via-organization-invitations/108972/6 "2023-12-15T01:26:25Z")

</div>

✋ same same … organizations is a great feature, but so many things missing.

---

<div class="post-metadata">

**Author:** ![r1me](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@r1me](https://community.auth0.com/u/r1me)\
**Post date:** [January 2, 2024, 2:52pm UTC](https://community.auth0.com/t/registration-only-via-organization-invitations/108972/7 "2024-01-02T14:52:42Z")

</div>

Same… I mean what is the point of invite only sign-ups if you still have a global sign-up enabled? And otherwise people with invite cannot set a password?

---

<div class="post-metadata">

**Author:** ![pietor](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@pietor](https://community.auth0.com/u/pietor)\
**Post date:** [January 15, 2024, 8:42am UTC](https://community.auth0.com/t/registration-only-via-organization-invitations/108972/8 "2024-01-15T08:42:41Z")

</div>

So it has been some time since we worked on the problem, but our solution, what also our contact at auth0 proposed, was to use the branding API to edit the HTML of the Login/SignUp widget to insert some custom css to hide the signup button and hyperlink. However this still does not block the API call the auth0. You would have to handle the authorization of a user without an organisation in your backend somehow.  
According to my colleague a paid subscription was necessary as well to access the branding API.

[https://auth0.com/docs/api/management/v2/branding/put-universal-login](https://auth0.com/docs/api/management/v2/branding/put-universal-login)

this is still really hacky, but apparently the only solution there is at the moment

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [January 29, 2024, 8:43am UTC](https://community.auth0.com/t/registration-only-via-organization-invitations/108972/9 "2024-01-29T08:43:33Z")

</div>

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