Multi Tenant, separat set of users, auto create Application

Hi,

I’m developing a multi tenant application.
A tenant gets created dynamically and needs to have a separat set of users. Every tenant should have google login and password + email.
A user can access tenant1.app.com and tenenat2.app.com and needs to be able to log in with same email but different passwords.

How can I achieve this best?

Regards
Benny

2 Likes

Hi @benny739 Welcome to Auth0 Community

Unfortunately there is no API to create tenant dynamically. You need to manually create them.

I think you can should with using multiple connections approach described here https://auth0.com/docs/design/using-auth0-with-multi-tenant-apps#use-multiple-connections

Hi @ashish, thx for your reply.
The connection approach was the way I wanted to go, but I couldn’t find a way to dynamically create new connections. Do you know a way to do this?

1 Like

Check out Auth0 Management API endpoints you can pretty much CRUD everything via API that you can do via Dashboard https://auth0.com/docs/api/management/v2#!/Connections/post_connections

1 Like