Allow export of a specific folder/collection

Export to csv does not seem to have a column for csv … at least in in demo (Free) version of Bitwarden. So I can’t move multiple items to a collection at one time and if I export to try to update the collection field, that field is not available.

This just bit me in the hind end. I needed to export all work related creds, but couldn’t without exporting my entire vault!

Hello, it would be very interesting to have such a feature!
Some resellers not working with Provider Portal use to store customer’s credentials into his custom collection (one customer → one collection). As soon as this end user decides to leave, that reseller may need to provide him with his own stored items.
Thanks

2 Likes

This is really a good idea. We also need this feature. I think there is a similar request here: https://community.bitwarden.com/t/export-folders/2253

this is a very good idea - there is a similar request here: Ability to export only selected folders or entries instead of the whole vault - #3

1 Like

Hi all!

TL;DR. Export folder to give to a friend.

I have spent at least a week helping a friend to figure out what his kid have used where and when and changing all passwords to strong passwords and adding 2FA to all where it could be used. All had a single word as a password and 3 different emails had been used… it was a complete mess…

Now i need to export that to the parents and for them to import it to their Bitwarden. So my wish wore to be able to just export the folder i created for that kids accounts.

@Emanuel Hi!

I see your point!

But there might be a workaround (I didn’t test it myself, though): you could create an organization, shift those vault items into it (maybe unassigned - or you need a collection as well?!), and make an export of the organization. See here for the export info about that: Export Vault Data | Bitwarden Help Center

We need this integrated immediately.

1 Like

Please can we have the ability to export collections / Folders from Bitwarden. This would be a very nice quality of life improvement. Seems like a rather simple / Basic feature.

1 Like

This would be super helpful as we categorize items into collections and occasionally we’ll need to share or archive the collection. We cannot do that without exporting the whole vault.

We also use this for client documentation as an MSP and each client is a collection. Handling a client offboarding is difficult especially when you keep the TOTP tokens in there as well.

1 Like

@iggi Welcome to the forum!

For exporting specific collections, one work-around would be to (temporarily) change your access permissions so that you only have “Can Manage” permissions for the collection(s) to you wish to export (and “Can View” or “Can Edit” access for all other collections). If you then export the organization vault from any Bitwarden password manager (but not from the Admin Console), then the export should only contain those collections for which you have “Can Manage” access.

This definitely needs to be added. I’m using this an MSP, and as I onboard clients, I’d like to, at the very least, be able to move the collection I have for them into their organization. Or if they offboard, export just their creds, instead of exporting my whole vault to csv and then filter it from there.

1 Like

I was disappointed that this wasn’t a built-in feature.
We are also an MSP that uses collections for clients. I am in the process of offboarding a client that is being acquired, and my choices seemed to be exporting the entire vault and deleting everything but the collection I wanted, or a whole lot of copypasta.

But there is a third choice that involves less finger fatigue. I came back to share.
Bitwarden has an excellent API, which is accessible through the CLI.

I wrote the following python script to export a collection from the CLI.
I hope it helps someone.

You need Python and the BW cli to access your vault through the API.

Log on through the CLI and use bw serve
Modify the script variable to match your collection name and run.
Feel free to modify the script to capture additional fields, like URI, Description, etc. (I didn’t need them for my application).

import requests

#----------------------------------
#Export Collection from Bitwarden
#----------------------------------

#Define Collection name to Export
exportCollection = "Name of Collection to Export"

#Script assumes local BW API connection is listening on port http://localhost:8087
#This is accomplished by starting BW Serve from the BW Command Line Interface
# https://bitwarden.com/help/cli/#serve

#Read Collections List from API
response = requests.get(
    "http://localhost:8087/list/object/collections"
)

#Store json response (Collections)
collections_json = response.json()

#Loop through collections
for collection in collections_json["data"]["data"]:

    if collection["name"] == exportCollection:

        print("Exporting Collection: " + collection["name"])

        #Get Existing Items from Collection
        # Read Items List from API
        response = requests.get(
            "http://localhost:8087/list/object/items",
            params={"collectionid": collection["id"]}
        )

        # Store json response (Collections)
        vaultitem_json = response.json()

        print("---------------------------------------------------")

        for vaultitem in vaultitem_json["data"]["data"]:

            if vaultitem["name"] != None:
                print("Name: " + vaultitem["name"])

            if vaultitem["login"]["username"] != None:
                print("UserName: " + vaultitem["login"]["username"])

            if vaultitem["login"]["password"] != None:
                print("Password: " + vaultitem["login"]["password"])

            print("-------------------------------------------------")
1 Like

Note: I made the title a bit more obvious. Before, it was: “Export specific folder/collection”.

1 Like