How to signup user for specific DB connection

Since the Org specific signup is not supported as per link below: Can't reach signup page when using organizations

We have multiple orgs and each org has its own DB connection. We want user who sign up on Auth0, to get created in org specific DB connection. e.g. Org1 will use DB1, and org2 will use DB2. How this can be achieved. If we signup without org which DB the user will get created into

Hi @Anup,

You can specify the connection name when creating users and inviting them to your preferred organization. You can create users either with the
https://auth0.com/docs/api/authentication#signup endpoint or Management API’s Create a user endpoint. After creation, you can invite them to the organization.

Alternatively, you could directly invite them to the organization and have them sign up and create their account that way. Please see our Invite Organization Members documentation for more information.

Please let me know if there’s anything else I can do to help.

Thanks,
Rueben

@rueben.tiow How can I specify the connection name when navigating user to signup page.

Hi @Anup,

Thanks for the reply.

You can specify the connection name in the login request (/authorize) to specifically have them signup/login against that connection.

For example:

https://{yourDomain}/authorize?
    response_type=code&
    client_id={yourClientId}&
    redirect_uri={https://yourApp/callback}&
    scope={scope}&
    audience={apiAudience}&
    state={state}&
    connection={connection_name}

Thanks,
Rueben