milvus-logo
LFAI
< Docs
  • Python

get_users()

This method lists all users associated with the current role.

Invocation

get_users()

Parameters

None

Return

Returns a UserInfo object comprising a list of UserItem objects.

Example

from pymilvus import connections
from pymilvus.orm.role import Role
connections.connect()
role = Role(name=role_name)
users = role.get_users()
print(f"users added to the role: {users}")

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?