update_user()

This operation updates the description of an existing user without changing the user password.

Request Syntax

update_user(
    user_name: str,
    description: str,
    timeout: Optional[float] = None
) -> None

PARAMETERS:

  • user_name (str) -

    [REQUIRED]

    The name of the user to update.

  • description (str) -

    [REQUIRED]

    The new description of the user. Use an empty string to clear the description.

  • 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.update_user(
    user_name="analyst_user",
    description="Read-only analyst account",
)

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?