Skip to the content.

Table of contents

Bitwarden organization

The com.bitwarden.organization doctype is used to group ciphers in a single unit and/or to share them with other bitwarden contacts.

Attributes

Members

An organization can be shared with a list of members.

Note that the name and key attributes may be missing if the member status is still invited as those data are sent only when he accepts the first Cozy sharing from organization’s owner.

Collection

A collection is a virtual container for ciphers.

A ciphers can live alone or included in a collection. Any collection is linked to an organization.

By construction the Bitwarden protocol allows an organization to contain one or more collections.

But at Cozy we defined that an organization must contain exactly one collection. So there is no need seperate those entities, and so there is no dedicated doctype for a collection.

The collection entity exists to comply with the Bitwarden protocol.

Example

{
  "_id": "8869e3ee461551cc2bc4d5d9a107dbf9",
  "_rev": "2-1926d7ef135d622721fc2e44519399cf",
  "name": "test",
  "members": {
    "alice.cozy.localhost:8080": {
      "email": "me@alice.cozy.localhost",
      "key": "4.Xzx...+w3Q==",
      "name": "Alice",
      "owner": true,
      "status": 2,
      "user_id": "49a6e10fc3718829c4dac13a9e0036b0"
    },
    "bob.cozy.localhost:8080": {
      "email": "me@bob.cozy.localhost",
      "key": "4.MbW...QVdA==",
      "name": "Bob",
      "status": 2,
      "user_id": "49a6e10fc3718829c4dac13a9e015597"
    }
  },
  "defaultCollection": {
    "_id": "8869e3ee461551cc2bc4d5d9a107d0c1",
    "name": "2.zedwpSJJACs2y+QSzxwqNA==|VB6iWyyRM++AFH7QjsJ/iw==|INFs55T//Ge1CIpyHh1tritNhaxfXGHDgb5yLyzqjjk="
  },
  "cozyMetadata": {
    "doctypeVersion": "1",
    "metadataVersion": 1,
    "createdAt": "2021-08-30T17:29:31.431874+02:00",
    "updatedAt": "2021-08-30T17:29:31.431874+02:00"
  }
}