UserApiController is already too big and godlike. Please move this method to a new class. Call it the SearchUsersController.