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

milvus-logo
LFAI
< Docs
  • Python

list_grants()

This method lists all privileges granted to the current role.

Invocation

list_grants()

Parameters

None

Return

Returns a GrantInfo object comprising a list of GrantItem objects.

Example

from pymilvus import connections
from pymilvus.orm.role import Role
connections.connect()
role = Role(role_name)
role.list_grants()

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?