Files
Docwell/Docs-Site/guide/access.md
T
tajniak81andClaude Opus 5.5 3c7403ddf9 Create the first superadmin from DOCWELL_ADMIN_EMAIL on start
When DOCWELL_ADMIN_EMAIL and DOCWELL_ADMIN_PASSWORD are set (and
optionally DOCWELL_ADMIN_NAME), docwell-server creates that account as
superadmin on start while the instance has no accounts. Once any account
exists it changes nothing, so restarts never reset the password or a role
changed in the admin panel. Without them, the first sign-up still wins.

Pass the variables through every compose file, document them in the
.env examples and the configuration, access and quick-start guides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 22:32:29 +01:00

45 lines
1.8 KiB
Markdown

# People and access
## Instance roles
| Role | Can |
| --- | --- |
| **superadmin** | Everything on the server: every organization, user and workspace, and the instance settings. The first account is one (the first to sign up, or the one `DOCWELL_ADMIN_EMAIL` creates). |
| **admin** | Their own organization: its people (never superadmins) and all of its workspaces. |
| **user** | The workspaces they were added to. |
## Workspace roles
Organization admins and superadmins are owners of every workspace in their scope. Everyone else has the role they
were given: **owner** > **admin** > **member** > **guest**. Nobody can give a role above their own or change their
own role.
Guests only see spaces they were added to; members also see every open space.
## Space roles
| Role | Can |
| --- | --- |
| **admin** | Change the space's settings and members, empty its trash |
| **editor** | Create, edit, move and trash pages, share them publicly |
| **commenter** | Read and comment |
| **viewer** | Read |
Workspace owners and admins are admins of every space. In an open space, members get the space's default role
unless they were given another one.
## Groups
Workspace admins create **groups** in *Workspace settings → Groups*. A space can give a role to a whole group in
*Space settings → Groups*. Someone in several groups, or with a role of their own too, gets the highest one.
## Inviting people
- **Into a workspace:** *Workspace settings → Members*, enter an email and a role, **Invite**. Someone who already
has an account in the organization is added at once; anyone else gets an email with a link. If email is not set
up, copy the link Docwell shows and send it yourself.
- **Into an organization:** *Admin panel → Users → Invite people*.
Invites work even when sign-up is turned off, and expire after seven days. Pending invites can be resent or
revoked.