Docs menuFeatures

DOCS / FEATURES

Superadmin panel & impersonation

Operators get a cross-tenant panel for support and abuse handling. It lists every account and organization, and from it an operator can disable an account, grant superadmin, change roles or ownership inside any org, or impersonate someone. Panel actions go to an audit trail of their own.

The Analytics tab shows weekly product numbers. The API is under /api/admin (code in api/src/admin/). The UI is at /admin in the SPA (web/src/routes/_app/admin/, web/src/features/admin/).

Superadmin is a per-account flag, not an org role. It grants nothing inside any org's own UI. From the panel an operator can change an org's memberships (see Organization membership). To see an org as its members do, they use impersonation. Both are recorded in the org's audit log.

Who is a superadmin

There are two kinds of grant.

Standing grants come from the environment:

bash
SUPERADMIN_EMAILS=ops@example.com,cto@example.com
  • Addresses are trimmed and lowercased, matching how emails are stored.
  • A standing grant only takes effect once the account's email is verified. Registration issues a session before verification, so an unverified account carrying a listed address could be whoever typed it first. Until the emailed link (or an OAuth provider) proves the mailbox, it's an ordinary account, and a real superadmin can disable it.
  • The panel can't disable, demote, or re-grant a standing superadmin. The environment owns these grants, so an operator can never lock everyone out. To remove one, take the address out of SUPERADMIN_EMAILS and restart.

[ full guide ]

The rest of this guide comes with the repo.

  • Listings
  • Organization membership
  • Disabling an account
  • Impersonation
  • Provenance in the audit log
Get LaunchCrate