milvus-logo
LFAI
< Docs
  • Node
    • User

createUser()

This method creates a user in Milvus.

Invocation

new milvusClient(MILUVS_ADDRESS).userManager.createUser({
  username: your_username,
  password: your_password,
});

Parameters

CreateUserReq

ParameterDescriptionTypeRequired
usernameThe username used to log into MilvusStringTrue
passwordThe password used to log into Milvus.StringTrue
timeoutAn optional duration of time in millisecond to allow for the RPC. Default is undefinedNumberFalse

Example

new milvusClient(MILUVS_ADDRESS).userManager.createUser({
  username: "milvus",
  password: "milvus",
});

Return

{ error_code: 'Success', reason: '' }
Feedback

Was this page helpful?