跳到主要内容
版本:v2.6.x

updateUser()

Updates the description of an existing user.

Java
public void updateUser(UpdateUserReq request)

Request Syntax

Java
UpdateUserReq.builder()
.userName(userName)
.description(description)
.build();

BUILDER METHODS:

  • userName(String userName)

    The name of the user account.

  • description(String description)

    The human-readable description of the user account.

EXCEPTIONS:

  • MilvusClientExceptions

    Raised when any error occurs during this operation. Inspect the exception message for the exact failure reason.

Example

Updates the description of an existing user.

Java
client.updateUser(UpdateUserReq.builder()
.userName("alice")
.description("Senior analytics user")
.build());