# Create user

Create a Milvus user with a password. Replace the example value before submitting.

SDK: `@zilliz/milvus2-sdk-node@3.0.10` · Tested with Milvus 3.0.6

Canonical documentation: https://milvus-io.github.io/milvus-sdk-node/rest-api/users/create/

## Section links

- [cURL command](https://milvus-io.github.io/milvus-sdk-node/rest-api/users/create/#curl-command)
- [Default request](https://milvus-io.github.io/milvus-sdk-node/rest-api/users/create/#default-request)
- [Sample response](https://milvus-io.github.io/milvus-sdk-node/rest-api/users/create/#sample-response)
- [Request fields](https://milvus-io.github.io/milvus-sdk-node/rest-api/users/create/#request-fields)

`POST /v2/vectordb/users/create`

Replace `https://your-cluster.example.com` with your Milvus endpoint. Set `MILVUS_TOKEN` for authentication or omit the Authorization header on an unauthenticated cluster.

## cURL command

```bash
curl --request POST --url 'https://your-cluster.example.com/v2/vectordb/users/create' \
  --header 'Content-Type: application/json' \
  --header "Authorization: Bearer ${MILVUS_TOKEN}" \
  --data-raw '{
  "userName": "catalog_user",
  "password": "<YOUR_PASSWORD>"
}'
```

## Default request

```json
{
  "userName": "catalog_user",
  "password": "<YOUR_PASSWORD>"
}
```

## Sample response

```json
{
  "code": 0,
  "data": {}
}
```

## Request fields

- `userName` string (required)
  Milvus user name.
- `password` string (required)
  User password. Use the current password for a password change.
- `description` string
  Human-readable description.

See [`HttpClient.createUser`](https://milvus-io.github.io/milvus-sdk-node/api-reference/http-client/#createuser) for the Node.js SDK method.
