Administration

Users and roles

Give people access with roles - the six permissions, the built-in roles, custom roles - and manage accounts, sessions and asset scopes.

Everything about access is under Users, which only administrators see:

TabFor
UsersAccounts: create, edit, disable, reset passwords, sign out
RolesThe built-in roles and your own
Identity providersSigning in with company accounts (see Sign-in providers)

Permissions

A role is a set of permissions:

PermissionAllows
ViewLive values, tags, devices, views, trends, alarms and reports
OperateWriting values and setpoints; buttons that call gateway scripts
Acknowledge alarmsAcknowledging and shelving alarms
EngineerDevices, tags, UDTs, views, alarm rules, reports, connectivity and projects
Manage scriptsGateway and tag scripts, the script library, secrets and the console
AdministerUsers, roles, identity providers, Node-RED, and exports with secrets

Built-in roles

The Roles tab showing the four built-in roles, each with the permissions it has and how many users hold it

RolePermissions
viewerView
operatorView, Operate, Acknowledge alarms
engineerOperator’s, plus Engineer and Manage scripts
adminEverything

The built-in roles can’t be changed.

Custom roles

Under Roles, copy a built-in role into a custom one for a crew, a contractor or a supervisor, for example shift-lead with View, Operate and Acknowledge alarms, or integrator with Engineer but not Manage scripts.

  • Edits apply to people already signed in.
  • A role can’t be deleted while users hold it or an identity provider maps to it.
  • OPC UA sign-ins follow the same roles: Operate may write.

Users

Under Users:

  • Add a user with an email, a name, a role and a password.
  • Edit someone’s name and role, or their notification contact details.
  • Disable an account. It can’t sign in, and its open sessions end within seconds.
  • Reset password.
  • Sign out everywhere ends all of someone’s sessions.
  • Asset scope limits a user to permitted asset subtrees (see Assets).

The Users tab listing accounts with their role, how they sign in, their last sign-in and whether they are active

A disabled account, a role change or a sign-out applies to open sessions within seconds, and open live-value connections close within 15 seconds. The gateway always keeps at least one active administrator.

Everyone with a password can change it from their account menu; their other sessions then end.

From the command line:

nexus user add jane@plant.com --role operator --name "Jane Doe"
nexus admin reset-password jane@plant.com

A password is generated and printed if you don’t give one.

Sessions

  • A sign-in lasts 7 days and slides forward while the browser is in use, so kiosk screens stay signed in.
  • Changing the gateway’s session secret (JWT_SECRET) signs everyone out.
  • Wrong passwords are throttled: 10 wrong passwords for one account from one address lock that pair out for 15 minutes, and 50 failures from one address lock the address.

The audit log

Sign-ins, account and role changes, tag writes, alarm acknowledgements, configuration changes, imports, script calls and AI requests are recorded with who did them, from where, and how (web app, API key, OPC UA, MQTT, script).