Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Accounts, sign-up and invitations

Who may make an account is separate from how they sign in. There are four ways an account comes to exist, and you choose which are open.

WayOpen by defaultControlled by
The admin makes itAlwaysdrusite-server account create
An invitation to a workspace or a pageYes[workspaces] invites_create_accounts
First sign-in through an OIDC providerNoEach provider’s auto_create
Signing up on the sign-in pageNo[auth] self_signup

The admin makes it

drusite-server account create sam@example.com --name "Sam Rivera"

It prints a one-time sign-in link, good for 24 hours (--ttl-minutes). Send it to Sam. Opening it signs Sam in once, on the account page, where they add a passkey or a password (whichever the server has on). The email isn’t marked verified until Sam proves it some other way, such as a magic link or an OIDC provider that verified it.

Invitations

Workspace owners (and editors, if owners allow it) invite people from Settings → Members → Invite people, and anyone who can edit a page can share it with someone outside the workspace, who becomes a guest. An invitation:

  • works once, for that email, for 7 days;
  • lets that one email make an account with any sign-in method the server has on, even with self_signup off;
  • through OIDC, needs the provider’s email to be verified and to match the invitation’s;
  • can’t let in someone a provider’s allowed_groups or allowed_email_domains keep out.

If the server can send email, it sends the invitation; if not, the app shows the link to copy and send yourself. Only a hash of each link is kept, so the link is shown once.

To allow only people who already have an account:

[workspaces]
invites_create_accounts = false

Owners can also turn on a workspace’s invite link: anyone with it joins as an editor or a viewer, never an owner, until it’s turned off or reset. It can be limited to email domains. An invite link doesn’t make accounts by itself: it needs an existing account, or whatever sign-up the server allows.

Guests

Guests see only the pages shared with them, with Can edit or Can view. Owners can turn guests off for their workspace; the server’s admin can turn them off everywhere:

[workspaces]
guests = false

OIDC

With auto_create = true on a provider, anyone who can sign in there gets an account here on their first sign-in. Limit that with the provider’s own access rules, allowed_groups or allowed_email_domains. See Single sign-on.

Self sign-up

[auth]
self_signup = true

Then anyone who can reach the server can make an account with a passkey, a password or a magic link. Turn it on only for a server meant to be open, or one only trusted people can reach.

Roles

Accounts don’t have roles; workspace memberships do. Everyone in a workspace is an owner, an editor or a viewer, set by the invitation or invite link they joined with and changed by owners. Workspaces, roles and sharing has what each can do. The server has no “admin” account: whoever runs it administers it from the command line and the config.

Removing people

  • From a workspace: owners remove them in Settings → Members. It takes effect at once on the server; their devices delete their copy when they next connect.
  • The whole account: people delete their own in Settings → Account & sync → Delete account. 1.0 has no server command to delete someone else’s account; remove them from every workspace, and stop them signing in (at the OIDC provider, or by removing their sign-in methods with them).