Directory

Create an account for a joiner

directory_create_user · Changes data · Markdown

Opens a joiner's account with their title, department and groups; no password passes Conecto.

$0.25 a call

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

An example

Jonas Becker starts in the warehouse on Monday as a warehouse operative. Set up his account.

Your agent callsdirectory_create_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
{
  "first_name": "Jonas",
  "last_name": "Becker",
  "email": "jonas.becker@hansenvoss.example",
  "title": "Warehouse operative",
  "department": "Warehouse",
  "groups": [
    "00g1warehouse"
  ]
}
What comes back
{
  "person": {
    "id": "00u3",
    "name": "Jonas Becker",
    "email": "jonas.becker@hansenvoss.example",
    "title": "Warehouse operative",
    "department": "Warehouse",
    "enabled": true,
    "status": "active"
  },
  "groups_added": 1,
  "next": "Okta emails them an activation link."
}

Use it when

Someone starts and needs their work account.

What it does

Open a joiner's account in the directory, with their title, department and groups. Okta emails them their own activation link; in Entra ID they start with the company's usual way in (a Temporary Access Pass or a reset). Conecto never sees a password.

What comes back

person: the new account; groups_added; next: how they sign in the first time. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
first_nameRequiredstring1 to 80 characters.
last_nameRequiredstring1 to 80 characters.
emailRequiredstringTheir work address and sign-in name. 3 to 200 characters.
titlestringUp to 120 characters.
departmentstringUp to 120 characters.
groupsarray of stringsGroup ids to add them to. Up to 20 items.

The call

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

Terminal
curl -X POST https://api.conecto.chat/v1/tools/directory_create_user \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"first_name":"Jonas","last_name":"Becker","email":"jonas.becker@hansenvoss.example","title":"Warehouse operative","department":"Warehouse","groups":["00g1warehouse"]}'

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.
conflict409The directory has that person already.Update them instead.
invalid_input400email is not an address.Give their work address.
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