Skip to content

Users and Permissions

The outcome of this chapter is a second person (or a second you — a phone, a helper, a future admin) able to log in with exactly the powers you chose, and a record of what every login has done. The lab proved the foundation of all of it: accounts, roles and permission sets are real records in the API — its first admin came back from setup carrying "roles":["admin"] and a permissions object with every host type set to manage (transcript t06). This chapter teaches the model from the documentation and that evidence; the multi-user screens themselves are documented-only in criteria.md.

The model has three layers.

  • Users — a name, nickname, email (the login identity) and a password the account holder sets. Users → Add User creates them; there is no invitation email machinery, you hand over the first password out of band and the user changes it from their profile.
  • Roles — admin or user. An admin manages users and everything else; a plain user manages only what their permissions say, and sees, by default, what their visibility allows.
  • Permissions — per user, a visibility (see all objects, or only their own) and, for each of the six managed things — proxy hosts, redirection hosts, dead hosts, streams, access lists, certificates — one of manage, view, or none. The lab's admin record shows the full set at manage, which is what the setup flow grants the first account and what later accounts should usually not all get. The shape worth copying: a household helper who can fix proxy hosts (manage) and look at certificates (view), with none for users and access lists, can do real damage to very little.

Two-factor authentication lives in each user's own profile menu — NPM supports time-based codes (the authenticator-app kind; the backend carries a standard one-time-password library for it) plus backup codes for the day the phone is lost. Turn it on for every admin account before anything else in this chapter; it is the single highest-value setting in the product relative to the minute it takes.

The audit log (Audit Log in the interface) records who did what: logins, hosts created and edited, certificates requested. When something changed and nobody remembers changing it, this is the page that ends the argument — and on a single-admin install it doubles as your own change history.

The check: create a limited user with proxy hosts at view and the rest at none. Log in as them. You should see the proxy host list, find no working Add button, and find the Users page closed to you. Then log back in as admin and open the audit log: both logins and the creation should be there, named and timed. Access you have watched behaving correctly is the only access worth trusting.