remove_team_user
Remove a user from a team in Umami Analytics by specifying the team and user IDs to manage team access and permissions.
Instructions
Remove a user from a team
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| teamId | Yes | Team UUID | |
| userId | Yes | User UUID to remove |
Implementation Reference
- src/tools/teams.ts:147-158 (handler)Implementation of the remove_team_user tool, including schema registration and handler logic.
server.tool( "remove_team_user", "Remove a user from a team", { teamId: z.string().describe("Team UUID"), userId: z.string().describe("User UUID to remove"), }, async ({ teamId, userId }) => { await client.call("DELETE", `/api/teams/${teamId}/users/${userId}`); return { content: [{ type: "text", text: `User ${userId} removed from team ${teamId}.` }] }; } );