Loading the documentation…

Users

Installer accounts sign in to the DataMind Installer only. DataMind OS keeps its own users separate; see First sign-in to DataMind OS.

The sidebar entry is Register User. The screen heading is User Management: the users list on the left, the Add User form on the right. The first admin is created at the first visit, as Install in depth describes. Signing in and sessions are on Sign in, sessions and account.

Roles and what they can do

There are two roles: Admin and User. Every new account starts as User.

In the InstallerAdminUser
Read the screens and watch the servicesYesYes
Read the configuration, with secret values maskedYesYes
Edit configuration and secretsYesNo
Install, start, stop, restart and update DataMind OS, and apply configurationYesNo
Read the combined container logs and download themYesNo
See the users list and manage accountsYesNo

Host migration and the registry downloads are admin-only as well. A user account opening the users screen reads Admin access is required to view users., and the Add User button is disabled with Only admins can add users.. A refused admin action answers Access denied: this action requires the <needed> role (your role: <role>). A role change takes effect at once: promoting an account grants the admin actions immediately, and demoting one removes them.

The users list

Each row shows the account's email, its role badge (admin or user), a DataMind Platform badge when the account signs in with DataMind Platform, and Active or Inactive. Five accounts show per page: Prev and Next move between pages, and the pager reads Page {x} of {y}. The list reads No users yet. before the first account, Loading users… while it loads, and a just-added account is highlighted in it for a moment. When an action fails, the error reads Failed to delete user, Failed to update user or Failed to change user role.

Each row offers the actions below. Each asks for confirmation first.

On your own row, the role button, Deactivate user and Delete user are disabled, with the tooltips You can't change your own role, You can't deactivate your own account and You can't delete your own account. Reset password works on any account, your own included. To change your own address, use Change email in the account menu.

Add a user

  1. Enter the person's email address in Email address.
  2. Type a password that meets the password rule, and the same password in Confirm password. The checklist under the field ticks each rule off as you type.
  3. Choose the Role: User (the default) or Admin.
  4. Click Add User.

The address is stored in lower case. On success the toast reads User created ({email} was added.) and the new account is highlighted in the list.

If the form has a problem, the toast reads Couldn’t add user (Please fix the highlighted fields.) and the field shows its message: Email is required, Enter a valid email address, Password is required, Confirm your password or Passwords do not match. An address that already holds an account is refused with Email already taken., and the form stays open.

The password rule

At least 8 characters, with an uppercase letter, a lowercase letter, a number and a special character. The checklist reads 8+ characters, Uppercase, Lowercase, Number and Special char, and its meter fills from red through yellow to green as the rules are met. The rule applies to the first account, to Add User and to Reset password. A password that fails it is refused with Password must be at least 8 characters and contain uppercase, lowercase, number, and special character.

Recover when no admin can sign in

You need shell access to the host.

  1. Open a database shell in the Installer's database container. docker ps -a lists it:

    bash
    docker exec -it <container> sh -c 'psql -U "$POSTGRES_USER" -d "$POSTGRES_DB"'
  2. List the accounts:

    sql
    SELECT email, role, is_active, deleted_at FROM users;
  3. If another account can still sign in, follow the case below. If no account can sign in at all, contact DataMind.

Another account can still sign in

Promote it. Use its address in lower case:

sql
UPDATE users SET role = 'admin', is_active = true
WHERE email = '<address>' AND deleted_at IS NULL;

Check it worked. The SELECT shows the account with role admin, is_active = t and an empty deleted_at, and you can sign in with it. Then use Reset password on the admin who could not sign in.

Questions, answered

Why can't I add or manage users?

You are signed in with a user account. The list reads Admin access is required to view users. and Add User is disabled with Only admins can add users.. An admin changes your role in the same list, and it takes effect at once.

What are the password requirements?

At least 8 characters with an uppercase letter, a lowercase letter, a number and a special character. The checklist under a password field shows each rule as you type; The password rule has the full refusal message.

How does a user get a new password?

An admin sets one with Reset password. The reset ends every session of that account, so the person signs in again with the new password.

What happens when I deactivate someone who is signed in?

Their sessions end and they cannot sign in again until you activate the account.

I deleted an account by mistake. Can I get it back?

Yes. Add a user with the same address. The account returns with the password and role you enter.

Why is the address I am adding refused?

It already has an account, active or deactivated. Adding it is refused with Email already taken.. Delete the account first, then add the address again to revive it.

Does a role change take effect immediately?

Yes. A promoted account gains the admin actions at once, and a demoted admin loses them right away.

Can I change my own email or role from the list?

No. Your own row keeps the role, deactivate and delete controls disabled, with the tooltip You can't change your own role. To change your own address, use Change email in the account menu; see Sign in, sessions and account.

Can an admin lock themselves out?

No. Their own row keeps deactivate, demote and delete disabled. If every admin password is lost, use the database recovery.

What does the DataMind Platform badge mean?

The account signs in with DataMind Platform. It was created by Sign in with DataMind Platform, or its owner connected it from the account menu. Disconnect DataMind Platform on the row removes the connection.

How do I find an account in a long list?

Page through it. Five accounts show per page; Prev and Next move between pages, and the pager reads Page {x} of {y}.