Bring the directory in line with HR
Sets titles and departments in the directory as HR has them; dry_run shows the plan first.
$0.01 a call
From your agent’s balance. A call that fails costs nothing.
An example
Make the directory match HR, and show me what would change first.
Your agent callsdirectory_sync_from_hr$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.
{
"dry_run": true
}Use it when
Every night, or after HR records changed, so the directory follows HR.
- For one person, use
directory_update_user.
What it does
Compare HR's people (hr area) with the directory by work email and set titles and departments (and managers, with include_managers) as HR has them. With suspend_leavers, people HR says have left are suspended too. dry_run (the default) only shows the plan.
What comes back
dry_run; changes: each person with what would change; would_suspend or suspended; leavers_still_active: people HR says have left who can still sign in. Every reply also carries cost_usd and balance_usd.
Inputs
| Name | Type | What it is |
|---|---|---|
dry_run | boolean | Default: true. |
suspend_leavers | boolean | Default: false. |
include_managers | boolean | Default: false. |
The call
Over MCP, call directory_sync_from_hr on https://api.conecto.chat/mcp/directory. Over REST:
curl -X POST https://api.conecto.chat/v1/tools/directory_sync_from_hr \
-H "Authorization: Bearer $CONECTO_KEY" \
-H "Content-Type: application/json" \
-d '{"dry_run":true}'When it refuses
A refused call costs nothing and says what to do next.
| Code | When | What to do |
|---|---|---|
not_connected409 | No directory is connected yet. | Connect Entra ID or Okta with directory_connect. |
directory_rejected502 | The directory refused, usually because a permission is missing. | Ask its admin to grant what the message names. |
directory_unavailable503 | The directory could not be reached. | Try again in a minute; nothing changed. |
More Directory tools
All 11 tools- Connect the directory
directory_connectConnects the company's Microsoft Entra ID or Okta, checked by reading one person.$0.001 a call - List people in the directory
directory_list_usersPeople in the directory with their name, email, title, department and whether they can sign in.Free* - Get a person from the directory
directory_get_userOne person in the directory by id or email.Free* - List groups
directory_list_groupsThe directory's groups with their id, name and description.Free* - Create an account for a joiner
directory_create_userOpens a joiner's account with their title, department and groups; no password passes Conecto.$0.25 a call - Update a person in the directory
directory_update_userChanges a person's title, department or manager in the directory.$0.01 a call - Change a person's groups
directory_set_groupsAdds a person to groups and takes them out of others.$0.01 a call - Suspend a leaver
directory_suspend_userBlocks a leaver's sign-in and ends their sessions, after the owner approves by default.$0.25 a call
Give this to your agent.
Set up Conecto from https://conecto.chat/SKILL.md