Login to Organization without invitation

Hi, we need to login the invited users without the invitation link, we are planning to acheive this using following steps:

Create a pre-user-registration action, hope this will trigger when the user is created in Auth0 Users, this action will check whether the user exists in the organization’s invitation list.

If the user is present in the invitation list, then that user is added to the members list and they can authenticate and login to the application.

But the action log is not triggering on pre-user-registration if the user logs in through /authorize endpoint with organization id. This happens for the connection type like saml and sso .

Hi @abhishekraghupathi,

Welcome to the Auth0 Community!
Reading through your use-case, if I understood correctly, you do want your invited users to become members of a Database, but you don’t want them to login through the invitation link. In this case, the users would either need to manually create their account (sign up ) or for you to create their account in a Database.

I believe an easier approach would be to create a separate Database connected to your Organization, for which you can enable Auto-Membership. This way, if a user is a member of a specific DB, they will be added as members to the Organization - similar to your proposed flow, where if they were on the invitation list, they should be added as Members on login.

Wanted to emphasize that the pre-user-registration trigger only works for Database and Passwordless Connections, it will not trigger for Social or Enterprise Connections ( in case you were trying to use it in this scenario).

Hope this helped!
Gerald

1 Like

Hi @gerald.czifra,
What do you mean by a separate database connected to our organization? Are you referring to the database connection type?
The organization will have a custom enterprise connection created and associated with it, like an Azure AD. Is there a solution to add the users into the organization without invitation and with disabled auto-membership?

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