milvus-logo
LFAI
< Docs

list_users()

This method lists the information of all users on the current Milvus instance.

Invocation

list_users(include_role_info, using="default")

Parameters

ParameterDescriptionTypeRequired
include_role_infoWhether to list roles granted to the userBoolean
True
usingAlias of the Milvus connection to be attached toStringFalse

Return

Returns a UserInfo object comprising a list of UserItem objects.

Example

from pymilvus import connections, utility
connections.connect()
users = utility.list_users(include_role_info)
print(f"users info: {users}")

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?