How to Getting previous versions of items?

ljc6386613
ljc6386613
Community Member

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_yaron
    ag_yaron
    1Password Alumni

    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/

  • ljc6386613
    ljc6386613
    Community Member

    @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_yaron
    ag_yaron
    1Password Alumni

    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).

  • ljc6386613
    ljc6386613
    Community Member

    @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_yaron
    ag_yaron
    1Password Alumni

    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_yaron
    ag_yaron
    1Password Alumni

    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.

This discussion has been closed.