Teams API
The groups of people a company gives access to at once, and what each one reaches.
List teams
Teams are groups of people a company gives access to at once, managed on the company’s Teams page. Returns every team with its members and how many employees and collections it was given access to, sorted by name. Use `getTeam` for which employees and collections one team can reach, and `listApplicationMembers` for who has access to one employee. The whole list comes from a short-lived cache. A search is read fresh.
Create team
Creates a team in the caller’s company, with its members when `memberIds` is given. Company administrators only. A team gives no access by itself: add it to an employee with `addApplicationMember` or to a collection on its members page. Company administrators are notified by email that a team was created.
Get one team and what it has access to
Returns a team with its members, and the employees and document collections it was given access to with the role it has on each. An employee or a collection the caller cannot see is left out of those lists, while the counts stay whole. Find team ids with `listTeams`.
Change team
Changes a team’s name, description or members. Company administrators only. A field left out stays as it is. `memberIds` is the whole new list: a person not in it leaves the team and loses the access the team gave them, so read the team with `getTeam` first and send the full list.
Delete team
Deletes a team for good. Company administrators only. Its members stay in the company, and lose the access to employees and collections that only this team gave them. Company administrators are notified by email.