@ -1156,9 +1156,11 @@ class Rest extends WebService
/**
/**
* Get the list of users from extra field.
* Get the list of users from extra field.
* @param string $fieldName The name of the extra_field (as in extra_field.variable) we want to filter on.
*
* @param string $fieldName The name of the extra_field (as in extra_field.variable) we want to filter on.
* @param string $fieldValue The value of the extra_field we want to filter on. If a user doesn't have the given extra_field set to that value, it will not be returned.
* @param string $fieldValue The value of the extra_field we want to filter on. If a user doesn't have the given extra_field set to that value, it will not be returned.
* @param int $active Additional filter. If 1, only return active users. Otherwise, return them all.
* @param int $active Additional filter. If 1, only return active users. Otherwise, return them all.
*
* @throws Exception
* @throws Exception
*/
*/
public function getUsersProfilesByExtraField(string $fieldName, string $fieldValue, int $active = 0): array
public function getUsersProfilesByExtraField(string $fieldName, string $fieldValue, int $active = 0): array
@ -1585,8 +1587,10 @@ class Rest extends WebService
}
}
/**
/**
* Returns an array of users with id, firstname, lastname, email and username
* Returns an array of users with id, firstname, lastname, email and username.
*
* @param array $params An array of parameters to filter the results (currently only supports 'status' and 'id_campus')
* @param array $params An array of parameters to filter the results (currently only supports 'status' and 'id_campus')
*
* @throws Exception
* @throws Exception
*/
*/
public function getUsersCampus(array $params): array
public function getUsersCampus(array $params): array