milvus-logo
LFAI
< Docs
  • Python

get_users()

This operation lists all users associated with the current role.

Request Syntax

get_users()

PARAMETERS

N/A

RETURN TYPE:

tuple

RETURNS:

A tuple that contains the names of all users added to the current role.

Examples

from pymilvus import Role

# Get an existing role
role = Role(name="admin")

# List all users associated with the current role
users = role.get_users() # (admin, )

Related operations

The following operations are related to get_users():

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?