Users and Security
Add control panel accounts with the right panel roleAn account's level: Owner, Administrator, Operator, or Viewer and server accessWhich Discord servers an account is allowed to open, and protect your own sign-in with an authenticator appA phone app that makes six-digit sign-in codes or a passkeySign in with Face ID, Touch ID, or a security key.
Why Use Panel Roles?
- Gives moderators only the access they need, so a ViewerRead-only role: sees everything, changes nothing can check settings without changing them.
- Limits an account to chosen Discord servers, so a helper sees only the servers they look after.
- Adds a second sign-in step, so a stolen password alone doesn't open the control panel.
Panel Roles
| Role | What it can do |
|---|---|
| OwnerThe first account; it can do everything and can't be removed | Everything, on every server. There is exactly one, made at setup, and nobody can change it on the Users page |
| AdministratorRole that can change everything, including users | Everything, including adding, changing, and removing users |
| OperatorRole that runs the bot and its features, but not users | Change features, the Bot TokenThe bot's password for Discord, from the Developer Portal, the invite pageA public page that hands out short-lived Discord invites, and notifications, and start, stop, and restart the bot |
| ViewerRead-only role: sees everything, changes nothing | See the bot's status, the features, the invite pageA public page that hands out short-lived Discord invites, and the logs without changing anything. The Notifications page is hidden from them |
Every role can change its own password and username, set up its own authenticator appA phone app that makes six-digit sign-in codes and passkeysSign in with Face ID, Touch ID, or a security key, and create its own access tokensA key that lets your scripts call the panel's API as you.
Only the OwnerThe first account; it can do everything and can't be removed and AdministratorsRole that can change everything, including users can open Backup to export or import configuration. Operators and Viewers don't see the page.
Server Access
Each account sees either All servers or Only these servers. The panel refuses requests for any other server with "That Discord server isn't available."
- All servers — Includes servers the bot joins later, and only someone who sees every server can give it.
- Only these servers — Limits the account to the servers you tick. Someone with chosen servers can only give the servers they can open themselves.
- Managing others — An AdministratorRole that can change everything, including users with chosen servers can only change users whose servers are all inside their own.
Add a User
The OwnerThe first account; it can do everything and can't be removed and AdministratorsRole that can change everything, including users add accounts on the Users page. On a wide screen it is under Settings in the sidebar; on a phone, open it from the Settings sheet.
- Select Add user.
- Enter a Username of 3 to 64 letters, digits, periods, underscores, or hyphens, starting with a letter or digit.
- Enter a Password of at least 12 characters, and share it with them privately. The bar under the field rates it from Weak to Strong, and any password of 12 to 1,024 characters is accepted.
- Choose a Role: Administrator, Operator, or Viewer.
- Choose All servers, or Only these servers and tick the servers.
- Select Add user.

Usernames are unique without regard to letter case, so a taken name shows "That username is already in use." The new user can change their password and add an authenticator appA phone app that makes six-digit sign-in codes or a passkeySign in with Face ID, Touch ID, or a security key on their Sign-in and security page.
Change or Remove a User
Each row on the Users page shows the username, when they last signed in, their server accessWhich Discord servers an account is allowed to open, whether two-factor sign-in is on, and their role, with Edit and Delete buttons. 2FA with a check means they have an authenticator appA phone app that makes six-digit sign-in codes or a passkeySign in with Face ID, Touch ID, or a security key, and pointing at it names which.
The Servers, 2FA, and Role menus above the list narrow it to the users who match, and the count beside them shows how many are left.
Edit changes the role and the server accessWhich Discord servers an account is allowed to open. Its Account section has the options below, and Save applies everything at once. Turn off two-factor appears only for users with an authenticator app or a passkey.
- Set a new password — Shows a field for a new password of at least 12 characters and signs them out everywhere. Their access tokensA key that lets your scripts call the panel's API as you keep working.
- Turn off two-factor — Removes their authenticator appA phone app that makes six-digit sign-in codes, recovery codesA one-time backup code for when your authenticator is gone, and passkeysSign in with Face ID, Touch ID, or a security key, so they sign in with their password alone until they set them up again.
- Suspended — Signs them out right away and blocks sign-in until you untick it, and their access tokensA key that lets your scripts call the panel's API as you stop working too.
Delete asks you to confirm, then removes the account, its sessions, its access tokensA key that lets your scripts call the panel's API as you, and its sign-in methods.
The OwnerThe first account; it can do everything and can't be removed, your own account, and users with servers you can't open have no Edit or Delete buttons. Change your own account in Sign-in and security.

