> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/b/bitwarden-cloud.md).

# Bitwarden Cloud

Bitwarden Cloud is a password manager. OctoXLabs reads the members of your organization through the Bitwarden Public API.

## Use cases

* List Bitwarden organization members.

```
Adapters = bitwarden-cloud AND Email = *
```

## Before you begin

### Network

| Source              | Destination                                        | Port | Protocol |
| ------------------- | -------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | api.bitwarden.com (EU: api.bitwarden.eu)           | 443  | HTTPS    |
| OctoXLabs connector | identity.bitwarden.com (EU: identity.bitwarden.eu) | 443  | HTTPS    |

### Required permissions

| Scope or role                                  | Permission | Needed for |
| ---------------------------------------------- | ---------- | ---------- |
| Organization API key, scope `api.organization` | Read       | Members    |

## Create credentials in Bitwarden Cloud

{% stepper %}
{% step %}

### Sign in as owner

An organization owner signs in to the Bitwarden **Admin Console**.
{% endstep %}

{% step %}

### Open the API key

Go to **Settings > Organization Info** and scroll to the **API Key** section.
{% endstep %}

{% step %}

### View or generate

View or generate the `client_id` and `client_secret`. Use them in OctoXLabs.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default                | Description                                 |
| ------------- | -------- | ------- | ---------------------- | ------------------------------------------- |
| API Domain    | Yes      | String  | api.bitwarden.com      | API host. EU: `api.bitwarden.eu`.           |
| Auth Domain   | Yes      | String  | identity.bitwarden.com | Identity host. EU: `identity.bitwarden.eu`. |
| Client ID     | Yes      | String  |                        | Organization API key client ID.             |
| Client Secret | Yes      | String  |                        | Organization API key client secret.         |
| HTTPS Proxy   | No       | String  |                        | Proxy URL.                                  |
| Timeout       | No       | Integer | 30                     | Seconds to wait for API responses.          |

## Troubleshooting

| Error message                                           | Cause                                                                                                                                  | Fix                                                                                                  |
| ------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| Failed to fetch users:                                  | The members request did not return 200.                                                                                                | Check the API domain and that the key belongs to the organization.                                   |
| Invalid JSON response while fetching users (status=...) | The response is not JSON.                                                                                                              | Check the API domain and the proxy.                                                                  |
| Request failed after 5 retries for url                  | The API kept answering 429 or 401.                                                                                                     | Check the credentials and run the discovery later.                                                   |
| Status Code: `, URL, Method`                            | The API answered with an unexpected HTTP status. The shared request code raises it and logs the status, URL, method and response body. | Check the URL, the credentials and the permissions listed above, then run the connection test again. |

## Change history

{% hint style="info" %}
Available starting from version 5.6.11.
{% endhint %}
