0
dzungle created
Hello Support Team,
I am using this method to get all users of a specific role, but the result is alway zero.
var topCommanders = await UserManager.GetUsersInRoleAsync("TopCommander");
Could you please help me how to get all users of a specific role?
Thank you,
3 Answer(s)
-
0
Hi dzungle, Does the role you are looking for exist in the current tenant? This is because the role (
AbpRoleBase
) will useTenantId
to isolate the roles of each tenant. If your role (TopCommander
) is not in the current tenant, it will Unable to check. -
0
Hi Zony,
I disabled multi tenant feature.
-
0
Hi dzungle, I will try to disable the tenant to reproduce the problem. It would be better if you have a similar demo.