Get the current Creatio user
get-current-user-infoRetrieves the current Creatio user’s identity, roles, and local time info so you can set correct record owners and author IDs and calculate dates like today or overdue.
Instructions
Returns the Creatio user this server acts as: { success, userInfo: { id, contactId, contactName, email, cultureInfo, timeZone, utcOffset, now, today, userRoles, ... } }. Call it once before creating records owned by the user — owner/author lookups (OwnerId, AuthorId) take userInfo.contactId, not userInfo.id — or when a tool needs the user as a user/role (adminUnitId = userInfo.id). Also call it once when dates matter: now / today are the user's current date and time, the base for tomorrow, this month or overdue. Reuse the result for the rest of the conversation. timeZone (IANA, e.g. "Europe/Kyiv") and utcOffset (today's, e.g. "+02:00") are the user's Creatio time zone — the one record dates are read and written in (get-guide: datetime-guide). See get-guide: contactid-guide.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get-current-user-info"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||