updateUser()
This operation updates the description of an existing user without changing the user password.
public void updateUser(UpdateUserReq request)
Request Syntax
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
import io.milvus.v2.service.rbac.request.UpdateUserReq;
client.updateUser(UpdateUserReq.builder()
.userName("analyst_user")
.description("Read-only analyst account")
.build());