milvus-logo
LFAI
< Docs

list_user()

This method lists the information of a specified user.

Invocation

list_user(username, include_role_info, using="default")

Parameters

ParameterDescriptionTypeRequired
usernameName of the user whose information is to be listedStringTrue
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.

Example

from pymilvus import connections, utility
connections.connect()
user = utility.list_user(username, include_role_info)
print(f"user info: {user}")