Skip to content

Referrals settings: require codes and set usage limits

Describes Referrals 0.8.0.

The Referrals settings page decides whether a code is optional or required to register, and sets the limits every code and every code creator works within.

Where to find it

Open Settings in the admin sidebar, then Referrals (/admin/settings/referral-codes). You need the Referrals permission.

The module is switched on and off on the Modules page, not here. While it is off, this page shows only Referrals Disabled.

Referrals Settings: Require Referrals, the maximum uses per referral and referrals per user, and the current configuration Referrals Settings: Require Referrals, the maximum uses per referral and referrals per user, and the current configuration

Referrals settings.

Status

  • Require Referrals: Make referrals mandatory for user registration. Off, the registration form offers an optional Referral Code field. On, the field is required, and the site becomes invite-only (see below). The page confirms with Referrals are now required or Referrals are now optional.
  • Grandfather Existing Users: shown only while codes are required. On (the default), accounts created before codes became required keep their access. Off, they must enter a code too.

Both toggles save as soon as you click them.

Usage limits

  • Maximum Uses Per Referral (1 to 10,000, default 100): the highest Maximum Uses any single code may have. New codes start at this value.
  • Maximum Referrals Per User (1 to 1,000, default 10): how many codes one person may create. This includes admins creating codes on the Codes page.

The number is saved when you leave the field, and the page confirms with Maximum uses per referral updated to … or Maximum referrals per user updated to ….

The Current Configuration box below repeats the current values.

What “required” means for new and existing accounts

With Require Referrals on, anyone can still create an account by email, magic link or a social login. Until the account has used a valid code, it can open nothing but the Enter your referral code page (This site is invite-only. Enter the code you were given to continue.) and log out. A good code lets them in with Welcome! Your referral code has been accepted.

These accounts never see that page:

  • accounts that used a code when they registered;
  • accounts created before codes became required, while Grandfather Existing Users is on;
  • accounts that hold every enabled permission, such as the Owner, so you can’t lock yourself out;
  • people with a pending organization invitation to their email.

What it doesn’t do

  • It doesn’t switch the module on or off; use the Modules page.
  • Lowering Maximum Uses Per Referral doesn’t change codes that already have a higher maximum.