Base solution for your next web application
Open Closed

I get just Admin #681


User avatar
0
gergo created

Hi! I don't know why, but when i wrote this: await userStore.GetAllUsersAsync(); here, i get Admin, but i don't get Users await userStore.FindByIdAsync(long UserId); its an exist UserId -> it will be NULL and i don't login, because i have to know Sponsor User's ExternalId. How i get users without Login?


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

    It may be related to multitenancy. Have you seen this document: <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Zero/User-Management#multi-tenancy">http://www.aspnetboilerplate.com/Pages/ ... ti-tenancy</a>

    If your application is not multi-tenant, then all user Id has TenantId = 1.