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:

  • Console

  • Studio

Run the following command:

user password-update <username>

Where <username> is the name of the user.

You will be prompted for a new password.

Coming soon.

To update a user’s password programmatically:

  • Rust

  • Python

  • Java

  • Node.js

  • C#

  • C++

  • C

  • HTTP

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

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

driver.users.get("<username>").update_password("<password>")

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

driver.users().get("<username>").updatePassword("<password>");

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

Coming soon.

Send a users PUT HTTP request:

curl
curl --request PUT \
  --url {http/https}://{address}:{http_port}/v1/users/<username> \
  --header 'Authorization: Bearer {ACCESS-TOKEN}' \
  --json '{"password": "<password>"}'

Where {ACCESS_TOKEN} is your authentication token, <username> is the name of the user, and "<password>" is its new password.