How to Add Users to an Organization in a Multi-Tenant Setup

Hello everyone,

I am currently working on a multi-tenant setup using Auth0 and the Organizations feature. My use case is as follows:

  • I will deploy five instances of my service directly on my clients’ servers.
  • Each organization (tenant) will have its own connections, mainly Google and Microsoft.
  • Users from Organization A should not be aware of users from Organization B.
  • I have RBAC in place and managed to handle it using an Auth0 Action, where I add roles inside the access_token.

Now, my main issue is user management:

  1. I have a SPA built with Angular that only accepts users from a specific Organization.
  2. How can I create a new user via email/password and assign them to an Organization?
  3. Alternatively, is there a way to send an invitation email to a company email (Google/Outlook) so that the user can register themselves?

I appreciate any guidance or best practices on this!

Thanks!