MCPHerramientas MCP/Clientes/update_client_portal_user

update_client_portal_user

Writeclients:write

Enable or disable a client's portal user, or transfer ownership with makePrimary=true. Matches the UI's row actions. Email and names cannot be changed here.

Parámetros
status"active" | "disabled"opcional
makePrimarybooleanopcional
clientIdstringobligatorio
Accepts the database ID or public cli- ID. IDs must belong to the authenticated agency and permitted client.
userIdstringobligatorio
Solicitud de ejemplo
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "update_client_portal_user",
    "arguments": {
      "clientId": "string",
      "userId": "string"
    }
  }
}
Respuesta de ejemplo
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forma de la respuesta se muestra a modo ilustrativo — el contenido real depende de la herramienta y de tus datos.