🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

milvus-logo
LFAI
< Docs

reset_password()

This method resets the password of the specified user. You have to specify the name, old password, and new password of the user.

Invocation

reset_password(user, old_password, new_password)

Parameters

ParameterDescriptionTypeRequired
userName of a userStringTrue
old_passwordOriginal password of the userStringTrue
new_passwordNew password of the userStringFalse

Return

No return.

Raises

Example

from pymilvus import connections, utility
connections.connect()
utility.reset_password(user, old_password, new_password)
users = utility.list_usernames()
print(f"users in Milvus: {users}")

Limitation

Password must have at least 6 characters and must not exceed 256 characters in length.

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?