Docs Menu
Manage Database Users
This topic describes how to manage user access to your database.
Add a database user
You can add a regular user in your database. Please note that root user can be created only when you are creating the database.
from pymilvus import utility
utility.create_credential('user', 'password', using='default')
Parameter | Description |
---|---|
user |
Username of the user to create. |
password |
Password of the user to create. |
using |
Alias of the Zilliz Cloud database connection. |
Delete a database user
You can remove a regular user access in your database. Please note that only root user has the privilege to delete a regular user.
DO NOT delete the root user and the cloud administration user "zcloud_root", which is used by Zilliz Cloud to detect the activity of the database and identify issues.
from pymilvus import utility
utility.delete_credential(user, using='default')
Parameter | Description |
---|---|
user |
Username of the user to delete. |
using |
Alias of the Zilliz Cloud database connection. |
Reset password
You can reset the password for your database users.
from pymilvus import utility
utility.reset_password('user', 'new_password', using='default')
Parameter | Description |
---|---|
user |
Username of the user to reset password. |
new_ppassword |
New password of the user to create. |
using |
Alias of the Zilliz Cloud database connection. |