Try our conversational search powered by Generative AI!

List of user from GroupName



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.



Sep 13, 2018 11:55

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);
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.