Jump to:

22970 Posts in 11572 Topics by 2823 members

General Questions

SilverStripe Forums » General Questions » Help getting certain Members

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 212 Views
  • woodb2
    Avatar
    Community Member
    48 Posts

    Help getting certain Members Link to this post

    I'm trying to get members that belong to a particular group (security groups I've created) and a particular Team (Team is a decorated field of Member).

    I can get all the users of a group using:

    function MemberList(){
          $group = DataObject::get_one("Group", "Title = '$this->GroupName'"); //GroupName is a field on the page that I make the same as the security group
          $members = $group->Members();
       return $members;

    How can I refine the results to also filter by Team?

    Thanks,
    Brian

    212 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.