This method creates an authenticated user access.
create_credential(user, password, using='default')
|Username to create.|
|Password for the user to create.|
|Alias of the Milvus server to create the user.|
from pymilvus import utility utility.create_credential('user', 'password', using='default')
To stop using the authenticated access, or to log in to another authenticated user, you need to disconnect from the Milvus instance and re-connect to it.
- Username must not be empty, and must not exceed 32 characters in length. It must start with a letter, and only contains underscores, letters, or numbers.
- Password must have at least 6 characters and must not exceed 256 characters in length.