Sasha Levy
09/26/2023, 11:47 PMfleetctl user create --name "API User" --email <mailto:api@example.com|api@example.com> --password temp!pass --api-only . all seems well except when I list users by calling api/v1/fleet/users the api user is coming up as api_only: false. I tried using the patch endpoint to modify the user but no luck there either. concerned my api token is going to expire for the api user otherwise I'd just use my own token. any ideas what the problem could be?Rachel Perkins
09/27/2023, 4:07 PMRachel Perkins
09/27/2023, 4:17 PMrachelperkins@RachelFleet fleet % fleetctl user create --name "API User" --email <mailto:api@example.com|api@example.com> --password temp@pass123 --api-only
and my GET response from /api/latest/fleet/users includes:
{
"created_at": "2023-09-27T16:14:04Z",
"updated_at": "2023-09-27T16:14:04Z",
"id": 11,
"name": "API User",
"email": "<mailto:api@example.com|api@example.com>",
"force_password_reset": false,
"gravatar_url": "",
"sso_enabled": false,
"global_role": "observer",
"api_only": true,
"teams": []
}
Are you using the latest fleetctl?
I'm going to update the docs to include a new password that meets the password requirements and aren't a special character in the the command.Sasha Levy
09/27/2023, 7:19 PMSasha Levy
09/27/2023, 7:19 PMSasha Levy
09/27/2023, 7:31 PM/api/v1/fleet/users/admin endpoint! not sure why that worked by happy it did 😄