Teams¶
A team bundles users and workers into one unit. A single grant on a project or cache then applies to all members of that team. Teams can own projects and caches.
flowchart LR
team[Team] -- users with a role --> project[Project]
team -- workers --> project
team -- users with a role --> cache[(Cache)]
Members¶
| Role | Rights |
|---|---|
| Admin | Change settings, members, invitations, workers and grants. Approve requests. Delete the team |
| Member | See the team page |
- Invitations: Admins invite users by name. Users join when they accept an invitation at Requests in the user menu in the header. Instance admins select Add now to add members without an invitation.
- Last Admin: Every team must have at least one Admin. Removing or demoting the last Admin is refused.
- Creation:
permissions.createTeamcontrols who can create teams. The creator is the first Admin.
Grants¶
A grant links one team to one project or cache. Each grant controls one kind of access.
| Target | Grant | Effect |
|---|---|---|
| Project | Users with a role | Members receive that role in the project |
| Project | Workers | Team workers take the project's jobs |
| Cache | Users with a role | Members receive that cache role |
Set that person's role with direct membership. Team grants apply only to people who don't have direct membership. Remove direct membership to fall back to the team role. Find every person with access and the origin of that access on the Members page for a project or cache.
Requests¶
A grant requires consent from two parties: the project or cache, and the team.
| Caller | Outcome |
|---|---|
| Member management rights on the project or cache, plus Admin in the team | Grant becomes active immediately |
| Member management rights only | A pending request appears on the team page and stays there until a team Admin approves it |
| Either party | Can revoke the grant |
Activation of the team's workers within an existing grant requires a team Admin.
Team Workers¶
Register a team worker once in the Workers section of the team page. The worker can then take jobs from every project that grants access to the team's workers.
- Peers file: one line per token, in the form
<team id>:<token>or*:<token>. Details in the peers file. - Caches: Projects without a writable cache subscription don't accept team workers. The card for Readiness and
gradient project showon the project page list the missing subscriptions. - Removal: when a grant, the team or the worker goes away, running jobs in the affected projects end.
Owner Team¶
Every project and cache can have an owner team. Select an owner team in the Owner team field of the create dialog, or pass --team to gradient project create. The field and gradient project create preselect a team only when the user can administer exactly one team. Instance administrators see the only team of the user preselected. Team administrators and instance administrators see Create Project and Create Cache buttons on a team page. Those buttons open the dialog with that team preselected. Only team administrators and instance administrators can select a team as owner. The project and cache lists show the owner team after each name.
The Default role for members on team projects setting can assign the selected role to every user on the team for projects of the team. Access has one source. One grant with the mark of the owner grant is that source. Project admins don't need an invitation to add members of the owner team. They can also add users who already have project access through team grants.
Add team workers to all new projects: this setting can grant the team workers to all new projects regardless of the owner team. Only superusers can edit these settings. Team server is in system state. local worker is the worker for that team. New projects get this worker only when services.gradient.grantLocalWorkerToNewProjects is true.
Single Sign-On¶
A team can sync with an identity provider group. See Single Sign-On for setup instructions.
oidc_group: users in that group join the team at sign-in. Removal from the claim removes them from the team.scim_group: the provider can manage the team's membership directly.
Only superusers can edit these two fields.
Mail and Dashboard¶
- Mail actions:
team:<name>as asend_mailrecipient can reach every verified member of a team granted with users on the project. See Actions. - Dashboard: tasks of team projects rank after starred and active tasks, and before tasks of direct memberships.
Related¶
- Projects and Tasks covers the project side of a grant
- Workers describes project workers, team workers and the local worker
- Declarative State shows teams as NixOS options