Manage Teams
Group the users and agents who work together into a team, then grant or deny access to the team with one access policy instead of naming each member. Adding someone to a team applies the team’s policies to them, and removing them usually stops those policies from applying.
After reading this page, you will be able to:
-
Create a team and manage its members
-
Grant or deny access to every member of a team with an access policy
-
Delegate member management to a team lead
Prerequisites
-
Permission to create teams and manage their members, which the Full access policy template and the Admin role grant. To only view teams and their members, the Read only template or higher is enough. See Team permissions.
-
Permission to author access policies, so that you can grant a team access. See Manage Access Policies.
How teams work
A team is a named set of members that an access policy can grant or deny access to as a whole.
-
Members: A team holds users, identified by email address, agents, identified by name, and other teams. A team can’t contain a group or a service account. If you add a service account’s email as a user, the Members tab shows its type as Service account. The team’s policies still don’t apply to the requests that service account makes with its API keys.
-
Teams inside teams: When you add a team as a member, its members also belong to your team and to every team that your team belongs to. Membership flows one way: members of your team don’t join the team you added. A team can belong to several teams, but it can’t contain itself, directly or through another team. A team’s Members tab lists only its direct members.
-
Teams and groups: Your identity provider sends group membership with each sign-in, and you manage it there. Agentic Data Plane stores team membership, and you manage it on the Teams page. A policy can name either.
-
ID: Each team has an ID, such as
platform-engineering, that never changes. Renaming a team changes only its name, so policies that name the team keep working. The API names the teamteams/platform-engineering, but a policy uses the bare ID. -
Policies: A policy that names a team applies to each member of the team, including the members of teams inside it. In Cedar, a team’s members are in
TeamIdentity::"<team-id>", where<team-id>is the team’s ID, so a policy names them asprincipal in TeamIdentity::"<team-id>". -
Team resource: The team itself, which you view, edit, and delete, is the resource
Team::"<team-id>", and each membership is aTeamMemberinside it. A policy namesTeamIdentityfor who it applies to andTeamfor what it acts on.
Membership changes take effect asynchronously, so allow a short delay before you test the change.
Open the Teams page
Open Teams under Access in the sidebar. To find a team, use the Search teams field. Click a team to manage its members, policies, and settings.
Create a team
-
On the Teams page, click Create team.
-
Enter a Name of up to 128 characters, such as
Platform engineering.The page shows the ID it derives from the name, in lowercase letters, numbers, and hyphens, at most 63 characters. For
Platform engineering, the ID isplatform-engineering. If the ID would start with a digit, the page adds ateam-prefix. For2026, the ID isteam-2026. A name with no Latin letters or digits gets a generated ID, such asteam-a1b2c3. You can’t change the ID after you create the team. -
Optional: Enter a Description of up to 1,024 characters.
-
Optional: Under Tags, add key-value pairs.
A policy can read a team’s tags, for example to let a lead manage the members of every team tagged
org=eng. A team holds at most 50 tags, each value at most 256 characters. -
Optional: Under Members, add the team’s first members, the same way as in Add and remove members.
-
Click Create team.
Add and remove members
To add members:
-
On the team’s Members tab, click Add member.
-
Select the member’s type: User, Agent, or Team.
-
Select the member:
-
For a user, select someone from your organization directory, or enter their email address.
-
For an agent, select one of the agents in this environment.
-
For a team, select another team. Its members join this team too. See How teams work.
The member joins the Selected members list. To add more members, up to 100 at a time, repeat the last two steps.
-
-
Click Add members.
To remove a member:
-
On the team’s Members tab, open the actions menu on the member’s row.
-
Click Remove from team.
-
Click Remove member to confirm.
Removing a member removes only its direct membership. If it also belongs through a team that’s a member of this team, the team’s policies still apply to it. Removing a member can also lift a forbid that applied to it, so review the team’s policies before you change its members.
Deleting an agent also removes it from every team. An agent you later create with the same name starts in no team.
Grant access to a team
A team’s Policies tab lists every access policy whose principal is the team.
-
On the team’s Policies tab, click Create policy.
The form sets the team as the principal and starts in Template mode.
-
Enter a Name.
-
Under Permissions, choose how to grant:
-
To link a template, such as Read only, keep Template and select the template. The template sets the effect and the actions.
-
To choose the effect and the actions yourself, click Actions, and then set Effect to Permit or Forbid.
-
-
Under Applies to, choose the resources the policy covers. See Create a policy.
-
If you clicked Actions, select the actions under Action.
Because you set Applies to first, Action disables the verbs that type doesn’t support.
-
Optional: If you clicked Actions, narrow the grant under Conditions by a resource tag or its creator.
-
Click Create policy.
The team’s Policies tab lists the new policy.
You can also start from the Policies tab on the Access page and choose Team as the principal type.
This policy lets members of platform-engineering view, edit, and run every agent tagged project=platform:
permit (
principal in TeamIdentity::"platform-engineering",
action in [Action::"Agent.get", Action::"Agent.list", Action::"Agent.update", Action::"Agent.invoke"],
resource is Agent
) when {
resource.hasTag("project") && resource.getTag("project") == "platform"
};
When a member runs one of these agents, Agentic Data Plane checks the member’s own permissions for the agent’s model and tool calls. For those calls to succeed, also grant the members the LLM providers and MCP server tools the agents use. See Give a team access to its own resources.
A member gets the policies of every team it belongs to, directly or through a team inside that team, and a forbid from any of those teams overrides every permit.
Let a team lead manage members
The Full access template and the Admin role let someone manage every team. To limit someone to the members of one team, grant the TeamMember actions on that team instead. Each membership is a TeamMember resource inside the team’s Team resource, so scope the grant with resource is TeamMember in Team::"<team-id>".
A lead who can add members can also add another team as a member. That brings the other team’s members, now and in future, under this team’s policies, so delegate member management only to someone you’d trust to grant this team’s access to anyone.
These two policies let members of eng-leads view the engineering team and add and remove its members. A policy holds one statement, so create each statement as its own policy.
permit (
principal in TeamIdentity::"eng-leads",
action in [Action::"Team.get", Action::"Team.list"],
resource == Team::"engineering"
);
permit (
principal in TeamIdentity::"eng-leads",
action in [Action::"TeamMember.create", Action::"TeamMember.delete", Action::"TeamMember.list"],
resource is TeamMember in Team::"engineering"
);
To build the first policy in the policy form:
-
On the
eng-leadsteam’s Policies tab, click Create policy.The form sets the
eng-leadsteam as the principal. -
Enter a Name.
-
Under Permissions, click Actions.
Switch before you set Applies to. In Template mode, the form has no action list, and it changes a Members of a team scope to the team itself.
-
Under Applies to, click Specific resource.
-
Set the type to Team.
With Applies to set first, Action disables the verbs that type doesn’t support.
-
Select the
engineeringteam. -
Under Action, select Get and List.
-
Click Create policy.
The eng-leads team’s Policies tab lists the new policy.
To build the second policy, follow the same steps, but set the type to Members of a team, select the engineering team, and under Action, select Create, Delete, and List.
The form writes bare verbs such as Action::"get" instead of Action::"Team.get". Because each policy pins the resource type, either action ID grants the same access.
A lead whose only grants are these policies sees only the engineering team on the Teams page. To also let them edit the team’s name, description, and tags, add update to the first policy’s actions, or Action::"Team.update" in Cedar.
A membership has no tags of its own, so a tag condition on a TeamMember reads the tags of the membership’s team. To delegate member management for every team tagged org=eng, condition both policies on the tag rather than naming a team:
org=engpermit (
principal in TeamIdentity::"eng-leads",
action in [Action::"Team.get", Action::"Team.list"],
resource is Team
) when {
resource.hasTag("org") && resource.getTag("org") == "eng"
};
org=engpermit (
principal in TeamIdentity::"eng-leads",
action in [Action::"TeamMember.create", Action::"TeamMember.delete", Action::"TeamMember.list"],
resource is TeamMember
) when {
resource.hasTag("org") && resource.getTag("org") == "eng"
};
Edit or delete a team
To edit a team:
-
Open the team’s Settings tab.
-
Change its name, description, or tags.
-
Click Save changes.
A "Team updated" message confirms the change. The team’s Identity tab shows its ID, who created and last updated it, and when.
Deleting a team deletes its memberships, including its membership in other teams, but keeps the policies that name it. A permit that names the team stops granting, and a forbid that names it stops denying. If you later create a team with the same ID, those policies apply again. A policy that names the team as its principal applies to the new team’s members, and one that names it as a resource applies to the new team.
|
To delete a team:
-
Review the policies that name the team, and delete or change any that a future team with the same ID must not inherit.
The team’s Policies tab lists the policies whose principal is the team. To find policies that name it only in their resource scope or a condition, check the Policies tab on the Access page.
-
On the team’s Settings tab, find the Delete this team section, and click Delete.
-
In the Delete team dialog, type
deleteto confirm. -
Click Delete.
The team disappears from the Teams page. You can also delete a team from the actions menu on the team’s row on the Teams page. That path asks for the same typed confirmation.
Examples
These policies show other ways to use a team in a policy. Replace the team IDs with your own.
The policy form can’t build every example. Where an example says so, write it as Cedar text. Create the policy from the Policies tab on the Access page and switch to the Cedar view, or save the Cedar in a file and run:
rpk ai policy create --name <policy-name> --cedar-file <cedar-file>
Replace <policy-name> with a name for the policy that uses only lowercase letters, numbers, and hyphens. Replace <cedar-file> with the path to the file.
Deny a team regardless of other grants
This policy stops members of contractors from deleting agents, even when another policy or a role grants that action:
forbid (
principal in TeamIdentity::"contractors",
action == Action::"Agent.delete",
resource is Agent
);
Let a team edit what its members created
This policy lets members of platform-engineering edit any agent that a member of the team created:
permit (
principal in TeamIdentity::"platform-engineering",
action == Action::"Agent.update",
resource is Agent
) when {
resource has created_by &&
resource.created_by in TeamIdentity::"platform-engineering"
};
The policy form can’t test a creator’s team, so write this policy as Cedar text.
The condition reads the creator’s teams at request time, so the policy follows membership changes. An agent whose creator leaves the team stops matching.
Deny a team’s agents every action
An agent can be a team member too. This policy denies the agents in quarantine every action they take as themselves:
forbid (
principal is Agent in TeamIdentity::"quarantine",
action,
resource
);
The policy form can’t limit a team principal to agents, so write this policy as Cedar text.
The policy covers only the requests an agent makes with no person behind them. When an agent acts for a person, Agentic Data Plane authorizes the request as that person, so this policy doesn’t stop it. Such requests include a run that a person starts and a scheduled run, which acts for the trigger’s creator.
To cut off an agent’s traffic regardless of whom it acts for, contain it with the kill switch. See Grant an agent its own permissions.
Troubleshooting
Team problems surface when you add members, when you save a policy that names a team, or when a membership change hasn’t taken effect yet.
Adding members fails
Members are added as one batch, so when one member fails, none of the selected members are added.
-
"Some selected members are already in this team": Remove those members from Selected members, then click Add members again.
-
"Adding these members would create a membership cycle": One of the selected teams already contains this team, directly or through another team. Remove that team from Selected members.
-
"Adding members couldn’t be confirmed": Open the team’s Members tab to see which members were added before you try again.
A policy that names a team won’t save
Validation rejects a policy that names a team by its API name, such as teams/platform-engineering, instead of its bare ID. It also rejects a policy whose team membership test can never match, or one that reaches more resources than it appears to. It checks tests in the scope and in conditions alike.
If you save from the UI and the server rejects the policy, the form shows Cedar validation failed and lists each rejected statement. When a policy names a team by its API name, the form suggests the bare ID. For the other team checks, it shows a general message instead of the validation error. To see the validation error, save the policy with rpk ai policy create or rpk ai policy update. Then look up the fragment it contains in A policy won’t save, which gives the fix.
The rpk ai policy analyze command doesn’t run these checks, so a draft that passes it can still fail when you save.