Snyk
Ploy connects to one Snyk Group with an API token and reads who has access to it: every member of the Group, their Group role, every Organization in the Group, and who belongs to each Organization with their Organization role. It changes access in Snyk only when you ask it to.
This integration is in beta
The Snyk integration is in beta. It was built from Snyk's API documentation and has not yet been run against a real Snyk Group, so the first connections are watched closely by the Ploy team. 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 Snyk fails: the error response Snyk sends back, with names, emails, tokens and other secrets removed. Ploy uses it only to fix problems with this integration. You must tick the box to continue.
What Ploy shows
Every member of the connected Snyk Group, with their email address, name and username.
Each member's Group role, on the Group itself.
Snyk service accounts in the Group, shown as service accounts rather than people.
Every Organization in the Group, and who belongs to it with their Organization role, such as Org Admin or Org Collaborator. Custom Organization roles show by their name.
People removed from the Group or an Organization drop out after the next scan.
Ploy does not show invitations that have not been accepted yet, Projects, sign-in times or two-factor authentication: Snyk does not report the last two per member.
What Ploy can change
Invite a person to one Organization by email, with an Organization role. A flow names both the Organization (its ID or name) and the role (its name as it appears in Snyk). Someone already in the Organization with that role, or already invited, counts as done.
Give, swap or remove an Organization role from the Organization's page in Ploy. Giving a role to someone already in the Organization changes their role. Giving one to someone outside it sends them an invitation. Removing the role they hold takes them out of that Organization; they stay in the Group.
Remove a person from Snyk: Ploy takes them out of every Organization they belong to in the Group, then out of the Group. Removing someone who is already gone counts as done.
Group roles are read only: Snyk's API cannot change them. Snyk has no suspended state, so Ploy cannot suspend a Snyk member. Snyk never lets a token give a role with more access than its own.
Before you start
You need a Snyk Group. Groups come with Snyk's Enterprise plan.
You need a token with the Group Admin role: either a Group Admin's personal API token, or the token of a Group service account created with the Group Admin role. Ploy acts with that token's permissions, so treat it like a password.
Know which Snyk region your account is in. It matches the address you sign in at: app.snyk.io, app.us.snyk.io, app.eu.snyk.io or app.au.snyk.io.
Get your Group ID
In Snyk, switch to your Group.
Open Settings, then General.
Copy the Group ID.
Get an API token
Use one of these:
A personal token: as a Group Admin, open your Account settings in Snyk and copy your API token. It stops working if that person leaves or loses the Group Admin role.
A service account token: in the Group's Settings, open Service accounts, create a service account with the Group Admin role and an API key, and copy the token it shows. Snyk shows it once.
OAuth service accounts are not supported.
Connect Snyk in Ploy
In Ploy, open Integrations and choose Snyk.
Tick the beta consent checkbox.
Choose your Snyk region.
Paste your Group ID and API token.
Select Test connection, then save. Ploy reads the Group's members to check the token works.
If the test fails, check the region matches where you sign in, that the Group ID is the Group's and not an Organization's, and that the token has the Group Admin role.