Administration
Work with API

Import from Bitwarden

10min

Description

Import Bitwarden json file to Passwork via API. Run script import.js and follow the instructions .

Document image


💡 Please note TOTP codes must be valid, otherwise the script will terminate with error

Configure and run (DEB architecture)

  • Get root privileges and update the local package database:
Shell

  • Install Node.js and npm:
Shell


For a successful import, the Node.js version must be higher than 16.

  • Checking the installed version:
Shell

  • Install modules for importing:
Shell

  • Create import file — import.js

Source code of import.js

Shell

  • Create an .env file and specify the Passwork host, the user's API key and its master password:
Shell

  • Load the Bitwarden XML file and run the script. The script will ask for the name of the file:
Shell

  • You can also pass these parameters as arguments to the script:
Shell