Export Credentials from KeePass with Parent Group
A lightweight and easy-to-use password manager
Brought to you by:
dreichl
Hello,
I need to export the contents of KeePass and import them to another password managment tool (CyberArk). The issue I am having is when exporting the KeePass vault to CSV, all entries loose the parent directory structure. I can see in the options tab for export there is an option for "Additionally export parent groups" however this is not available for CSV file format and CyberArk only accepts CSV for import.
Are there any work arounds for this issue or have others encountered this issue before and what was the resolution.
Any help is greatly appreciated, thank you.
To export all data you need to use XML format, then convert the XML to CSV and add/remove columns as required.
You can use the KeePass built-in transform export, but you will need an XSL sheet to define the fields you want to export.
You can use an online converter, not recommended.
A 3rd party utility.
cheers, Paul
Hello Paul,
Thank you for your response. From the export options I can see KeePass XML (2.x) listed and is the only option including XML however, after selecting KeePass XML (2.x), under options the "Additionally export parent group" options is grey-ed out and I cannot select it.
As for a 3rd party utility to convert XML to CSV, do you have any recommendations?
Thank you for you help.
XML exports contain all KeePass data. You can't select anything.
I've been testing XML to CSV conversion and it doesn't work because it doesn't know how to treat the KeePass data. Your only solution is export using "Transform using XSL Stylesheet".
KeePass has a number of stylesheets but not one for a full CSV conversion.
I'm having a play to see if I can make one, stay tuned...
cheers, Paul
Thank you Paul, I look forward to your update. Have a good weekend.
XML transform isn't looking good because you can't (easily, at all?) get all custom fields and group structure into a tabular format. I'm having a go in PowerShell.
cheers, Paul
Edit: the latest version can be found here.
Here it is! V1.1
You can either copy the code below and save or download the file direct. (Don't forget to allow PS1 files to run on your system.)
Use:
Export your database as KeePass XML (2.x).
Run the PS1.
Choose the file you just exported.
Choose a CSV file.
Import the CSV into your spreadsheet program and check / clean.
Import CSV into whatever.
cheers, Paul
Last edit: Paul 2024-06-12