$provider = new ActiveDataProvider([
'query' => User::find()->where(['id' => 1]) // как можно сделать Неравен
]);
$searchModel = new UserSearch();
return $this->render('index', [
'searchModel' => $searchModel,
'dataProvider' => $provider,
]);