List of user from GroupName

Vote:
 

Hi,

I want to get the List of all users inside a Group in my code, is there any Repository that can provide me with that information.

Thanks,

Anurag

#196853
Sep 13, 2018 11:55
Vote:
 

Is it Roles or Visitor Groups that you mean?

For users in Roles (admins, editors etc) try something like this:

Inject UIRoleProvider.

private readonly Injected<UIRoleProvider> _roleProvider;
            

Then use the method "GetUsersInRole":

var groupName = "WebEditors";
var userNames = _roleProvider.Service.GetUsersInRole(groupName);
#196855
Sep 13, 2018 12:43
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.