Required Permissions
The user authorizing the Snyk connection must have appropriate permissions to access projects and vulnerability data.User Authorization Flow
Unlike admin consent flows, Snyk uses standard user-level OAuth. The user authorizes Leen’s Snyk app to access Snyk resources based on their individual permissions within the organization.Important: Permissions are scoped based on the user’s role in the Snyk organization. The authorizing user can only grant access to resources they can view.
Snyk Organization Roles
Organization Admin (Recommended)- Can add and delete projects
- Can view all projects, vulnerabilities, and reports
- Can manage organization settings and integrations
- Can override Snyk checks and manage users
- Full access to all organization resources
- Best choice for comprehensive data access across the organization
- Can view and test projects
- Can view project history and reports
- Can create pull requests and manage ignores
- Limitation: Cannot add/remove projects or manage users
- May have sufficient permissions depending on data requirements
- Has full permissions at both Group and Organization levels
- Automatically acts as Organization Admin for all organizations in the Group
- Can manage multiple organizations within a group
- Useful if you need to pull data from multiple Snyk organizations
- Read-only access at Group level
- Limited Organization permissions
- Primarily for monitoring purposes
Key Points
- No admin consent required - this is individual user authorization
- The user authorizes access to Snyk resources they have access to
- Permissions are scoped based on the user’s role in the Snyk organization
- Both Organization Admin and Organization Collaborator can view projects, but Admin has broader access
Recommendation: Use an Organization Admin or Group Admin account for the authorization in step 2 to ensure Leen can access all projects and vulnerability data within your Snyk organization.
Snyk App
Leen supports Snyk integrations via OAuth2 and API Keys for both Snyk US, Snyk US-2, and Snyk EU. To integrate with Snyk, users will have to authorize Leen’s Snyk app or provide a valid API key. This will allow Leen to access the appropriate Snyk resources in your account. When using OAuth2, Leen takes care of the code-flow and access token management, so you don’t have to worry about it.Base URL
The optionalbase_url credential tells Leen which Snyk region your account lives in.
It must be one of the following three values:
Leave
base_url out of the request and Leen defaults to https://app.snyk.io (SNYK-US-01),
so you only need to set it for the US-02 and EU regions. Not sure which region you are on?
It is the hostname you use to sign in to the Snyk web console, and Snyk lists the regions on
their regional hosting and data residency page.
An unsupported value fails at connection creation with a 422 naming base_url:
Snyk also hosts an Australia region (SNYK-AU-01,
https://app.au.snyk.io) and Snyk for
Government (SNYK-GOV-01, https://app.snykgov.io). Leen does not currently accept either
as a base_url — please get in touch if you need to connect an account in one of them.Onboarding
Follow the steps below to onboard a user to our Snyk Integration.1
Create Snyk Connection using OAuth flow
With your Leen API Key and your Customer’s Org ID, make an API request to create a new Snyk Connection.
More information can be found on the API Reference page.
The response will look like this:
Example POST body and response
Example POST body and response
2
Redirect User to Snyk
Redirect the user to the 
Once the user has authorized the app, they will be redirected to Leen on a successful authorization.
oauth2_authorize_url from the previous step in a new tab.
This will prompt the user to authorize Leen’s Snyk app to access their Snyk resources.

3
Pull Data
Now that the user has authorized the app, you can pull data from Snyk using the
connection_id from the first step.
More information can be found on the API Reference page.User Creation
Snyk users can be added through your Snyk organization:1
Snyk Web Interface
- Go to
https://app.snyk.io(or your region-specific URL likehttps://app.us.snyk.ioorhttps://app.eu.snyk.io) - Navigate to your organization
- Click on the Members tab in the main navigation
- Click Add members > Invite new members
- Enter the user’s email address
- Assign a role from the dropdown
- Click Invite
2
Auto-Provisioning (if using SSO)
Users can be automatically provisioned when they first sign in via your identity provider (e.g., Okta, Azure AD)
API Key Authentication
1
Navigate to Organization Settings in Snyk
In the Snyk organization you want to connect, go to Settings and click “Manage Service Accounts”.

2
Create an API Key for the Snyk Organization
Under Service Accounts, enter a name, select Org Admin as the role, and choose API Key (no expiry).
Click “Create service account”.

Repeat for each Snyk organization you want to include, or use a group-level service account if applicable.
3
Create Snyk Connection using API Key
With your Leen API Key and your Customer’s Org ID, make an API request to create a new Snyk Connection with the API token created in the previous step.
More information can be found on the API Reference page.
The response will look like this:
Example POST body and response
Example POST body and response
4
Pull Data
Now that the connection has been created, you can pull data from Snyk using the
connection_id from the previous step.
More information can be found on the API Reference page.