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,


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

    Hi,

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

  • 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.

  • User Avatar
    0
    liangshiwei created
    Support Team 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

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11