This method lists the relationship between the current role and the specified operation object.
|Type of the object to which the privilege belongs, such as Collection, Index, Partition, etc. This parameter is case-sensitive.||String||True|
|Name of the object to which the role is granted the specified prvilege.||String||True|
For details on applicable objects and privileges, refer to Users and Roles.
GrantInfo object comprising a list of
from pymilvus import connections from pymilvus.orm.role import Role connections.connect() role = Role(role_name) role.list_grant("Collection", collection_name)