usermanager find based on role

C#
var userThatYouWant = _userManager.GetUsersInRoleAsync("RoleName");
Source

Also in C#: