Limit who can sign up for your app

Sign-in rules decide who can join an app you built on Hercules. Keep sign-up open to everyone, approve a list of email addresses and domains, or let in only people who sign in through single sign-on (SSO) with the service that manages your company's work logins.

What can you control with sign-in rules?

Choose who can sign up

Pick Allow everyone, Only people I approve, or Only SSO users, and the change takes effect right away. Allow everyone is the default, and switching back to it keeps your saved rules for later.

Who can sign up
Who can sign up options, Allow everyone, Only people I approve and Only SSO users, with Only people I approve selected
Add sign-in rules form allowing two partner domains, pasted one per line, with a note

Approve addresses and whole domains

Paste email addresses or domains one per line, with an optional note. Approve acme-corp.com to let in every address at that domain, or jane@acme-corp.com to let in one person.

Approve addresses and domains
Sign-in rules table with a domain approval and a block rule for one address

Know exactly what a rule matches

Matching ignores case, and a domain rule has to match everything after the @ in full, so acme-corp.com doesn't let in jane@eng.acme-corp.com. If an address matches both a block rule and an approval, the block wins.

How rules are matched
Sign-in rule form approving username logins by their username.invalid address

Let in staff who have no email

Username logins carry an address ending in @username.invalid, and text code logins one ending in @phone.invalid. Approve one person by copying their full address from Users & Access, or every username login with a username.invalid domain rule.

Usernames and phone logins

Stay closed if your plan changes

Hercules keeps enforcing saved rules after a plan change, so the app doesn't open up to everyone. You can still see the list after the change.

Plan changes

How do you close an app to outsiders?

  1. 1. Ask for login

    Add login to our job-tracking app so only our office staff and field technicians can use it.

    Hercules adds sign-in, and you pick the sign-in methods under Users & Access.

  2. 2. Approve your people

    Under Sign-in Rules, choose Only people I approve and add your company's email domain. For each technician who signs in with a username, copy their full address from Users & Access and add it as an email rule. Hercules saves each rule as soon as you add it.

  3. 3. Try it from outside

    Sign in with an address that isn't on the list. Hercules turns you away, and your app's sign-in history records the attempt as Blocked, with the reason Not on the sign-in allowlist.

What could a business do with it?

In this hypothetical example, a commercial cleaning contractor lets seasonal subcontractors into its shift-scheduling app and out again. One domain rule approves every office worker, so the operations manager never adds staff one by one.

For the busy season she approves eight subcontractors by email address. When the season ends she removes those eight rules, and Hercules blocks each subcontractor at their next sign-in.

Related features

Frequently asked questions

What should you know before you start?
  • Editing sign-in rules needs a paid plan, and not every paid plan includes it. The pricing page shows which plans do.
  • Only SSO users needs single sign-on, which also needs a paid plan.
  • Each email address or domain rule can be up to 255 characters.
  • Apps created before Hercules Auth 2.0 need a one-time upgrade first. Upgrade guide
What do blocked people see?

People blocked by sign-in rules see "Your email address is not approved to access this app. Contact the app owner to request access." The message never reveals which rules exist or whether the address has already signed up.

How do I remove someone's access?

To remove someone's access, open the three-dot menu on the row of the rule that lets them in, choose Remove rule, and confirm.

Do sign-in rules apply to people who use SSO?

Yes. Block rules apply to people who sign in with SSO, and with Only people I approve they must also match your approved emails or domains. SSO and sign-in rules

Does choosing Only SSO users sign out people already signed in?

Choosing Only SSO users keeps people already signed in until their session ends. The app's other sign-in methods are hidden from then on.

How do you get started?

List who needs access, then approve their domains and addresses. The sign-in rules docs cover each option. Start building.