Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Anonymous
4 years agoCan I assemble password string with OTP?
Unsure if this is the proper forum, but here goes.
Is there a way to be able to assemble a string that would consist of " , "
We have a few applications that require the password followed by ...
1P_Ben
1Password Team
4 years agoHi @DZelenak
Thanks for taking the time to write in. I can appreciate the thought of trying to make this workflow easier. 😊 There isn't anything in 1Password for Mac that would automate this for you, but you might consider building a script using our CLI to do it. The documentation on the CLI is available here:
1Password CLI Developer Documentation
I don't have a proof of concept to share off-hand, but some pseudo code that might help get you started is:
op signin
password = $(op item get MySwitch --fields label=password)
otp = $(op item get MySwitch --otp)
passAndOtp = $password + "," + $otp
echo $passAndOtp | pbcopy
I hope that helps!
Ben