Create or get a Sophia user (import)
import_ensure_userCreates a person record by email if none exists, optionally marked deactivated for former authors; returns the existing person unchanged when the email is already present. No password or email is sent.
Instructions
Needs a token with the import:write scope whose owner is a global admin. Nothing is emailed or notified, and no per-row audit events are written. Make sure a person exists, by email. No password and no mail is created: an imported person later signs in with SSO (linked by verified email) or, in local mode, with "forgot password". If the email already exists it returns that person WITHOUT changing them. Use deactivated=true for people who left the company but authored content.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"email": "<email>",
"first_name": "<first_name>",
"last_name": "<last_name>"
},
"name": "import_ensure_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| last_name | Yes | ||
| first_name | Yes | ||
| deactivated | No | ||
| display_name | No | Defaults to first and last name. |