Users

Users are accounts that can interact with Elements, whether they are administrators or end users of the applications in the instance. See Users and Profiles for more info.

User Structure

These are the fields that make up a user.

  • name: This is the username.
  • email: This is the user's e-mail.
  • level: This is the user's role. This can be SUPERUSER, USER, or UNPRIVILEGED.

Managing Users in the Console

Users are managed in the Users section of the admin console, which can be accessed from the upper nav bar or in the hamburger menu.

The "Add User" button will open the new user panel.

Users can be edited by tapping the "Edit" button next to that user, or can be deleted by tapping the "Delete" button. Use the search function to more easily find specific users.

Passwords can be set or changed using the admin console as well. In the database, they are salted and hashed and can't be manipulated directly.

Add a new user

JSON Structure of Users

Here is a sample of a user JSON entry from the database:

{
    "_id" : ObjectId("5cdb0aa4e96c3c4f2bfe16ea"),
    "active" : true,
    "name" : "jsmith",
    "email" : "jsmith@elements.com",
    "level" : "SUPERUSER",
    "salt" : { "$binary" : "/thisissalt", "$type" : "00" },
    "passwordHash" : { "$binary" : "thisisapasswordhash=", "$type" : "00" },
    "hashAlgorithm" : "SHA-256"
}