> ## 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.

# Stripe

> Learn how to connect Opal to Stripe to manage Dashboard team members and group membership through Stripe's SCIM API.

With the Stripe integration, you can manage access to your Stripe Dashboard from Opal:

* See the team members in your Stripe account or organization
* Allow users to request membership in a Stripe group, and the Dashboard role that group holds, from the web and Slack
* Create a team member, and remove them when they should no longer have access
* Set the right resource owners to delegate approvals to those with the most context
* Automatically revoke group membership when a time-bound grant expires

Opal connects to one Stripe account or organization through Stripe's SCIM API, with a SCIM API key. To manage several, add a Stripe app in Opal for each one.

## Supported resources

| Resource | Read | Grant and revoke access |
| - | - | - |
| Stripe groups (membership) | ✔️ | ✔️ |
| Team members | ✔️ | Create and remove |

Opal only changes access in Stripe when the app's **Access** setting is **Read and write**. With **Read only**, Opal syncs team members and groups and doesn't change anything in Stripe.

### How Stripe access maps to Opal

* **Groups**: each group in Stripe appears in Opal as a **Stripe Group**. Granting access adds the user to the group, and revoking it removes them. Stripe only has groups that were provisioned over SCIM, for example by your identity provider's group push, so Opal syncs those groups and doesn't create, rename, or delete them.
* **Roles**: Stripe doesn't let SCIM read or set roles. You assign a role to a group in the Stripe Dashboard, and every member of the group inherits it. To let people request a role through Opal, give the role to a group in Stripe, and have them request that group.
* **Team members**: Opal syncs team members by email. Removing a team member in Opal deletes them from the Stripe account and signs them out. Stripe treats deactivating and deleting a team member the same way.

### Limitations

* Opal doesn't sync or change Stripe roles, including roles assigned in the Dashboard or through SAML.
* Opal doesn't sync which accounts in a Stripe organization a team member can reach.
* Opal doesn't create, rename, or delete groups.
* Opal doesn't change a team member's name or email. Stripe doesn't support email changes.
* Stripe syncs at most 250 groups per organization.
* Opal and your identity provider use the same SCIM endpoint. If your identity provider also provisions team members or pushes a group, decide which system manages them, so one doesn't undo the other's changes. If your identity provider manages team members, consider setting **Access** to **Read only**.

## Requirements

Before you begin, you must:

* Be an Opal Admin
* Have an **Administrator** or **Super Administrator** role in the Stripe Dashboard
* Have SAML single sign-on set up for Stripe. Stripe only offers SCIM after SSO is configured, and only in live mode. If your accounts belong to a Stripe organization, SSO and SCIM are set up on the organization, not on individual accounts.
* Be on version `1.1267.0` or later, if you self-host Opal

## Configuration steps

### 1. Get a SCIM API key

1. In the Stripe Dashboard, go to **Settings** > **Team and security** > [**SCIM provisioning**](https://dashboard.stripe.com/settings/security/scim-provisioning), and select **Enable**.
2. Copy the SCIM API key. You'll enter it in Opal in step 2.

If SCIM is already enabled, for example for your identity provider, use the same SCIM API key. Stripe's secret (`sk_`) and restricted (`rk_`) API keys don't work with SCIM.

A SCIM API key always has full read and write access to SCIM. Stripe doesn't offer a read-only key, so use the **Access** setting in Opal to limit what Opal changes. For more about SCIM in Stripe, see Stripe's [Set up SCIM provisioning](https://docs.stripe.com/get-started/account/sso/scim).

### 2. Create the Stripe app in Opal

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

![The Connect Stripe section of the Opal create-app form, with the Access and SCIM API key fields](https://mintcdn.com/opalsecurity/K1sSIKjwiZ3iv9yk/images/docs/stripe-create-app.png?fit=max\&auto=format\&n=K1sSIKjwiZ3iv9yk\&q=85\&s=9d14bc14f682dded3e2b1c03c9f93fa6)

| Field | Value |
| - | - |
| App name | A name for the Stripe app in Opal, for example `Stripe`. |
| App admin | The owner who administers the app in Opal. |
| Description | A short description that helps requesters understand what this app is. |
| Visibility | Who in your organization can see the app. |
| Access | **Read and write** (default) lets Opal add and remove group members, and create and remove team members. **Read only** syncs without changing anything in Stripe. |
| SCIM API key | The SCIM API key from step 1. |

Opal checks the SCIM API key when you save the app.

### 3. Import groups

After you save the app, on the app's **Assets** tab, select **Import assets**, choose the Stripe groups you want to manage, and turn on requests for them. Opal pulls access only for imported items, so group members appear after the next sync. Team members show on the **Accounts** tab.

The app's **Setup** tab runs two checks: **Read team members** and **Read groups**.

### Rotate the SCIM API key

To rotate the key in Stripe, go to **Developers** > [**API keys**](https://dashboard.stripe.com/apikeys), or [**Organizations API keys**](https://dashboard.stripe.com/org/api-keys/secret) for an organization. Next to the SCIM API key, select the overflow menu (⋯), then **Rotate key**. Then update the key on the Stripe app in Opal, and in your identity provider if it uses the same key.

Disabling SCIM provisioning in Stripe deletes the SCIM API key, and Opal can no longer sync.

## Troubleshooting

| What you see | What to do |
| - | - |
| Saving the app says Stripe rejected the credentials | Copy the SCIM API key from **SCIM provisioning** again. A secret (`sk_`) or restricted (`rk_`) API key doesn't work. |
| **Read team members** or **Read groups** fails on the Setup tab | Check that SCIM provisioning is still enabled in Stripe, and that the key hasn't been rotated. Update the key in Opal if it has. |
| A grant, revoke, or user change fails as unsupported | The app's **Access** setting is **Read only**. Opal doesn't change anything in Stripe in that mode. |
| No groups appear in Opal | Stripe only has groups provisioned over SCIM. Push the groups from your identity provider, then sync the app. |
| A group member has no Dashboard permissions | Assign a role to the group in the Stripe Dashboard. Opal manages membership, not roles. |


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