Adding Users to a Team with the Identity API

Veracode APIs

This use case scenario provides the Identity REST API command and payload for adding one or more users to a team.

Use this command to add users to a team:
https://api.veracode.com/api/authn/v2/teams/{teamId}?partial=true&incremental=true < input.json
The API passes the JSON file that you populate with the necessary values as shown in this example payload:
{
  "team_name": "Red Team Testing",
  "users": [
    {
      "user_name": "jack_doe@example.com"
    },
    {
      "user_name": "jill_doe@example.com"
    }
  ]
}

You can specify user_id or user_name.

Note: You must set incremental=true or the command overwrites the list of users instead of adding them to the specified team.