It’s Cybersecurity Awareness Month! Join our interactive training session, or learn about security and AI from 1Password experts.
Forum Discussion
khaosspawn
5 years agoDedicated Contributor
Mass Update Logins/Passwords
Hi There - I have the use case were I have multiple demo/sample accounts to log into a system. eg. dave, vicki, john - and all these accounts have the same password which is changed every few days.
...
Former Member
5 years agoHey khaosspawn ,
Looks like you built a nice script there!
If you want to automate it a bit further, instead of manually listing every username, try using tags:
- Add a unique tag to all affected items (e.g. "NeedsPasswordChange").
- In the script, list all items that contain that tag:
op list items --tags NeedsPasswordChange
- Instruct the script to grab the UUID of each item in the output of the above command and store it in the array in the script, then run the rest of the script.
You might also add some other flags to make it faster/more efficient. For example, if you specify in which vault the items are in, it will retrieve them quicker because it won't go over all vaults in the account, so add --vault NameOfVault
to the command in step #2.
Adding the --cache
flag will also further enhance performance as it will cache all the data temporarily in your computer instead of having to call our servers for every command, so add that flag as well to the command in step #2. Use the --cache
flag in every op command afterwards to keep using the (temporary) locally stored data.
Eventually the command would like similar to this: op list items --tags NeedPasswordChange --vault NameOfVault --cache