> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orquestr.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# sicarv4.users.create

> Create SICAR user (usuario + historial). Copies encrypted password from an existing user — no plaintext. Change password in SICAR UI.

# `sicarv4.users.create`

Create SICAR user (usuario + historial). Copies encrypted password from an existing user — no plaintext. Change password in SICAR UI.

|                |            |
| -------------- | ---------- |
| **Adapter**    | `sicarv4`  |
| **Operation**  | `db.query` |
| **SQL policy** | `write`    |

## Parameters

| Name       | Kind   | Required | Notes                                                                                                                                   |
| ---------- | ------ | -------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| `document` | `json` | Yes      | Required: nombre, usuario, rol\_id (validated). Optional: vnd\_id, domicilio, telefono, password\_from\_usu\_id — no plaintext password |

## Example

```bash theme={"system"}
curl -s -X POST "$API/v1/devices/$DEVICE_ID/functions/sicarv4.users.create" \
  -H "Authorization: Bearer $ORQUESTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"document":{"nombre":"Usuario","usuario":"user01","rol_id":1}}}'
```
