create_user()

This operation creates a user with a password.

Request Syntax

create_user(
    user_name: str,
    password: str,
    timeout: Optional[float] = None
) -> None

PARAMETERS:

  • user_name (str) -

    [REQUIRED]

    The name of the user to create.

  • password (str) -

    [REQUIRED]

    The password for the user.

  • timeout (float) -

    The timeout duration for this operation.

RETURN TYPE:

None

This operation returns no value.

EXCEPTIONS:

  • MilvusException

    This exception will be raised when any error occurs during this operation.

  • ParamError

    This exception will be raised when a parameter value is invalid.

Examples

client.create_user(
    user_name="analyst_user",
    password="P@ssw0rd!",
)

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?