Skip to main content

updateUser()

This operation updates the description of an existing user without changing the user password.

java
public void updateUser(UpdateUserReq request)

Request Syntax

java
client.updateUser(UpdateUserReq.builder()
.userName(String userName)
.description(String description)
.build()
);

BUILDER METHODS:

  • userName(String userName)

    [REQUIRED]

    The name of the user to update.

  • description(String description)

    The new description of the user. Use an empty string to clear the description.

RETURNS:

void

This operation returns no value.

EXCEPTIONS:

  • MilvusClientException

    This exception will be raised when any error occurs during this operation.

Example

java
import io.milvus.v2.service.rbac.request.UpdateUserReq;

client.updateUser(UpdateUserReq.builder()
.userName("analyst_user")
.description("Read-only analyst account")
.build());
Minimum SDK versionv3.0.x
Ctrl I