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

# Sentry

> Connect your Sentry organization to Oleria to discover who can reach it: members, teams, organization roles, project access, internal integrations and their tokens, and audit log activity.

Sentry is an application monitoring and error tracking platform. Connect your Sentry organization to Oleria to see every member and pending invitation, the teams and organization roles they hold, which projects they can reach and why, and the internal integrations and tokens that can act on the organization. Oleria reads this data from the Sentry API with an internal integration token or a user auth token, and can take remediation actions directly from Oleria.

Oleria reads access to the organization and its projects. It doesn't read issues, events, or other monitoring data.

One Oleria integration covers one Sentry organization. To connect another organization, add another integration.

## What Oleria discovers

Once connected, Oleria continuously discovers and maps the following from your Sentry organization:

* **Accounts** - every organization member, including pending invitations (shown as disabled), with name, email, organization role, when they joined, and when Sentry last saw them active. Members with the **Owner** or **Manager** role are marked as administrators. Members who haven't set a name in Sentry show their email address as their name.
  * **MFA** - a member with two-factor authentication turned on is shown with MFA required. When the organization requires two-factor authentication, members without it are shown as needing to enroll.
  * **SSO** - required when the organization requires SSO, and configured for members who have linked an SSO identity.
  * **Licenses** - members that Sentry restricts because of your plan's member limit are shown with an inactive license.
* **Groups** - every team appears as a group, with its members and each member's team role: **Team Admin** or **Team Contributor**. Teams that your identity provider provisions through SCIM are shown as synced groups.
* **Roles** - the organization roles, such as **Owner**, **Manager**, **Member**, and **Billing**, with who holds each, and the project access each organization-wide role grants. The team roles also appear in the role catalog.
* **Resources** - every project, and who can reach it:
  * the teams assigned to the project
  * the team admins of those teams, with owner-level access
  * the **Owner** and **Manager** roles, which reach every project
  * when **Open Membership** is on, the **Member** role, because any member can join any team and reach its projects
  * internal integrations, which reach every project with the permissions they were granted
