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)
-
0
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.