Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

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

Get all users of a group

Go to End

2 Posts   1783 Views


Community Member, 2 Posts

2 May 2010 at 9:11pm

Hi all,

In my security tab, i have two groups : Administrator and NormalUser.
Now, i want to get all users of NormalUser group.

How could i do that?


Community Member, 712 Posts

3 May 2010 at 9:44am

$group = DataObject::get_one("Group", "Title = 'NormalUser'");
$members = $group->Members();