Open Closed

Get a list of users within tenant or all users when admin #6358


User avatar
0
carl.hallqvist created
  • ABP Framework version: v7.3.3
  • UI Type: Blazor WASM
  • Database System: EF Core SQL Server
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

To get a list of all users when using the ABP framework, I did this:

using Volo.Abp.Identity;

protected async Task GetIdentityUsersAsync()
{
    var users = await IdentityUserAppService.GetListAsync(new GetIdentityUsersInput());
    UserList = users.Items.ToList();
}

But now, when using the micro service template, as for my understanding, the Volo.Abp.Identy is deployed as an own micro service. Can you please provide a recommended way of how to get a list of the users when using ABP Commercial from another micro service (e.g., from ProductService or user created one)?

Kind regards, Carl


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

    Hi,

    You can check the document: https://docs.abp.io/en/commercial/latest/startup-templates/microservice/interservice-communication

  • User Avatar
    0
    carl.hallqvist created

    Hi liangshiwei,

    Thanks, that was very helpful.

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11