Currently it seems like the host has to be the one to create new tenants. This does not seem scalable and does not align with how SaaS apps usually function. Is there a way for users to create their own tenants?
2 Answer(s)
-
0
In the default ABP templates, only host users (administrators) can create new tenants. Regular users are not allowed to self-register or create their own tenants out-of-the-box. This is by design for security and management reasons.
For SaaS scenarios where users should be able to create their own tenants (self-service tenant registration), you need to implement a custom registration flow. This typically involves:
- Creating a public registration page where users can sign up and provide tenant information.
- In your backend, programmatically creating a new tenant using the SaaS module's APIs when a user registers.
- Optionally, creating an admin user for the new tenant and sending them credentials.
This feature is not provided by default, but ABP's modular architecture allows you to extend the system to support self-service tenant creation.
Sources:
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
-
0
hi
You can add a Razor page to let users create a new tenant.
You can inject
ITenantAppService
orITenantRepository/ITenantManager
in your new page.Thanks.