Base solution for your next web application
Open Closed

Multiple records in AbpUsers with TenantId as NULL? #2048


User avatar
0
pradippatil created

Hi,

Can we add multiple records in AbpUsers table with TenantId as NULL(means it will create multiple Hosts)? If yes, what are the places where we need to take care to not allow other users to be treated as Host? i.e. we need to have single host admin user, but also want to store multiple records in AbpUsers with TenantId as NULL.


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    All the users with TenantId = NULL considered as host users. If you want only one host admin, you can have two roles for host (Admin & User). Assign admin role to host admin, user role to other host users.

    You can check it UserAppService when creating new users.