🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

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

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?