fossa_update_team_assignments
Manage a FOSSA team's assigned users, projects, or release groups via add, remove, or replace actions.
Instructions
Change what is assigned to a FOSSA team: its members, its projects, or its release groups.
WRITES TO FOSSA. Requires FOSSA_ALLOW_WRITES=true and FOSSA_ALLOW_ADMIN=true.
Any call that can take an assignment away — action "remove" or "replace", or
a projects call using all_projects or project_filters — additionally
requires FOSSA_ALLOW_DESTRUCTIVE=true. A bounded "add" does not.
target picks the collection and decides which of the remaining arguments
apply; passing one that belongs to a different target is rejected before any
request is made.
"users" takes
users, a list of objects with the keysidand, for the add and replace actions,roleId."projects" takes exactly one of
projects(a list of project locators),all_projects, orproject_filters(an object with any oftitle,labels,type,lastRevisionWithin,isPublic)."release_groups" takes
release_group_ids, and supports only add and remove. Every project in a release group must already be on the team before the release group can be added.
action "replace" sets the collection to exactly what is named and removes
everything else, so replacing the user list with one entry leaves a team of
one. all_projects and project_filters address an unbounded set:
FOSSA resolves them server-side, so the number of projects affected is not
known before the call. all_projects with action "add" hands the team every
project in the organization; with "remove" it strips the team of all of them.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| users | No | ||
| action | Yes | ||
| target | Yes | ||
| team_id | Yes | ||
| projects | No | ||
| all_projects | No | ||
| project_filters | No | ||
| release_group_ids | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||