Open Closed

How to get details of all the Tenant Admin on the platform #1796


User avatar
0
vishalnikam created
  • ABP Framework version: v4.3.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

There is requirment that as ABP platform admin, he should be able to get the details of all the tenant admin. Our understanding is that need to create custom screen to display below data but please help us how we can get this through services on ABP platform as we have seperate DB's for tenant management and need below details

  1. Role Name
  2. Owner Name(First + Last Name)
  3. Last Login
  4. Dormant Account Status(Logic configurable e.g user not logged in for >45 days)
  5. Active Status(Deleted Flag = N)

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

    Hi,

    You can get all tenants, and change current tenant to get tenant data.

    See: https://docs.abp.io/en/abp/latest/Multi-Tenancy#change-the-current-tenant

  • User Avatar
    0
    vishalnikam created

    Hi No, there no change in current tanant as i loging with platform admin or abp admin. then how i can pull all the teanant user details.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    HI

    there no change in current tanant as i loging with platform admin or abp admin

    Could you share some codes or provide steps to reproduce it. thanks.

  • User Avatar
    0
    vishalnikam created

    I mean. If i login with ABP admin then i should get all the details of teanant users. wherever link you shared there i have to switch between teanant to get the details?

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    The database is tenant-isolated, you must to change current tenant.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07