Creating Organizations in "Business User" Setup

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?

Hello!
The best way to manage new business users with diverse authentication in Auth0, aiming for automatic Organization association, is to enhance the “Prompt for Organization” setting with an Auth0 Action. This Action, triggered after the user submits a company name, checks if the Organization exists. If so, it adds the user; if not, it prompts the user to create it using the Auth0 Management API, then adds them. This approach integrates Organization management into the signup flow, avoids the “personal account” issue, and is more aligned with Auth0’s intended “Business Users” functionality than a post-login action or a fully custom signup flow.

Hi Ella,

That sounds like what I would like to happen, but when I set it to prompt for company, it does not offer the ability to create an organization if what they’ve entered doesn’t exist. Is there an additional setting required to do this “create org?” You’ve mentioned an action, I don’t see anything that seems to match that in the list of available actions?