How to Getting previous versions of items?

How to Getting previous versions of items? use CLI or API?thanks


1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Sync Type: Not Provided

Comments

  • ag_yaronag_yaron

    Team Member

    Hey @ljc6386613 ,

    Previous versions of items can be recovered via our web app: https://support.1password.com/item-history/
    If you're in a teams account: https://support.1password.com/item-history-teams/

  • @ag_yaron thanks for the reply,we expect query the Previous versions of items in script, may i ask how to do it in CLI,thanks

  • ag_yaronag_yaron

    Team Member

    Hey @ljc6386613

    The CLI does not support reviewing previous versions of items. Everything the CLI can do is documented here: https://support.1password.com/command-line-reference/

    If you can elaborate on your use case, I'll forward it to the team as a feature request (if feasible).

  • @ag_yaron
    my use case ,we have a team account ,we plan to use a script to get the old password (previous versions) and the new password stored in 1pass for linux servers when the password changed.
    and integrate with our automatic password change script.
    thanks.

  • ag_yaronag_yaron

    Team Member

    Thanks for the additional information @ljc6386613 .
    I'll forward it to the development team so they can investigate the use case and see if this is something we can/should implement :)

  • ag_yaronag_yaron

    Team Member

    Hey @ljc6386613 ,

    It seems that there's no need to get previous versions of the item itself to retrieve previous passwords, as they are already logged in the current item. If you do op get item <UUID> , you will get all the information of the item, including previous passwords of it. You can parse that and get the current and previous password(s) you need.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file