跳到主要内容
版本:v3.0.x

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());