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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

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   2068 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();