milvus-logo
LFAI
< Docs
  • Java

listUsers()

This operation lists the names of all existing users.

public List<String> listUsers()

Request Syntax

listUsers();

RETURN TYPE:

List<String>

RETURNS:

A list of strings containing the user names.

EXCEPTIONS:

  • MilvusClientExceptions

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

Example

List<String> resp = client.listUsers();