Your Password and Username
Open Sign-in and security from the account menu on a wide screen or a phone.
- Password — Enter the Current password, then a New password of at least 12 characters twice, and select Change password. The bar under New password rates it from Weak to Strong. Your other devices are signed out, while this one stays signed in.
- Username — Enter the New username and Your password, then select Change username. The new name applies at once, including to sessions that are already signed in.
Authenticator App and Recovery Codes
- Under Authenticator app, select Set up. A dialog walks through three steps.
- Enter your password and select Continue.
- Scan the QR code with your authenticator appA phone app that makes six-digit sign-in codes, or type the Setup key into the app. Copy puts the key on the clipboard.
- Enter the 6-digit code in Code and select Turn on.
- Save the 10 recovery codes with Copy all or Download .txt, check I saved these codes, and select Done.

- Time limit — You have 10 minutes to finish these steps before you need to start again.
- From then on — Password sign-in asks for a code, and Authenticator app shows how many recovery codesA one-time backup code for when your authenticator is gone are left.
- New recovery codes — Asks for your password, then shows the new set in the same dialog and replaces the old one, so the old codes stop working.
- Done — Stays unavailable until I saved these codes is checked, and the dialog can't be closed another way, because the codes aren't shown again.
- Turn off — Asks for your password in a dialog, then removes the app and every recovery codeA one-time backup code for when your authenticator is gone.
The panel stores only a hash of each recovery codeA one-time backup code for when your authenticator is gone, so it can't show them again.
Passkeys
- Under Passkeys, enter a Passkey name of up to 80 characters, such as the device it's on.
- Enter Your password and select Add passkey.
- Confirm with your device, such as Face ID, Touch ID, Windows Hello, or a security key.
- Signing in — Select Sign in with a passkeySign in with Face ID, Touch ID, or a security key on the sign-in screen, which skips both the password and the authenticator code.
- One address — A passkeySign in with Face ID, Touch ID, or a security key works only at the address it was added on, and the list shows that hostname next to each one.
- Where they work — Adding one needs HTTPS and a domain name, or
localhost. On an IP address or plain HTTP, the page explains that it can't add one there, as described in Remote Access. - Remove — Select Remove next to a passkeySign in with Face ID, Touch ID, or a security key, enter your password in the dialog, and select Remove passkey. It stops working right away.
Password Checks
Changing how you sign in asks for your current password first: setting up or turning off the authenticator appA phone app that makes six-digit sign-in codes, making new recovery codesA one-time backup code for when your authenticator is gone, adding or removing a passkeySign in with Face ID, Touch ID, or a security key, and changing your username. A wrong one shows "That password is incorrect."
Wrong password checks count toward the same limit as failed sign-ins, 10 per address in 15 minutes, and then the page shows "Too many attempts. Try again in 15 minutes."
Sessions and Sign Out
- Length — A browser sessionYour browser's sign-in, good for 24 hours lasts 24 hours from sign-in, and restarting the container doesn't end it.
- Cookies — The session cookie is
HttpOnlyandSameSite=Strict, and it's markedSecurewhen you reach the panel over HTTPS. - Sign out — Sign out in the account menu ends your session.
- Ended for you — Changing your password ends your other sessions, and a password reset or a suspension by an AdministratorRole that can change everything, including users ends all of them.
If You're Locked Out
- Lost authenticator app — Sign in with a recovery codeA one-time backup code for when your authenticator is gone or a passkeySign in with Face ID, Touch ID, or a security key, or ask an AdministratorRole that can change everything, including users to tick Turn off two-factor under Edit for you.
- Forgotten password — Ask an AdministratorRole that can change everything, including users or the OwnerThe first account; it can do everything and can't be removed to tick Set a new password under Edit for you.
warning
Nobody can reset the OwnerThe first account; it can do everything and can't be removed's password or two-factor sign-in in the control panel. It is recommended to keep the Owner's recovery codesA one-time backup code for when your authenticator is gone somewhere other than the phone with the authenticator appA phone app that makes six-digit sign-in codes, and to add a passkeySign in with Face ID, Touch ID, or a security key.
If the OwnerThe first account; it can do everything and can't be removed loses all three anyway, delete the installation keyThe key that locks your secrets; back it up with the database with sudo docker exec discord-stonker-bot rm /config/keys/installation.key and sudo docker restart discord-stonker-bot, or with Compose, docker compose exec app rm /config/keys/installation.key and docker compose restart app. Every authenticator appA phone app that makes six-digit sign-in codes is then turned off, not just the OwnerThe first account; it can do everything and can't be removed's, and the Bot TokenThe bot's password for Discord, from the Developer Portal, every feature secret, and the secret fieldsDestination setting that's saved but never shown again of every notification destinationOne place alerts go, such as a chat, topic, or inbox are removed too, as described in If the Key File Is Missing.