milvus-logo
LFAI
< Docs
  • Java

revokeRole()

This operation revokes the role assigned to a user.

public void revokeRole(RevokeRoleReq request)

Request Syntax

revokeRole(RevokeRoleReq.builder()
    .roleName(String roleName)
    .userName(String userName)
    .build()
)

BUILDER METHODS:

  • roleName(String roleName)

    The name of the role to revoke.

  • userName(String userName)

    The name of an existing user.

RETURNS:

void

EXCEPTIONS:

  • MilvusClientExceptions

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

Example

RevokeRoleReq revokeRoleReq = RevokeRoleReq.builder()
        .roleName("db_ro")
        .userName("test")
        .build();
client.revokeRole(revokeRoleReq);

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?