Open Closed

Steps to use Multi-Tenancy after finishing "Getting Started" - Postgres database #504


User avatar
0
nparejod created
  • ABP Framework version: v3.2
  • UI type: MVC
  • Tiered (MVC) or Identity Server Seperated (Angular): no

Hello, I know this is an silly question, it is my first time using ABP Framework. I was able to succesfully create a new solution by completying the "Getting Started" steps but I can't find a way to use Multi-tenancy. I already created 2 tenants in host (option SaaS/Tenants), I am planning to create 2 schemas in one Postgres database, one for each tenant but don't know how to create users for those tenants. I have been readying the documentation but I don't find any clear information to setup tenants, regenerate tables inside tenants and create users for tenants Could you please advise or point me to any documentation I can follow? I already expent 3 days trying to figure out this.

Any help will be appreciated.

Thanks,

Markdown supported.
Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)

3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    You need to login with tenant then you can create users for the tenant.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    nparejod created

    Thanks liangshiwei, the problem was I couldn't log in into a tentan but I figued out, I changed admin passwordHash in table AbpUsers.

    Do users need to select a tenat all the time they want to log in? Is there a way for user to login to the assigned tenant seamless without selecting a tenant?

    Thanks.

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
  • User Avatar
    0
    liangshiwei created
    Fullstack Developer

    Hi,

    We have many ways to determine tenants, You can determine the tenant from the domain. See https://docs.abp.io/en/abp/latest/Multi-Tenancy#domain-subdomain-tenant-resolver

    Markdown supported.
    Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)
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.8.0-preview. Updated on September 16, 2026, 14:50
1
ABP Assistant
🔐 You need to be logged in to use the chatbot. Please log in first.