Looking for help trying to understand how to manage new users in an Business Users flow.
We want to use the Business Users set up, as we want all users to belong to an Organization. We do not manually create Users or Organizations and invite users. We support email/password auth, social auth, etc - so some users that come in will not inherently belong to an Organization like they might if they come through a SAML auth scenario.
Right now, we are accomplishing this by having a post-login
action that is catching users who have no selected organization and pushing them to a form/flow that captures an “company name” and creates an Organization with that information (and adds the user to it + adds their current sign in method to the connections). This is working ok, but doesn’t seem to be the correct way to do things, and has the additional side effect of offering users the “continue with personal account” option on future sign ins, which we do not want.
I’ve tried the “Prompt for Organization” setting, but having users manually type in an Organization name is error prone and not obvious - and also doesn’t seem to support “this doesn’t exist, would you like to create an organization?” Another route we could try is wrapping all of the Auth0 APIs here and doing this within our own website, then sending users to Auth0 with a pre-selected / created Organization, but this also feels off?
I found two other threads (A, B) that have similar requests, the first of which was told “just use Business Only.”
I don’t think our use case is an uncommon one, am I missing something about the preferred way to do this?