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

milvus-logo
LFAI
< Docs

list_roles()

This method lists all roles on the current Milvus instance.

Invocation

list_roles(using="default")

Parameters

ParameterDescriptionTypeRequired
include_user_infoWhether to list users associated with the listed rolesBoolean
True
usingAlias of the Milvus connection to be attached toStringFalse

Return

Returns a RoleInfo object.

Example

from pymilvus import connections, utility
connections.connect()
roles = utility.list_roles()
print(f"roles in Milvus: {roles}")

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?