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

# Rollbar

> Learn how to connect Opal to Rollbar to manage team membership and team access to projects.

With the Rollbar integration, you can manage access to your Rollbar account from Opal:

* Allow users to request membership of a Rollbar team from the web and Slack
* Give a team access to a project
* Choose whether Opal can change access, or only sync who has it
* Choose whether projects sync into Opal
* Automatically revoke access when a time-bound grant expires

Opal connects to one Rollbar account through an account Service access token. To manage several accounts, add a Rollbar app in Opal for each one.

## Supported resources

| Resource | Read | Grant and revoke access | Notes |
| - | - | - | - |
| Account members | Yes | — | Matched by email. Opal does not invite or remove members. |
| Rollbar Team | Yes | Yes | Membership only. Each team's access level (Owner, Standard, Light, View, or Everyone) appears as the team's description. |
| Rollbar Project | Yes | Yes, through a team | Rollbar grants project access to teams, not to people. Optional: turn project sync off. |

Opal syncs people who have joined the account. Pending invitations are not users yet, so they stay out of Opal until the person accepts.

### How Rollbar access maps to Opal

* **Teams**: each team appears in Opal as a **Rollbar Team**. Users request membership of a team. Revoking that grant removes them from the team. Rollbar sets an access level on the team itself, and that level applies to every project the team can reach. Opal shows that level as the team's description and does not change it.
* **Projects**: each project appears in Opal as a **Rollbar Project** when **Projects** is set to **Sync**. You grant project access by giving a team access to the project. Revoking that grant removes the team from the project.
* **Read only**: when **Access** is **Read only**, Opal syncs who has access and refuses every grant and revoke before it calls Rollbar.

### Limitations

* Opal can't invite someone who isn't already in the Rollbar account. Create the person in Rollbar, or through your identity provider, before you grant them access in Opal.
* Opal doesn't change a team's access level (Owner, Standard, Light, View, or Everyone). Change that in Rollbar.
* Opal doesn't manage project access tokens or Rollbar SCIM.
* Rollbar refuses to remove the last Owner from a team. Opal surfaces that error if a revoke would leave the team with no Owner.

## Requirements

Before you begin, you must:

* Be an Opal Admin
* Be able to create an account Service access token in Rollbar (Settings > API access tokens)

## Configuration steps

### 1. Create an account Service access token

1. In Rollbar, open your account, then go to **Settings** > **API access tokens**.
2. Under **Service**, create a token (or use an existing one). Prefer a **Service** token over a Personal token so access keeps working when the person who created it leaves.
3. Give the token the **read** scope. Add the **write** scope if Opal should grant and revoke access. For **Read only** in Opal, **read** alone is enough.
4. Copy the token. Rollbar shows it when you create it. You'll enter it in Opal in step 2.

A Personal token also works, but it only sees what its owner can see.

### 2. Create the Rollbar app in Opal

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

| Field | Value |
| - | - |
| App name | A name for this Rollbar account in Opal, for example `Rollbar`. |
| 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. |
| Account slug | The account name in your Rollbar URL. For `https://app.rollbar.com/a/acme`, the slug is `acme`. |
| Access | **Read and write** to let Opal grant and revoke access, or **Read only** to sync without changing anything in Rollbar. |
| Projects | **Sync** to import projects and which teams can reach them, or **Don't sync** to leave projects out of Opal. |
| Account access token | The Service token from step 1. |

Opal checks the token when you save the app.

You can change **Access** and **Projects** later from the app's **Setup** tab. Turning **Projects** off on a live connection removes imported projects on the next sync, and Opal asks you to confirm.

### 3. Check the app setup

Open the app's **Setup** tab. Opal runs these reads:

| Check | If it fails |
| - | - |
| Read members | The app is not healthy and sync does not run. The token needs the **read** scope. |
| Read teams | Opal warns you. The token needs the **read** scope. |
| Read projects | Shown only while **Projects** is **Sync**. Opal warns you if the token can't list projects. |

Opal can't test the **write** scope from Setup. A token missing **write** still looks healthy until a grant fails with a message that the account access token needs the write scope.

### 4. Import teams and projects

Opal pulls access only for items you import.

1. On the app's **Assets** tab, select **Import assets**.
2. Import the teams people should be able to join, and the projects you want to assign (if **Projects** is **Sync**).
3. Turn on requests for those items.

Account members appear on the app's **Accounts** tab after the next sync. A person reaches a project by belonging to a team that has access to that project. Assign that team to the project in Opal.

## What Opal does not manage

* Inviting people to Rollbar, or removing them from the account
* A team's access level setting
* Project access tokens
* Rollbar SCIM (Enterprise)

## Troubleshooting

| What you see | What to do |
| - | - |
| An authentication error when you save the app | Copy the token again, and check that **Account slug** matches your Rollbar URL. |
| **Read members** or **Read teams** fails on Setup | Give the Service token the **read** scope. |
| A grant fails with a message about the write scope | Give the token the **write** scope, or set **Access** to **Read and write**. |
| A grant fails because the connection is read-only | Set **Access** to **Read and write** on the Setup tab. |
| Removing someone from a team fails | Rollbar won't remove the last Owner from that team. Add another Owner first, or leave that membership alone. |
| Projects don't appear | Set **Projects** to **Sync**, save, and import them. **Read projects** on the Setup tab has to pass. |
| A person is missing from the app | Pending invitations sync after the person joins. Create them in Rollbar first. |


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