Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Backspaze
3 years agoDedicated Contributor
How to use service accounts and regular accounts in the same environment?
I noticed that you silently released Service Accounts little over a week ago in https://app-updates.agilebits.com/product_history/CLI2#v2180001 of 1Password CLI and naturally began testing it immedia...
Former Member
3 years agoHey Backspaze , thank you for reaching out to us!
a blog post announcement would've been nice for this (eventually) useful feature
Thank you for flagging this! A blogpost is indeed coming along with the official launch, for now this feature has only been silently released, as you mentioned too.
or is it simply not possible to use this according to my use case?
Indeed it is not possible to use a user account with a service account token in the environment. This is by design, as we intend the service accounts credentials to only exist within the scope of their usage. In your case, that would be on a script level.
Alternatively, in case you require keeping the service account token exported globally, you could use an envvar with a different name (e.g. having the token exported as OP_SERVICE_ACCOUNT_TOKEN_GLOBAL
) and move its value to OP_SERVICE_ACCOUNT_TOKEN
at the beginning of the scripts that require a service account.
Hope this helps, let us know if you have any further questions!
Best,
Horia