Open Closed

Are users allowed to create their own tenants in the default templates of ABP #9840


User avatar
0
itlpierre created

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)
  • User Avatar
    0
    AI-Bot created
    Support Team ABP Agent
    • 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:

      1. Creating a public registration page where users can sign up and provide tenant information.
      2. In your backend, programmatically creating a new tenant using the SaaS module's APIs when a user registers.
      3. 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.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    You can add a Razor page to let users create a new tenant.

    You can inject ITenantAppService or ITenantRepository/ITenantManager in your new page.

    Thanks.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 01, 2025, 08:37