User management
CREATE USER alice SET PASSWORD $password
Create a new user and a password. This password must be changed on the first login.
ALTER USER alice SET PASSWORD $password CHANGE NOT REQUIRED
Set a new password for a user. This user will not be required to change this password on the next login.
ALTER USER alice IF EXISTS SET PASSWORD CHANGE REQUIRED
If the specified user exists, force this user to change their password on the next login.
ALTER USER alice SET STATUS SUSPENDED
(â ) Change the user status to suspended. Use SET STATUS ACTIVE to reactivate the user.
ALTER USER alice SET HOME DATABASE otherDb
(â ) Change the home database of user to otherDb. Use REMOVE HOME DATABASE to unset the home database for the user and fallback to the default database.
ALTER CURRENT USER SET PASSWORD FROM $old TO $new
Change the password of the logged-in user. The user will not be required to change this password on the next login.
SHOW CURRENT USER
List the currently logged-in user, their status, roles and whether they need to change their password. (â ) Status and roles are Enterprise Edition only.
SHOW USERS
List all users in the system, their status, roles and if they need to change their password. (â ) Status and roles are Enterprise Edition only.
SHOW USERS
YIELD user, suspended
WHERE suspended = true
List users in the system, filtered by their name and status and further refined by whether they are suspended. (â ) Status is Enterprise Edition only.
RENAME USER alice TO alice_delete
Rename the user alice to alice_delete.
DROP USER alice\_delete
Delete the user.