TypeDB 3.0 is live! Get started for free.

Updating passwords

To update a user’s password, connect to TypeDB and follow the steps below:

Run the following command:

user password-update <username>
bash

Where <username> is the name of the user.

You will be prompted for a new password.

To update a user’s password programmatically:

let user = driver.users().get("<username>").await?;
let result = user.update_password("<password>").await;
rust

Where driver is an instance of a driver, connected to TypeDB, "<username>" is the name of the user, and "<password>" is its new password.