diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index 335fcdeecb..d797e2dd32 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -133,7 +133,7 @@ class UsersController extends Controller } if ($request->filled('ldap_import')) { - $users = $users->where('users.ldap_import', '=', $request->input('ldap_import')); + $users = $users->where('ldap_import', '=', $request->input('ldap_import')); } if ($request->filled('assets_count')) {