Get user ids of group members
Found the answer myself minutes after posting the question... so it goes :).
  $members = $group-&gt;getMembers();
  foreach ($members as $member) {
    $user = $member-&gt;getUser();
    $userids[] = $user-&gt;id();
  }