Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Jonathan Roberts 353 posts 975 karma points
    Apr 24, 2015 @ 15:42
    Jonathan Roberts

    Get Members using multiple roles

    Hi, Is it possible to get all members using multiple Roles. I have looked at the Memberservice GetMembersInRole but this only allows a single role to passed in. Is there a way to get all members who have multiple roles, for example:


    If not that way would there be an alternative way?

    Many thanks


  • Ryan 34 posts 137 karma points
    Apr 24, 2015 @ 17:10

    Hi Jon,

    Off the top of my head you could do something like this.

    Inside a surface controller or helper class

     var listofRoles = new List<string>
     foreach (var role in listofRoles)
        var members =  MemberService.GetMembersInRole(role);
        //Do what you want me the member

    Hope that helps!

Please Sign in or register to post replies

Write your reply to: