Jump to content

Import Passwordsafe into Passwordstate

Recommended Posts

If you need to import all of your data from PasswordSafe into Passwordstate, this is the preferred process due to the below Powershell script keeping the correct format of your PasswordSafe database.  We'd like to thank one of our customers Fabian Näf from Switzerland for writing this script for us.  He did a great job and it's helped out many of our customers.


Process Start:

  1. In Passwordstate, identify and note down your System Wide API key from Administration-> System Settings -> API and you will find it under “Anonymous API Settings & Key
  2. Create a Password List Template under the Passwords Menu -> Password List Templates.  On this template please set the following options and then save the template:
    1. Disable the option to prevent the saving of password records if they are found to be a “Bad Password” (screenshot 1 below)
    2. Uncheck the option so the Password field is not required, and the URL field is enabled (screenshot 2 below)
  3. Identify and note down the TemplateID by toggling the column visibility (screenshot 3 below)
  4. In PasswordSafe, open your database and export the contents from File -> Export to -> Plain Text (tab separated).  As Delimiter use the default-value "»"
  5. Download the script from:  https://www.clickstudios.com.au/downloads/import-passwordsafe.zip
  6. Extract this zip file and open with Powershell ISE or the straight Powershell shell, if you prefer
  7. You will be prompted to answer 6 pieces of information:
    1. The username of your Passwordstate Security Administrator
    2. Your Passwordstate URL
    3. Your System Wide API key
    4. Your Import Folder ID.  By default you should set 0 for this value and this will crate a folder in the root of Password Home and begin building your folder structure under there.  Alternatively, edit an existing folder and obtain the Folder ID from the edit screen, and use that instead
    5. Your PasswordList Template ID
    6. It will ask you to browse to your Exported .txt file from Passwordsafe.  If you do not see this prompt for any reason, it might be hiding behind your Powershell window. 


That’s it, the script will now run through and automatically read all of the information out of the .txt file, and import it into Passwordstate.  From here, there are a few other things you might want to consider doing after the script has run successfully:


  1. You may want to rearrange your folder structure.  Ie possibly you might want to create some new folders for each of your teams, and then drag and drop existing Password Lists/Folders inside of them
  2. Once you are happy with your Folder structure, you should start applying permissions to either Password Lists or Folders using the following video as a guide: https://www.youtube.com/watch?v=QBJE_xD185U
  3. Best practices are to use Security Groups to apply permissions, instead of individual users, if possible



Screenshot 1:



Screenshot 2:



Screenshot 3:





Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...