Human resources · deactivate_accounts
Deactivate accounts
Revoke accesses when someone leaves.
- Price
- included
- Requirements
- No connector
- runs on platform keys
- Human approval
- Yes, by default
- outside-facing write: a human validates
Input
| Field | Type | Description |
|---|---|---|
| employees | array | Batch mode: the FULL list of leaving employees to offboard in one call (preferred whenever there is more than one). Each item takes the same fields as a single employee. When provided, the top-level single-employee fields are ignored. |
| employeeId | string | Employee DB ID (from list_employees) |
| employeeEmail | string | Alternative to employeeId: the employee email |
| employeeName | string | Alternative to employeeId: the employee full name (must be unambiguous) |
| lastWorkingDay | string | Last working day (ISO 8601 date) |
| systems | array | Systems to deactivate. Use ["all"] to deactivate all systems (default). |
Call this tool
Through the HTTP API, or from the MCP server with the run meta-tool.
curl https://api.ezyagents.fr/gateway/v1/run \
-H "Authorization: Bearer ezk_…" -H "Content-Type: application/json" \
-d '{"tool":"deactivate_accounts","input":{"employees":[],"employeeId":"…","employeeEmail":"…","employeeName":"…"}}'$
run({ "tool": "deactivate_accounts", "input": {"employees":[],"employeeId":"…","employeeEmail":"…","employeeName":"…"} })