Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Operators

An operator is a person who signs in to the admin. Accounts are managed under Settings → Users → Administrators, gated by backend.manage_users.

From the panel

ActionWhereEffect
CreateNew on the listUsername, email, name, roles. A temporary password is generated and shown once; the account must replace it at first sign-in.
Assign rolesThe edit screenOnly roles granting no more than you hold; never your own.
Override a permissionThe edit screenAllow or Deny one permission regardless of roles.
DeactivateThe edit screenSigns the account out everywhere and refuses sign-in; reversible.
Reset passwordThe edit screenA new temporary password shown once; every device signed out. Never your own account, never one holding more than you.
UnlockThe edit screenClears a sign-in lockout. Shown only while locked.

Every action is on the audit log, named after the account it touched.

From the command line

lat admin create editor --email editor@acme.test --first-name Editor --generate
lat admin reset-password editor --generate
lat admin list

--generate prints a strong password and marks it temporary; a typed or prompted password is the operator’s own.

From code

use laterite_auth::NewOperator;
use laterite_core::Actor;

let id = auth
    .create_operator(
        NewOperator {
            username: "editor",
            email: "editor@acme.test",
            first_name: "Editor",
            last_name: None,
            password: &laterite_auth::password::generate(),
            timezone: None,
        },
        &Actor::user(admin.id, &admin.username),
    )
    .await?;
auth.require_password_change(id).await?;

let temporary = auth.reset_operator_password(id, &actor).await?;
auth.unlock("editor").await?;

create_superuser makes a superuser the same way; first-run setup and lat admin create use it.