Skip to content

User Roles

LNbits uses a three-tier role system - Super User, Admin, and Regular User - each with different levels of access and responsibility.

Every account in LNbits has one of three roles. Understanding them is key to running a secure instance.

The three roles

Super User - Owner

The single highest-privilege account on the instance. Created on first launch. Reserved for initial setup and rare, high-impact operations.

  • Configure the funding source (Lightning backend)
  • Credit or debit any wallet (top-ups)
  • Add and remove admin accounts
  • Impersonate any user
  • Access every setting and function

There is exactly one Super User per instance. It cannot be demoted by admins - only replaced via the CLI. See Super User for creation and recovery details.

Admin - Day-to-Day Manager

Operational managers who handle the daily running of the instance without touching critical infrastructure.

  • Manage users (create, edit, disable accounts)
  • Enable and disable extensions for the instance
  • Adjust security settings (rate limiting, allowed users)
  • Customize site branding and themes
  • Monitor activity via the audit log
  • Manage server settings (except funding source)

Admins are set via LNBITS_ADMIN_USERS in .env or added by the Super User through the Admin UI. Multiple admins are allowed.

Regular User - End User

Standard accounts for people who use LNbits for payments. No administrative access.

  • Create and manage their own wallets
  • Send and receive Lightning payments
  • Use extensions that admins have enabled
  • Generate and manage their own API keys

Regular users are created through the login flow (username/password, OAuth, etc.).

Permissions matrix

CapabilitySuper UserAdminRegular User
Send and receive paymentsYesYesYes
Manage own walletsYesYesYes
Use enabled extensionsYesYesYes
Generate API keysYesYesYes
View admin dashboardYesYesNo
Manage server settingsYesYesNo
Install/uninstall extensionsYesYesNo
Manage users and accountsYesYesNo
Adjust rate limits and securityYesYesNo
Customize branding and themesYesYesNo
View audit logYesYesNo
Change funding sourceYesNoNo
Credit/debit any wallet (top-up)YesNoNo
Add/remove admin accountsYesNoNo
Impersonate any userYesNoNo
Cannot be demoted by othersYes--

How roles are assigned

RoleHow it's setQuantity
Super UserCreated on first run, stored in data/.super_userExactly one
AdminLNBITS_ADMIN_USERS env var or added via Admin UIMultiple allowed
Regular UserCreated through login flow (signup, OAuth)Unlimited

Best practices

  • Reserve the Super User for setup - use a regular admin account for daily operations
  • Separate admin accounts - don't share credentials between administrators
  • Principle of least privilege - only promote users to admin when they need it
  • Audit regularly - review the admin list and user activity periodically
  • Test in staging - try significant setting changes on a test instance before production

News · Shop · SaaS · Telegram · Released under the MIT License.