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.