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}")