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

Was this page helpful?