Home · Docs · Account + Billing · Domain capture

Domain capture

Whitelist an email domain on your org. New sweetdocs sign-ups with an email in that domain automatically join the org as Members. No per-person invites needed.

Domain capture is a per-org setting that auto-joins new sweetdocs accounts to the org based on their email domain. Useful when your team is mid-sized and you don’t want to send a per-person invite for every new hire.

It runs off the organizations.domain_whitelist array and the sharing_mode = 'domain' setting.

Sharing mode

acme.comacme.co

How it works

When a new user signs up to sweetdocs:

  1. Sweetdocs reads the user’s email
  2. Extracts the domain (everything after @)
  3. Looks for any org with sharing_mode = 'domain' AND that domain in domain_whitelist
  4. If found: adds the user to org_members with role member
  5. The user is dropped into the org on first login

Domain matching is exactacme.com matches bob@acme.com but not bob@sub.acme.com. To capture subdomains, add each one explicitly.

Enabling domain capture

StepWhat happens
1. Org page → Settings → Sharing modeDefault is members (invite-only)
2. Change to Domain whitelistThe domain_whitelist field becomes editable
3. Add one or more domains (e.g., acme.com, acme.co)Each domain becomes a chip in the input
4. SaveThe new mode and whitelist persist

Only org Owners and Admins can change the sharing mode and the whitelist.

Domain verification

Currently in v1, domain capture trusts the email domain at face value. Anyone with an email at the configured domain can join as a Member — including accounts you don’t own.

For higher assurance, domain verification (proving you control the DNS for the domain) is on the roadmap. When it ships, domains in the whitelist will need a TXT record in your DNS before captures take effect.

Existing users

Existing sweetdocs accounts — already signed up before you added the domain — do not auto-join when you enable capture. The capture happens at sign-up time only.

To bring existing same-domain users into the org, send them a regular email invite at the role you want.

What new members get

A captured Member starts with:

To make captured Members productive, set up groups and library ACLs that grant defaults. Common pattern: a “Everyone” group covering all members, with Read on a “Company onboarding” library.

Disabling capture

Switch the org back to members mode (or open). The change takes effect immediately — new sign-ups from the previously-captured domains no longer auto-join.

Existing captured members stay in the org — disabling capture doesn’t retroactively remove them. To remove them, remove them individually from the Members list.

Per-domain captures (multiple domains)

The domain_whitelist is an array, so you can capture multiple domains:

Each new sign-up’s domain is checked against the whole list; a match against any of them captures them.

Audit log

Every domain capture is recorded as an event in the org’s audit log — actor (the captured user), event (domain_capture), and timestamp. Useful for reviewing the join history.

What’s not in v1

MissingNotes
Domain verification (DNS TXT record)Coming in a future release
Per-domain default groups (e.g., engineering.acme.com → Engineering group)Not in v1 — all captures land as plain Members
Block-list capture (everyone except some domains)Not in v1
Custom default role for captured usersAlways Member
Capture confirmation prompt for the userCaptures are silent; the user just sees the org appear in their library switcher