Directory

Update a person in the directory

directory_update_user · Changes data · Markdown

Changes a person's title, department or manager in the directory.

$0.01 a call

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

An example

Mia now leads support. Update her title and make her Jonas's manager.

Your agent callsdirectory_update_user$0.01 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": "mia.schulz@hansenvoss.example",
  "title": "Support lead"
}
What comes back
{
  "person": {
    "id": "00u2",
    "name": "Mia Schulz",
    "email": "mia.schulz@hansenvoss.example",
    "title": "Support lead",
    "department": "Support",
    "enabled": true,
    "status": "active"
  },
  "changed": [
    "title"
  ]
}

Use it when

Someone moves team or gets a new title.

What it does

Change a person's title, department or manager in the directory, as when they move team.

What comes back

person: the person as the directory has them now; changed: what was set. 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.
titlestringUp to 120 characters.
departmentstringUp to 120 characters.
managerstringThe manager's id or email. Up to 200 characters.

The call

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

Terminal
curl -X POST https://api.conecto.chat/v1/tools/directory_update_user \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"person":"mia.schulz@hansenvoss.example","title":"Support lead"}'

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