Directory

Suspend a leaver

directory_suspend_user · Deletes data · Markdown

Blocks a leaver's sign-in and ends their sessions, after the owner approves by default.

$0.25 a call

From your agent’s balance. A call that fails costs nothing.

An example

Lena's last day was Friday. Suspend her account.

Your agent callsdirectory_suspend_user$0.25 a call

The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.

With these arguments
{
  "person": "lena.brandt@hansenvoss.example"
}
What comes back
{
  "suspended": {
    "id": "00u1",
    "name": "Lena Brandt",
    "email": "lena.brandt@hansenvoss.example",
    "title": "Support agent",
    "department": "Support",
    "enabled": false,
    "status": "suspended"
  },
  "conecto_assistants_ended": 0
}

Use it when

Someone leaves, or an account must be stopped at once.

What it does

Block a person's sign-in and end every session they have, as when they leave; their own assistants on this Conecto account stop too. Check who it is with directory_get_user first. On accounts with an owner it waits for the owner's approval by default (an approval rule made on connecting). directory_restore_user undoes it.

What comes back

suspended: the person, now unable to sign in. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
personRequiredstringThe person's id in the directory, or their email. 1 to 200 characters.

The call

Over MCP, call directory_suspend_user on https://api.conecto.chat/mcp/directory. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/directory_suspend_user \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"person":"lena.brandt@hansenvoss.example"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
not_connected409No directory is connected yet.Connect Entra ID or Okta with directory_connect.
not_found404The directory has no such person or group.Look the person up with directory_list_users.
directory_rejected502The directory refused, usually because a permission is missing.Ask its admin to grant what the message names.
directory_unavailable503The directory could not be reached.Try again in a minute; nothing changed.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md