fossa_update_team_group_assignments
Update a FOSSA team group's assignments by adding, removing, or replacing its member teams or users.
Instructions
Change what is assigned to a FOSSA team group: the teams it contains, or its members.
WRITES TO FOSSA. Requires FOSSA_ALLOW_WRITES=true and FOSSA_ALLOW_ADMIN=true. action "remove" and action "replace" additionally require FOSSA_ALLOW_DESTRUCTIVE=true, because both take an existing assignment away.
"teams" takes
team_idsand supports add and remove. FOSSA removes teams one at a time, so a remove naming several teams issues one request per team and is not atomic: an error partway through leaves the earlier removals applied. The ids that succeeded are reported back."users" takes
users, a list of objects with the keysidand, for the add and replace actions,roleId, and supports all three actions.
Removing a team from a group does not delete the team. Action "replace" on users sets the group's membership to exactly what is named and removes everyone else.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| users | No | ||
| action | Yes | ||
| target | Yes | ||
| team_ids | No | ||
| team_group_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||