# What is the difference between the output of these two methods of generating encrypted organization vault exports?

**URL:** <https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197>\
**Category:** Password Manager\
**Tags:** ux, app:web-app, server:default-cloud\
**Created:** [June 11, 2024, 7:59am UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197 "2024-06-11T07:59:38Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bit](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/bit/32/1744_2.png) [@bit](https://community.bitwarden.com/u/bit)\
**Post date:** [June 11, 2024, 7:59am UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/1 "2024-06-11T07:59:38Z")

</div>

When using the Bitwarden web vault to create an encrypted export of an organization’s vault, slightly modifying the procedure to generate the export yields different results. What is the difference between the outputs?

Because the output is encrypted, and the salt is randomized for each export, the difference is not obvious. But the file size is significantly different depending on the export method used (and consistent within each method), meaning that there is likely a significant difference in the underlying data.

1. From the web vault, one method to generate the organization’s encrypted vault export file is to login to the manager’s Bitwarden vault, and to select the option to perform an encrypted JSON export. At the top of the page, you then select the organization from the dropdown menu (instead of the manager’s main vault). This generates an export file named `encrypted_export_[timestamp].json`.

2. From the web vault, the second method to generate the organization’s encrypted vault export file is to follow the same steps as above, but to select the organization’s vault as the primary vault _before_ performing the export. The UI isn’t very clear about this, but the link is there if you look for it. (This is different from just looking at the organization’s vault as if it was sub-vault under the user’s vault, which is what happens when you click a similarly named link.) When you perform an export this way, Bitwarden generates an export file named `encrypted_org_export_[timestamp].json`. This export file is notably smaller than the file generated above, even though the data should be identical.

Questions:

- Why is the 2nd file smaller?
- What’s the difference between the 2 files?
- Is there any difference in how these 2 export files function during an import?

---

<div class="post-metadata">

**Author:** ![Nail1684](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/nail1684/32/47626_2.png) [@Nail1684](https://community.bitwarden.com/u/Nail1684)\
**Post date:** [June 11, 2024, 9:32am UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/2 "2024-06-11T09:32:30Z")

</div>

@bit Well, that is not my field of expertise… But I think, the export of an organization vault would have to be done via the admin console (assuming you _are_ the admin). See here: [Export an organization vault | Bitwarden Help Center](https://bitwarden.com/help/export-your-data/#export-an-organization-vault)

I think here is an explanation, why there is an organization export also in the password manager section (in short: if you are _not_ the admin): [http://community.bitwarden.com/t/export-my-vault-json-file-empty-if-all-items-shared-to-organization/11446/13](http://community.bitwarden.com/t/export-my-vault-json-file-empty-if-all-items-shared-to-organization/11446/13)

Sorry for not answering your question - but this was the relating info I could provide…

---

<div class="post-metadata">

**Author:** ![grb](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/grb/32/22038_2.png) [@grb](https://community.bitwarden.com/u/grb)\
**Post date:** [June 11, 2024, 10:35am UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/3 "2024-06-11T10:35:51Z")

</div>

> [@bit](#):
>
> The UI isn’t very clear about this, but the link is there if you look for it.

Screenshots depicting your two methods would be helpful.

But as @Nail1684 alluded, you will only get a partial org vault export unless you export from within the **Admin Console**.

---

<div class="post-metadata">

**Author:** ![bit](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/bit/32/1744_2.png) [@bit](https://community.bitwarden.com/u/bit)\
**Post date:** [June 13, 2024, 2:10am UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/4 "2024-06-13T02:10:21Z")

</div>

I agree that screenshots will be most helpful. I wanted to post some, but I realized I would have to redact most areas of the screenshots, so I was hoping I could convey this with just words. But I really think screenshots will help. Let me see what I can do to get some, and I’ll write back.

---

<div class="post-metadata">

**Author:** ![bit](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/bit/32/1744_2.png) [@bit](https://community.bitwarden.com/u/bit)\
**Post date:** [June 13, 2024, 2:11am UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/5 "2024-06-13T02:11:59Z")

</div>

Thanks. I appreciate it. What you wrote is completely correct, but alas, doesn’t explain this particular issue. I’ll post more details with screenshots (hopefully) soon.

---

<div class="post-metadata">

**Author:** ![bit](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/bit/32/1744_2.png) [@bit](https://community.bitwarden.com/u/bit)\
**Post date:** [June 13, 2024, 2:58am UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/6 "2024-06-13T02:58:36Z")

</div>

@grb @Nail1684

I think we may also need someone from Bitwarden to chime in, if they can offer assistance.

Here are screenshots to illustrate the 2 methods of which I wrote in my original post.

1. The 1st method generates the `encrypted_export_[timestamp].json` file, which is always larger than the `encrypted_org_export_[timestamp].json` file generated by the second method. Here is a screenshot for the 1st method:

 ![Method_1](https://us1.discourse-cdn.com/flex001/uploads/bitwarden1/original/3X/e/a/eabaf4aa848a5b81d6cb5aec1896d4a797e318a8.png)  
This 1st method requires first defining the current account as the organization’s owner. See this screenshot for how that looks:

 ![Method_1_supplement](https://us1.discourse-cdn.com/flex001/uploads/bitwarden1/original/3X/c/c/cc6a991355937e83120c63daccb648ef181e1843.png)

1. The 2nd method involves the Admin Console. It actually generates a smaller file than Method 1, even though it should contain the same data. The export file is named `encrypted_org_export_[timestamp].json`:

 ![Method_2](https://us1.discourse-cdn.com/flex001/uploads/bitwarden1/original/3X/3/f/3fa58b1540d973dc49a73d9c533081d766730c94.png)

Hopefully someone can explain why these 2 export files ( `encrypted_export_[timestamp].json` and `encrypted_org_export_[timestamp].json`), which should contain the same data, are significantly different in size, what those differences entail, and how future imports may be affected.

---

<div class="post-metadata">

**Author:** ![bit](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/bit/32/1744_2.png) [@bit](https://community.bitwarden.com/u/bit)\
**Post date:** [June 13, 2024, 3:12am UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/7 "2024-06-13T03:12:15Z")

</div>

As an addendum, there is something else I cannot explain. As you can see, I can be meticulous regarding details and precision (when it is helpful!). When I ran these tests a day ago, everything was exactly as presented above. But when I run the same tests now, everything is the same except now the export files are named `encrypted_org_export_[timestamp].json` for both methods. The core issue, however, remains unchanged: the encrypted JSON export file for the organization generated by Method 1 is always significantly larger than the encrypted JSON export file generated by Method 2.

---

<div class="post-metadata">

**Author:** ![grb](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/grb/32/22038_2.png) [@grb](https://community.bitwarden.com/u/grb)\
**Post date:** [June 13, 2024, 3:19am UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/8 "2024-06-13T03:19:50Z")

</div>

> [@bit](#):
>
> The core issue, however, remains unchanged: the encrypted JSON export file for the organization generated by Method 1 is always significantly larger than the encrypted JSON export file generated by Method 2.

Interesting. I would expect the opposite. The first method should only export collections for which you have “Can Manage” access, and the second method should export all collections.

Do you have any items in an “unassigned” collection? Perhaps the two methods treat such items differently.

---

<div class="post-metadata">

**Author:** ![bit](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/bit/32/1744_2.png) [@bit](https://community.bitwarden.com/u/bit)\
**Post date:** [January 4, 2025, 11:12am UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/9 "2025-01-04T11:12:10Z")

</div>

I’m sorry that my response to your question was delayed for so long.

To finally answer it, no items are in an “unassigned” collection.

---

<div class="post-metadata">

**Author:** ![grb](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/grb/32/22038_2.png) [@grb](https://community.bitwarden.com/u/grb)\
**Post date:** [January 4, 2025, 3:57pm UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/10 "2025-01-04T15:57:39Z")

</div>

One of us 😉 would have to do some testing to verify, but my best guess at this point is that the structure of the encrypted .JSON files might be different for the two export methods (even if they contain the same data). I know there’s been changes in this area, and if I recall correctly, the encrypted exports sometimes produce one big encrypted blob. In the past, I believe that all exports contained a plaintext JSON structure, in which individual field values were encrypted. Perhaps Bitwarden now uses both formats, and the two export methods you’ve been using result in either one format or the other.

---

<div class="post-metadata">

**Author:** ![bit](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/bit/32/1744_2.png) [@bit](https://community.bitwarden.com/u/bit)\
**Post date:** [January 9, 2025, 8:46am UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/11 "2025-01-09T08:46:52Z")

</div>

Yes, that sounds like a possibility. Perhaps someone at Bitwarden will be willing to investigate the issue?

---

<div class="post-metadata">

**Author:** ![grb](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/grb/32/22038_2.png) [@grb](https://community.bitwarden.com/u/grb)\
**Post date:** [January 9, 2025, 4:26pm UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/12 "2025-01-09T16:26:38Z")

</div>

Are you sure that in both cases, your encrypted export had the same “Export Type” (i.e., either both _Account-Restricted_, or both _Password-Protected_)?

I compared the JSON structures for a organization vault export done either from the Web Vault Password Manager or from the Admin Console, and they were basically identical. However, the structure of a _Password-Protected_ JSON is very different from the structure of an _Account-Restricted_ encrypted JSON.

---

<div class="post-metadata">

**Author:** ![kpiris](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/kpiris/32/14822_2.png) [@kpiris](https://community.bitwarden.com/u/kpiris)\
**Post date:** [January 9, 2025, 4:32pm UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/13 "2025-01-09T16:32:04Z")

</div>

> [@grb](#):
>
> However, the structure of a _Password-Protected_ JSON is very different from the structure of an _Account-Restricted_ encrypted JSON.

I noticed this some time ago. The password-protected json now is a json file with _the whole_ vault in a single _blob_ object.

I tried a quick search to see since which version exactly this changed, but I couldn’t find it.

I’m also curious to know why this was changed…

---

<div class="post-metadata">

**Author:** ![grb](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/grb/32/22038_2.png) [@grb](https://community.bitwarden.com/u/grb)\
**Post date:** [January 9, 2025, 4:38pm UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/14 "2025-01-09T16:38:51Z")

</div>

> [@kpiris](#):
>
> I’m also curious to know why this was changed…

It _is_ more secure, as it hides metadata about the number of vault items, folders and collections, the vault items types, creation/modification timestamps, status of “favorite” and “master password reprompt” settings, etc.

---

<div class="post-metadata">

**Author:** ![kpiris](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/kpiris/32/14822_2.png) [@kpiris](https://community.bitwarden.com/u/kpiris)\
**Post date:** [January 9, 2025, 4:43pm UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/15 "2025-01-09T16:43:04Z")

</div>

Yeah, I know. But what I don’t see is why they are encrypting this way only the password-protected exports and not the account-restricted ones or even the data.json files from the different clients.

---

<div class="post-metadata">

**Author:** ![grb](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/grb/32/22038_2.png) [@grb](https://community.bitwarden.com/u/grb)\
**Post date:** [January 9, 2025, 5:02pm UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/16 "2025-01-09T17:02:10Z")

</div>

My guess is that the account-restricted format is basically deprecated, so they are not going to update it to use the new “blob” format.

> [@kpiris](#):
>
> or even the data.json files from the different clients.

What do you mean by this? I just check a password-protected JSON from the browser extension, and it _does_ use the new blob format.

---

<div class="post-metadata">

**Author:** ![kpiris](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/kpiris/32/14822_2.png) [@kpiris](https://community.bitwarden.com/u/kpiris)\
**Post date:** [January 9, 2025, 5:14pm UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/17 "2025-01-09T17:14:27Z")

</div>

I meant the data.json of bitwarden cli or the desktop client, for eample.

If you are logged in (locked or not) on the desktop client and go to the client’s data directory, there you will find this data.json file I’m talking about. It contains the encrypted vault.

---

<div class="post-metadata">

**Author:** ![grb](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/grb/32/22038_2.png) [@grb](https://community.bitwarden.com/u/grb)\
**Post date:** [January 9, 2025, 5:19pm UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/18 "2025-01-09T17:19:26Z")

</div>

I see. Perhaps this will be changed in the future, or perhaps there are performance-based reasons for keeping the structure of the local `data.json` cache as is.

---

<div class="post-metadata">

**Author:** ![bit](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/bit/32/1744_2.png) [@bit](https://community.bitwarden.com/u/bit)\
**Post date:** [January 9, 2025, 11:50pm UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/19 "2025-01-09T23:50:33Z")

</div>

> Are you sure that in both cases, your encrypted export had the same “Export Type” (i.e., either both _Account-Restricted_, or both _Password-Protected_)?

The answer is that if I did things correctly, “yes”, but I’m willing to double-check my work.

It’s been a while since I’ve looked at this. Please remind me, is that option only available via the web interface and not via the extension?

---

<div class="post-metadata">

**Author:** ![grb](https://sea1.discourse-cdn.com/flex001/user_avatar/community.bitwarden.com/grb/32/22038_2.png) [@grb](https://community.bitwarden.com/u/grb)\
**Post date:** [January 9, 2025, 11:56pm UTC](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197/20 "2025-01-09T23:56:46Z")

</div>

> [@bit](#):
>
> Please remind me, is that option only available via the web interface and not via the extension?

The Admin Console is definitely _not_ available via the browser extension. The Password-Protected export option became available in browser extensions starting with version [2024.6.0](https://github.com/bitwarden/clients/releases/tag/browser-v2024.6.0).

[Next page](https://community.bitwarden.com/t/what-is-the-difference-between-the-output-of-these-two-methods-of-generating-encrypted-organization-vault-exports/68197.md?page=2)
