Hi I try to get a List of all users of an ActiveDirectory Group. Windows Authentication is correctly set up and working as intended. I also can restrict specific controller actions to specific AD Groups / roles.
However I am not able to get a simple list of all users of a specific AD group.
I tried in my controller the follown:
[HttpGet]
public async Task<IActionResult> Test()
{
string username = HttpContext.User.Identity...; //nothing to find in here
return View();
}
I found other answers using some private UserManager variables or context variables, however I don't have them in my controller, and the other answers I found, don't show me how to get them...
Any help would be highly appreciated.