Users
In this guide, you’ll learn how to manage users in your TypeDB cloud application.
User management features are available in TypeDB Cloud only. |
Management tools
You can use TypeDB Console or TypeDB driver API for managing users remotely.
Assuming TypeDB Console is installed, to connect to TypeDB Cloud:
typedb console --cloud=<server-address> --username=<username> --password --tls-enabled=true
For more information on how to use TypeDB Console, see the TypeDB Console page.
Change password on first login
The First thing you need to do is to change the default admin password:
-
Connect to a new TypeDB.
For example, connect with TypeDB Console (see above). Use the default credentials to do so:-
Username:
admin
-
Password:
password
-
-
Change the password for the default
admin
user.
For example, in TypeDB Console, use the following:user password-update
By default, all TypeDB Cloud deployments have only one account: admin
.
This is the administrator account with maximum privileges.
Only this account can use most of the user management features, including creating new users.
In TypeDB Cloud, you must change the administrator’s password to something different from the default value. Until you change the password, you cannot perform any operations other than changing the password. |
Operations
The Change own password operation is available for any user.
All other user management operations are restricted to the built-in admin
account only.
List all users
This action is available only for the admin
account.
To list all users existing on a TypeDB Cloud deployment, in TypeDB Console CLI run:
user list
Create a user
This action is available only for the admin
account.
To create a new user on a TypeDB Cloud deployment, in TypeDB Console CLI run:
user create <username>
Type in a password for the new user when prompted.
Delete a user
This action is available only for the admin
account.
To delete a user on a TypeDB Cloud deployment, in TypeDB Console CLI run:
user delete <username>