Sentry
Connect Sentry to Ploy to see everyone in your Sentry organization, including invitations not yet accepted, the organization role each person holds, who is in each team with their team role, and every project. Ploy can also invite people, change their organization role, add and remove people on a team, change their team role, and remove people from the organization.
This integration is in beta
The Sentry integration is in beta. It was built from Sentry's API documentation and has not yet been checked against a live Sentry organization, so some details may need adjusting once customers connect it. Beta does not limit what the integration can do.
The first step of setup is a consent checkbox. Ticking it lets Ploy capture redacted error data when a request to Sentry fails: the error response Sentry sends back, with personal details, tokens and other secrets removed. Ploy uses it only to fix problems with this integration. You must tick the box to continue.
What Ploy reads
Every member of the connected organization, with their email address, name, when they last signed in and whether two-factor authentication is on
Invitations that have been sent but not yet accepted. An invitation that has expired is shown as inactive and holds no access
Each member's organization role (Billing, Member, Admin, Manager or Owner)
Every team, who is in it and each person's team role (Contributor or Admin)
Every project in the organization
Ploy does not show which teams can reach each project. It does not read Sentry's audit log, single sign-on settings or requests to join a team.
What Ploy can change
Invite a person. By email, optionally with an organization role. If they are already a member or already invited, this counts as done. An expired invitation is sent again.
Change a member's organization role. A member holds one organization role, so giving another swaps it. Removing Owner, Manager or Admin makes the person a Member. Sentry only accepts organization role changes from a personal auth token of an Owner or Manager (see below).
Add or remove a person on a team, and change their team role. From the team's page in Ploy. Removing Admin makes the person a Contributor. Organization Owners, Managers and Admins always hold Admin on their teams. Teams managed by your identity provider are changed there.
Remove a person from the organization. Removing someone who is already gone counts as done.
Before you start
You need to be an Owner or Manager of the Sentry organization, and to know whether it stores its data in the United States or the European Union. Sentry shows this under Settings, then General Settings.
Choose a token:
An internal integration token (recommended). It belongs to the organization rather than a person. In Sentry, open Settings, then Custom Integrations, and create an internal integration. Give it Read on Organization, Team and Project, and Admin on Member. Add Write on Team and Organization if Ploy should add and remove team members. Copy its token.
A personal auth token. Sentry lets only a personal token change organization roles. If you want Ploy to change roles, an Owner or Manager creates one under User Settings, then Personal Tokens, with the same permissions.
Connect Sentry
In Ploy, open Integrations, find Sentry and click Connect.
Tick the beta consent checkbox.
Choose where your organization stores its data, and paste the token. Continue.
Choose the organization to scan from the list.
Click Test connection, then save.
Ploy scans one organization per connection. To scan another organization, add another connection.
Troubleshooting
Sentry rejected that token: check the token was copied in full and has not been revoked, and that the region matches where your organization stores its data.
That token cannot read this organization's members: give the token Read on Organization, Team and Project, and Admin on Member.
Sentry could not find that organization in this region: go back, check the region, then choose the organization again.
The organization list is empty: the token or the region is wrong. Check both on the first page.
Sentry refused the role change: organization role changes need a personal auth token of an Owner or Manager, and can only move people between roles no higher than that person's own.
Sentry filed a request for them to join the team: the token cannot add people outright. Approve the request in Sentry, or give the token Write on Organization and Team.