Adding Users to a Team with the Identity API
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:
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": "[email protected]"
},
{
"user_name": "[email protected]"
}
]
}
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.