diff --git a/src/classes/user/user.php b/src/classes/user/user.php index 83ed2d8e..6b8fce0a 100644 --- a/src/classes/user/user.php +++ b/src/classes/user/user.php @@ -41,6 +41,22 @@ public function fields() return $result; } + /** + * Get user by id + * @link http://dev.1c-bitrix.ru/rest_help/users/user_get.php + * @throws Bitrix24Exception + * @param $id - user id + * @return array + */ + public function getById($id) { + $result = $this->client->call('user.get', + array( + 'ID' => $id, + ) + ); + return $result; + } + /** * Get list of users * @link http://dev.1c-bitrix.ru/rest_help/users/user_get.php