> ## Documentation Index
> Fetch the complete documentation index at: https://docs.opal.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Bitwarden

> Learn how to connect Opal to Bitwarden to review organization members, roles, and groups.

With the Bitwarden integration, you can see who belongs to your Bitwarden organization, which role they hold, and which groups they are in:

* Sync organization members so Opal can match them to people in your identity provider
* Review each member's organization role: Owner, Admin, Custom, or User
* Import groups and review who is in each group

The integration works with Bitwarden cloud (US and EU) and with self-hosted Bitwarden servers.

## Supported resources

| Resource | Read | Grant and revoke access | Notes |
| - | - | - | - |
| Bitwarden users | ✔️ | | Confirmed organization members. Synced as accounts. |
| Bitwarden Organization | ✔️ | | Each member's role: Owner, Admin, Custom, or User. |
| Bitwarden Groups | ✔️ | | |

Opal syncs only members in the **Confirmed** status. Invited, accepted, revoked, and staged members are skipped. Opal does not sync collections, vault items, policies, or event logs.

## Requirements

* You must be an Opal admin.
* Your Bitwarden organization must be on a **Teams** or **Enterprise** plan. Other plans do not include the Bitwarden Public API.
* You must be an **Owner** of the Bitwarden organization. Only owners can view the organization API key.
* If you self-host Bitwarden, your server must be reachable from Opal over HTTPS.
* Be on version x.x.x or greater, if you self-host Opal.

The organization API key has full access to its organization, and Bitwarden does not let you limit it. Opal only reads members and groups with it.

## 1. Copy the organization API key

In the Bitwarden Admin Console, go to **Settings → Organization info** and select **View API key** in the **API key** section. Bitwarden documents this on the [Public API](https://bitwarden.com/help/public-api/) page.

Copy the **client\_id** and **client\_secret**. The client ID has the form `organization.<organization-id>`.

One API key covers one Bitwarden organization. To review a second organization, create a second app with that organization's key.

## 2. Create a Bitwarden app in Opal

In Opal, go to **Inventory > +App** and select **Bitwarden**. Fill in the following fields and select **Create**.

| Field | Value |
| - | - |
| App name | A name for this organization in Opal. |
| App admin | The team or user that should manage the Bitwarden app in Opal. |
| Description | Let your end users know what this organization is. |
| Deployment | **US Cloud**, **EU Cloud**, or **Self-hosted**. |
| Host | Self-hosted only. The domain of your Bitwarden server, without `https://` (e.g., `vault.mycompany.com`). |
| Organization name | Your organization's name in Bitwarden. Opal uses it as the name of the organization resource. |
| Client ID | The `client_id` from [Step 1](#1-copy-the-organization-api-key). |
| Client Secret | The `client_secret` from Step 1. |

For a self-hosted server, Opal calls `https://<host>/api` and requests tokens from `https://<host>/identity/connect/token`.

## 3. Import Bitwarden resources

Import the organization and groups from **... > Import items**. The organization shows each confirmed member's role, and each group shows its members.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.