diff --git a/app/Http/Controllers/Api/UsersController.php b/app/Http/Controllers/Api/UsersController.php index 1c65caa640..02fcb77840 100644 --- a/app/Http/Controllers/Api/UsersController.php +++ b/app/Http/Controllers/Api/UsersController.php @@ -105,7 +105,7 @@ class UsersController extends Controller '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';