Title
#fleet
a

Adam Connor

06/28/2022, 7:09 AM
‘Context’ I’m setting up an API only user for analytics, but the instructions say - ‘If you would like to use your API user by default for automated workflows and still use
fleetctl
with your standard user account, you can set up your
fleetctl
config with a new
context
to hold the credentials for your admin user using the
--context
flag:’ I’m not really understanding the purpose here- I’ll probably need fleetctl access at some point, but what happens if I don’t do this?
koo

koo

06/28/2022, 10:59 AM
Hey Adam can you point me to the part of the docs referencing this?
Kathy Satterlee

Kathy Satterlee

06/28/2022, 2:57 PM
@Adam Connor the context really just allows you to use multiple users in
fleetctl
without having to log out when switching between them. If you were logged in as the API user and wanted to switch to your standard account, you'd just use
fleetctl
logout
to log out of the API-only user,
fleetctl
login
with the other account, then repeat the process to log back in to the API-only user.
3:00 PM
I included the steps for adding
context
because I found that a little cumbersome if you're switching users on a regular basis and it can catch you off guard if you have automated scripts and forgot to switch back to the API-only user.
3:03 PM
So big picture, nothing happens if you don't do it. It's a little bit of extra setup to maybe save a little effort down the road.
a

Adam Connor

06/29/2022, 12:07 AM
thanks for the explanation @Kathy Satterlee that does make sense!@koo the info is about 2/3 down this page in a section called “using fleetctl with an API only user’https://fleetdm.com/docs/using-fleet/fleetctl-cli
Kathy Satterlee

Kathy Satterlee

06/30/2022, 3:58 PM
Any time!
koo

koo

07/01/2022, 11:52 AM
Thanks @Adam Connor