Repository navigation
Closed
Labels
Description
Part of #5047 (part c).
What the code does today
Observed at feature-train c0eb93b6b2eadf7744eaf0a666e55efb6d27c41f.
- Each grant names one member:
app.competence_records.user_idisNOT NULL(services/platform/backend/db/migrations/0057_competence_records.sql). - These read the register by member:
holdsCapability(services/platform/backend/domains/governance/competence.ts);mayCreateApiKeysandmayConnectAgentIn(services/platform/backend/auth/api-key-create-gate.ts), which queryapp.competence_recordsdirectly byuser_id;removeMembershipCascade(services/platform/backend/auth/membership.ts), which revokes a member's grants when the member leaves.
- Team membership is changed by org admins and by identity-provider sync.
services/platform/backend/domains/teams/routes.tssays adding and removing members needs an org admin. Memberships can also come from an identity provider, which records where each one came from.
What is asked
- A grant can name a team instead of a member. The team's current and future members hold the right while they are in the team, and leaving the team ends it.
- The schema of
app.competence_recordscan hold a team grant. holdsCapability,mayCreateApiKeysandmayConnectAgentIntake team grants into account.- The register (Governance › Competences) lists team grants.
- The audit log records grants and revocations per team.
For triage
Check who may change a team's members. If that is anyone beyond those who may grant today (owners and admins), a team grant widens what they may confer, and that part needs a person's decision. Identity-provider sync may be such a case: group sync from SSO or SCIM would then confer rights.
SSO and SCIM groups as a source of grants stay out of this issue until team grants land (see #5047).
Done when
- An admin grants Call models over the API to a team in one dialog, and a member who joins the team later holds the right without another grant.
- Leaving the team, or revoking the team grant, ends the right.
- The register shows team grants, and the audit log records them per team.
- The competences and teams docs are updated in en, de and fr.
Activity
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
tale-code-bot commentedon Oct 31, 2026
Landed on
release/0.6with feature train #5221 (merged by rebase on 2026-10-31 at 20:26:51 UTC) as commit 570df7f (feat(platform): grant a competence to a team). It ships with Tale 0.6.0. GitHub closes issues only for commits onmain, so the feature-train role closes this one. Task: TALE-280.feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team
feat(platform): grant a competence to a team