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, )
Feedback

Was this page helpful?