Sign Up with Organizations

I have a tenant with my app which has more than one organization.
the model chosen was “Business. users”

now my problem is, I can’t sign up a new user, since the user doesn’t belong to any organization.
I’m expecting to be able sign up to a specific organization, how can I do that?
I’m working with a react SPA

Hi @cristiann

Welcome to the Auth0 Community!

If you want non-organizations users to use your application alongside “professional” accounts, the “Both” option will be better option. You can read all about Login Flows here → Login Flows for Organizations. I would also encourage you to check our Free Development Training (with Labs) about Organizations and managing users (Scroll down to Build skills flexibly by function and click on Development)

Thanks
Dawid

no, maybe I explain myself incorrectly.
I want all my users to belong to an organization…
but from my SPA react app, when I try to sign up a new user, I can’t… auth0 is sending me back with an error:
“oops… client requires organization membership, but user does not belong to any organization”

and it’s true, the user doesn’t belong to any organization… but how can I add him to an organization? since it doesn’t exist yet because I’m just signing up this user, I can’t add him to the organization

In that case you I think you want to enable Membership on Authentication and Organization Signup in the connection settings from the Organizations in the Auth0 Dashboard. You can read about this here → Enable Organization Connections

@cristiann Have you got anything on this as we are also facing the similar issue?
The issue is because we set the organization flow to Business Users type i.e user has to be signup with organization based url either from the params or through the orgnization prompt from Auth0.

Kiran, I didn’t try the last response from Dawid, I set the config to allow users sign up as individuals too, so on signing up, I sign up them as individuals, and we I get the response, I assign them to the proper company (if it exists) or I create the company and assign the new user (if the company doesn’t exist)

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