All tools

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

FieldTypeDescription
employeesarrayBatch 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.
employeeIdstringEmployee DB ID (from list_employees)
employeeEmailstringAlternative to employeeId: the employee email
employeeNamestringAlternative to employeeId: the employee full name (must be unambiguous)
lastWorkingDaystringLast working day (ISO 8601 date)
systemsarraySystems 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":"…"} })