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:
- I have a SPA built with Angular that only accepts users from a specific Organization.
- How can I create a new user via email/password and assign them to an Organization?
- 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!