Skip to content
CliprWiki

Accounts and sign-in

Create accounts, registration, roles and two-factor requirement.

Accounts in the app

Under Settings → Administration (admins only):

  • Create people (first and last name, email address). They receive an activation link and set their password themselves (link valid for 7 days).
  • Disable, enable, promote to admin, delete accounts; set storage per account.
  • Search and filters (active, pending, disabled, admins) with registration status: invited, confirmed, last sign-in.
  • Send a test email to check outgoing mail.

Admins only see account data, no tickets.

Accounts on the command line

docker compose exec app python -m clipr.cli list-users
docker compose exec app python -m clipr.cli create-user anna@example.org --first Anna --last Example [--admin]
docker compose exec app python -m clipr.cli set-password anna@example.org      # ends all sessions
docker compose exec app python -m clipr.cli set-email admin anna@example.org   # email for an older account
docker compose exec app python -m clipr.cli disable-user anna@example.org      # disable and sign out
docker compose exec app python -m clipr.cli enable-user anna@example.org
docker compose exec app python -m clipr.cli make-admin anna@example.org [--revoke]
docker compose exec app python -m clipr.cli delete-user anna@example.org --yes
docker compose exec app python -m clipr.cli reset-2fa anna@example.org         # emergency, see below

Registration

CLIPR_REGISTRATION decides who can create accounts:

Value Meaning
closed (default) Only admins create accounts (app or command line).
invite Registration only with a valid group invitation link.
open Anyone with email confirmation; optionally only certain domains (CLIPR_REGISTRATION_DOMAINS).

invite and open need outgoing email. Without it registration stays closed; the app logs a note about it.

Privacy built in: registration does not reveal whether an account already exists for an address. Unconfirmed accounts expire after 48 hours, confirmation links after 24 hours, password reset links after one hour.

Two-factor sign-in

Available are an authenticator app (TOTP), passkeys or security keys, and backup codes. CLIPR_2FA_REQUIRED controls the requirement:

Value Effect
none Optional for everyone.
admins (default) Administration and wiki sign-in only work from a session signed in with a second factor.
all Required for everyone. Without a second factor only its setup is reachable.

What counts is the session: whoever signed in before setting it up must sign in again. Setting it up signs out all other devices. Passkeys need CLIPR_PUBLIC_URL with a hostname (not an IP address).

Emergency – second factor lost and no backup codes left:

docker compose exec app python -m clipr.cli reset-2fa anna@example.org

Signing in then works with the password only again; all of that person's sessions are ended.

Sessions

A session ends after CLIPR_SESSION_DAYS days without use, but at the latest CLIPR_SESSION_MAX_DAYS days after signing in. Changing the password, disabling and set-password end all sessions of an account – and with them its wiki sign-in.

Groups and storage

  • Each account can found at most CLIPR_GROUP_MAX_OWNED groups with CLIPR_GROUP_MAX_MEMBERS people each. Invitations expire after CLIPR_GROUP_INVITE_DAYS days.
  • Storage per account: CLIPR_USER_QUOTA_MB, changeable per account in administration.
  • How sharing and encryption fit together is described under Security.