diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index 1c65caa64090..02fcb77840df 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -105,7 +105,7 @@ public function index(Request $request) 'assets','accessories', 'consumables','licenses','groups','activated','created_at', 'two_factor_enrolled','two_factor_optin','last_login', 'assets_count', 'licenses_count', 'consumables_count', 'accessories_count', 'phone', 'address', 'city', 'state', - 'country', 'zip' + 'country', 'zip', 'id' ]; $sort = in_array($request->get('sort'), $allowed_columns) ? $request->get('sort') : 'first_name';