It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
Former Member
3 years agoAutomate CLI on headless client
Hi all, I'm researching ways to use the 1Password CLI to add users to groups/vaults based on events in another system.
I think I can easily get the CLI running on a Linux VM, and write a simple RE...
zcutlip
3 years agoDedicated Contributor
Service accounts are probably what you're looking for. They're currently in beta, but the idea is you create a service account with access to specific vaults, then set an environment variable for that account's token. Any op
operations on items that account has access to can proceed without further authentication.
In addition, I've asked for a headless/non-interactive mode that is guaranteed to hard-fail if no valid authentication (e.g., session token or service account) is present. For example, if your unattended script is using a service account, but there's a typo in the token or that account has been revoked. In that case ideally it would fail rather than hang forever, prompting for authentication (either via console or GUI), so the error can be logged and fixed.
Here's that discussion
https://1password.community/discussion/comment/666122