Skip to main content

Teams

Group users, targets, and other elements in teams for specific features and a more efficient management. For example, users in a team can only run scans for targets of their team, not the targets of other teams.
Learn more about how to get started with Teams.

Functionality​

The endpoints under Teams provide the following functionality:

  • Create and manage teams (groups of targets and scanning agents only).
  • Check the number of free target slots of the teams.
  • Move targets from one team to another.

Important Notes​

Some relevant information when using Teams:

  • To group users in teams, create user roles with team scope.

Further functionality related to Teams is provided in the following tags:

📄️List the Teams of a Snyk group

Lists the Teams mapped to the Snyk orgs of a group that the user can see. The first call for a group reads its orgs from Snyk and creates their Teams. Later calls return the known Teams immediately and refresh the list in the background (at most every few minutes); `syncing` is true until that refresh and any group permission sync finish. `resolved` tells whether the user's role on a Team has been read from Snyk. Returns 404 when the group is not one of the user's groups.

📄️Sync the user's Snyk permissions on a Team

Reads the user's role on the Snyk organization mapped to this Team (direct, inherited from its group, or a custom role resolved from effective permissions) and stores it as the user's role on the Team, for Snyk-managed accounts only. Any Snyk-mapped Team of the account can be synced, including one the user holds no role on yet. Runs synchronously so the resolved role is returned in the response; `role` is null when the user holds no role on the Team. Returns 409 with code `reauth_required` when the Snyk login token is missing, expired, or rejected by Snyk; the user must log in again. Returns 502 when Snyk cannot be read.