API docs     >     Users and Permissions     >     UserMgr

UserMgr->getByUsergroup

Description

getByUsergroup ( $usergroupId, $order = '', $sort = '', $limit = '' )
Gets the Users in a specified Usergroup

Parameters

$usergroupId
int
$order
string
SQL-order-by-clause
$sort
string
SQL-sort-clause
$limit
string
SQL-limit-clause

Returns

array|bool
Array of Users or FALSE in case of an error
  1. Array(
  2.     [0] => Array(
  3.         [LOGIN] => xyz@email.com
  4.         [PASSWORD] => $2a$08$XRE4Mm3O4H3SVPiCCuqhmugUTH4i42UO5n1GUicAGjLFJnXJIAEKe
  5.         [ID] => 1
  6.         [UID] => 1
  7.         [LASTNAME] => Administrator
  8.         [FIRSTNAME] => Adam
  9.         [EMAIL] => xyz@email.com
  10.     )
  11.     ...
  12. )