* **Non-human identities (NHIs)**:

  * **Internal integrations** - every internal integration and integration-platform app the organization owns, shown as an application, with its permissions and whether it's disabled. Each internal integration shows its creation date and its last token rotation, from the token list or the audit log.
  * **Internal integration tokens** and **organization auth tokens** - shown as API tokens, each paired with a credential that shows its status, scopes, creation date, and expiry or last-used date. Internal integration tokens are linked to the integration they act as.
  * **Installed apps** - third-party Sentry integration-platform apps installed in the organization.

  Tokens and installed apps are read only with a user auth token. See [Choose an authentication method](#choose-an-authentication-method). When the audit log still records who created an internal integration or token, Oleria shows that member as its owner.
* **Activity** - events from the organization audit log, on Sentry Business and Enterprise plans, such as:

  * member invitations, removals, and organization role changes
  * team membership changes, and teams added to or removed from projects
  * team, project, and organization changes
  * SSO setup changes and SSO identity links
  * token and client key creation, changes, and removal
  * integration and app installs and removals

  Events made with an internal integration token show that integration as the actor. Events on a project link to the project in Sentry. Events Oleria doesn't recognize are kept as custom events.

Oleria refreshes this data on its [regular sync schedule](https://docs.oleria.com/integrations/overview.md#sync-model).

## Prerequisites

* A Sentry user who can create an internal integration with the permissions below. To use a user auth token instead, the user needs the **Owner** or **Manager** organization role.
* A Sentry Business or Enterprise plan, if you want audit log activity. Oleria syncs everything else on any plan.
* Your Sentry organization slug.
* Admin access to the Oleria workspace.

## Choose an authentication method

| Method | When to use it |
| :- | :- |
| **Internal integration token** (recommended) | The token belongs to the organization, not to a person, so the connection keeps working when people leave. It covers members, teams, roles, projects, internal integrations, activity, and the team membership, project access, **Create user**, and **Create group** actions. Sentry lets a token remove a member, remove an invitation, or set an organization role only when the token holds every scope of that role, and an internal integration with these permissions doesn't. Use an **Owner** or **Manager** user auth token for **Add a role**, **Remove a role**, **Disable account**, **Delete user**, and reverting **Create user**. |
| **User auth token** | Use it if you want Oleria to remove members, or to inventory and revoke internal integration tokens and organization auth tokens. Sentry accepts these only from a user auth token of an **Owner** or **Manager**. The token has that person's access and stops working if they leave the organization. |

## Create the token in Sentry

Grant the token these permissions. Sentry lists them by resource and access level, and each level includes the ones below it. The scope names in parentheses are what Oleria checks.

| Sentry permission | What it covers |
| :- | :- |
| **Organization: Read** (`org:read`, required) | The organization, organization roles, teams, projects, and internal integrations. |
| **Member: Read** (`member:read`, required) | Members and who holds each role. |
| **Team: Read** (`team:read`, required) | Team members. |
| **Project: Read** (`project:read`) | Projects. Part of the recommended setup. |
| **Organization: Read & Write** (`org:write`) | Audit log activity, NHI owners, and the team membership, project access, and Disable NHI actions. |
| **Member: Admin** (`member:admin`) | Required for actions only: inviting members, changing organization roles, and removing members. Changing roles and removing members also need a user auth token of an **Owner** or **Manager**. |
| **Team: Admin** (`team:admin`) | Required for the Create group action only: creating a team needs `team:write`, and reverting it deletes the team, which needs `team:admin`. |

> [tab] Internal integration token
>
> **1. Create an internal integration**
>
> In Sentry, go to **Settings** > **Developer Settings** > **Custom Integrations** and create a new internal integration (for example, `oleria`). Grant it the permissions in the table above, then save it.
>
> **2. Copy the token**
>
> Copy the token Sentry shows for the integration. You'll paste it into Oleria in the next section.

> [tab] User auth token
>
> **1. Create a personal token**
>
> Signed in as an **Owner** or **Manager**, go to **User Settings** > **Personal Tokens** and create a token with the permissions in the table above.
>
> **2. Copy the token**
>
> Copy the token before you leave the page.

Your organization slug is in **Settings** > **General Settings**, and in your organization's URL. For example, the slug of `https://acme.sentry.io` is `acme`.

## Connect Sentry to Oleria

**1. Open the integration**

Go to your Oleria workspace, select **Integrations**, then select the **Sentry** tile.

**2. Complete the connection form**

| Field | Notes |
| :- | :- |
| Sentry URL (optional) | Defaults to `https://sentry.io`. Enter `https://de.sentry.io` for the EU region, or the address of a self-hosted Sentry. Host only, without a path. |
| Organization slug | Required. The slug of your Sentry organization. Letters, numbers, hyphens, and underscores only. |
| Auth token | Required. The internal integration token or user auth token. |

**3. Save the integration**

Select **Authenticate**. Oleria checks that the token can read the organization and has `org:read`, `member:read`, and `team:read` before it saves the integration.

## Verify the integration

Confirm the new instance appears on the **Connected** tab of your Oleria **Integrations** page with a status of **Healthy**. After the first sync completes, you can review the discovered members, teams, roles, projects, and NHIs in your Oleria workspace.

On the integration's **Capabilities** tab, **Read users**, **Read groups**, and **Read roles** show as available. If one doesn't, check the token's permissions: **Read users** needs `member:read`, **Read groups** needs `org:read` and `team:read`, and **Read roles** needs `org:read` and `member:read`.

> [!NOTE]
>
> To replace the token, edit the integration, enter the new token in **Auth token**, and select **Update**. Editing the integration always asks for the token, so enter the current one if you don't replace it. You can't change the **Sentry URL** or **Organization slug** of an existing integration.

## Remediation actions

Beyond discovery, Oleria can act on Sentry access to remediate risk. Oleria checks the token's permissions before an action runs and reports any that are missing.

| Action | What it does | Reversible? | Sentry permissions |
| :- | :- | :- | :- |
| Add to or remove from a team | Adds a member to a team or removes them from it. If the member is already in the state you asked for, nothing changes. | Yes - applies the opposite change. A removed **Team Admin** is added back as **Team Admin**. | `member:read`, `team:read`, `org:write` |
| Add a role | Sets a member's organization role. If the member already holds that role or a higher one, nothing changes, so the action never demotes anyone. Retired roles can't be assigned. If the role has more access than the connection's token, Oleria reports the missing permission. | Yes - restores the previous role. | `org:read`, `member:read`, `member:admin`, with a user auth token of an **Owner** or **Manager** |
| Remove a role | Moves the member from that organization role to the organization's default role, because every member holds exactly one organization role. The default role itself can't be removed. | Yes - restores the previous role. | `org:read`, `member:read`, `member:admin`, with a user auth token of an **Owner** or **Manager** |
| Create user | Invites the email to the organization at its default role, in the teams you choose. If the email is already a member or invited, nothing changes. | Yes - removes the invitation or membership. Sentry accepts the removal only with a user auth token of an **Owner** or **Manager**. | `member:read`, `member:write` |
| Create group | Creates a team whose slug is the group name in lowercase, with other characters turned into hyphens. If that team already exists, nothing changes. | Yes - deletes the team (needs `team:admin`). | `team:read`, `team:write` |
| Delete user | Removes the member from the organization, the same as **Disable account**. | Partly - invites the same email again with the member's previous organization role and teams. | `member:read`, `member:admin`, with a user auth token of an **Owner** or **Manager** |
| Disable account | Removes the member from the organization. Sentry has no suspended state, so removal is the only way to take access away. | Partly - invites the same email again with the member's previous organization role and teams. The invitation is pending until they accept it. | `member:read`, `member:admin`, with a user auth token of an **Owner** or **Manager** |
| Revoke access to a project | Removes the member from every team that gives them access to the project. Sentry grants project access only through teams, so if one of those teams also gives the member another project they can't reach through any other team, Oleria refuses and names that project. Use **Remove from a team** instead. | Yes - adds the member back to those teams with their previous team roles. | `org:read`, `member:read`, `org:write` |
| Disable NHI | Revokes an internal integration token or an organization auth token. | No - Sentry deletes a revoked token. | `org:write`, with a user auth token of an **Owner** or **Manager** |

Revoke access to a project is refused, with the reason, when the member reaches the project through the **Owner** or **Manager** role, or when **Open Membership** is on. Change the member's role, or turn off **Open Membership**, instead.

Oleria won't remove, or remove a role from, the user the connection runs as, and it won't revoke a token of the internal integration the connection uses. It won't remove the organization's only owner or take away their **Owner** role.

Oleria doesn't change what your identity provider manages through SCIM. It refuses to add members to or remove them from a SCIM-provisioned team, to remove a SCIM-provisioned member (so **Disable account** and **Delete user** are refused for them), to change an organization role your identity provider sets, and to revoke project access granted through a SCIM-provisioned team. Make these changes in your identity provider.

**Disable NHI** isn't supported for internal integrations or installed apps, because Sentry has no way to disable or suspend them. Deleting or uninstalling them is permanent, so revoke their tokens instead. With an internal integration token, the **Capabilities** tab shows **Disable NHI accounts** as unavailable, because Sentry accepts token revocation only from a user auth token. The role actions, **Disable account**, and **Delete user** can show as available with an internal integration token that has `member:admin`, but Sentry refuses them when they run.

## Known limitations

* **Activity depends on your plan.** Sentry offers the audit log on Business and Enterprise plans, and Oleria needs `org:write` to read it. Oleria imports up to the last 90 days of events. Without the audit log, Oleria still syncs members, teams, roles, projects, and internal integrations, but it can't import activity or show who created an integration or token.
* **Some actions need a user auth token.** With an internal integration token, Oleria inventories internal integrations, but not their tokens, organization auth tokens, or installed apps. It can't revoke tokens, remove members or invitations, or change organization roles.
* **Personal tokens aren't inventoried.** Sentry lists a user's personal tokens only to that user, so Oleria can't list them for the organization.
* **Internal integration client secrets aren't inventoried.** Sentry doesn't return them in the organization's list of integrations.
* **No password change date.** Sentry doesn't expose when a member last changed their password.
* **No two-factor method detail.** Oleria shows whether a member has two-factor authentication turned on, but not which method they use.
* **No session revocation.** Sentry has no API to end a member's sessions. A removed member can't be re-enabled, because Sentry deletes the membership. Revert the **Disable account** action to invite them again.
* **Self-hosted Sentry must be reachable.** Oleria connects to a self-hosted Sentry over HTTPS from Oleria's cloud. Contact us to allow your host before you connect.

## Existing SCIM connections

If you connected Sentry earlier with the SCIM setup, that connection moves to the Sentry API without reconnecting. Oleria reads your organization slug and host from the stored SCIM base URL, and members and teams keep the same IDs, so existing access reviews and history carry over.

Oleria now reads the organization itself, so the token needs `org:read`. The SCIM token that Sentry generates for SCIM provisioning may not have it, and then the sync reports an error. To get everything described on this page, [create an internal integration token](#create-the-token-in-sentry) with the permissions above. Then edit the Sentry integration in Oleria, paste the token in **Auth token**, and select **Update**.

If your identity provider also uses the SCIM token for provisioning, keep it. Oleria no longer uses it once you enter the new token.

> [!WARNING]
>
> The **Enable account** action from the SCIM setup is no longer available for Sentry, so update any workflows that use it. **Create user** now sends an invitation that the person has to accept, and **Create group** creates a team. **Disable account** now removes members your identity provider didn't provision, and needs a user auth token of an **Owner** or **Manager**. Reverting it invites the member again, and they have to accept the invitation. Deprovision SCIM-provisioned members in your identity provider instead.

## Contact us

For questions about this integration, contact us at [support@oleria.com](mailto:support@oleria.com).


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