milvus-logo

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

Example

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

Return

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