Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Can we get all users in specific tenantId Or get all users of all tenants as admin of the host ([email protected])? #6676


User avatar
0
it.soft.mgr created

Hi AspNet Zero support team,

Can we get all users in specific tenantId? Or get all users of the application as admin of the host ([email protected])? When I use UserManager I only get the current user info. Please give us your advice.


2 Answer(s)
  • User Avatar
    0
    ryancyq created
    Support Team

    you can disable tenant filters (IMustHaveTenant/IMayHaveTenant) when you call UserManager.

    See https://aspnetboilerplate.com/Pages/Documents/Data-Filters#disable-filters

  • User Avatar
    0
    it.soft.mgr created

    Thanks ryancyq, as link you provided, I searched and find my solution in here: https://aspnetboilerplate.com/Pages/Documents/Abp-Session