Skip to main content

Add users to a team with the REST API

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

Send the following request to add users to a team:

http --auth-type=veracode_hmac PUT "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 request overwrites the list of users instead of adding them to the specified team.