# Users and access

> Workspaces, members and roles in Werker, how to add people and change what a role may do, and what is missing.

Source: https://werker.cloud/docs/users-and-access (updated 2026-12-02)

A **workspace** is private to one person or one team. It owns its
connections, agents, workflows, factories, runs and audit log, and no
workspace can see another. Setup makes the first one. A login belongs
to one; someone with a personal workspace and a company one has a
login, with its own email, for each.

An **instance administrator** looks after the whole install, such as
[sandboxes](sandboxes.md). The first account is one. It does not give
access to other workspaces.

## Naming a workspace

The name at the top of the sidebar, under "werker", is changed in
**Admin**: click the name beside **Workspace name**, type, and press
Enter. An owner or admin can, unless the role's permissions were
changed.

## Adding people

With email configured in **Admin → Email**, **Invite by email** in
**Admin → Members** sends a link to join the workspace. New users
choose a password; existing users sign in with their own. Links expire
after seven days. Resending or canceling invalidates the old link.
**Mail server accepted** does not mean the recipient has joined.

Without an email provider, **Add member** adds the person directly.
With email configured, the same option is **Add with password**. Give
the new user their password yourself. Someone who already belongs to a
workspace cannot be added to another.

You can only give a role at or below your own, and you cannot change
or remove yourself, so a workspace always keeps an owner.

## Roles

| Role   | Starts with                                                                         |
| ------ | ----------------------------------------------------------------------------------- |
| owner  | Everything. Its permissions cannot be changed.                                      |
| admin  | Everything but changing billing or deleting the workspace.                          |
| member | Makes, changes and runs agents and workflows, and sees connections. No admin pages. |
| viewer | Sees agents, workflows and runs.                                                    |

**Admin → Roles** switches a permission on or off for admin, member or
viewer. You cannot change your own role's permissions, or switch one
you do not hold.

## A new workspace

There is no screen for making one. `pnpm add-user`, run from Werker's
source with access to its database, makes a workspace with its first
user. Running it inside the Docker install is not documented.

## API keys

A key lets the [CLI](cli.md), or an assistant over [MCP](mcp.md), work
as you. Make one in **Settings → API keys**: name it, choose what it
may do and how long it lasts, and copy it. It is shown only then.

- **Read** sees what you can see. **Read and write** also starts,
  stops and changes work, which can spend money.
- **Let it answer for you** is off unless you choose it. With it, an
  agent holding the key could approve its own work.
- A key never does more than your role may, and follows your role if
  it changes. It cannot manage members, roles, connections, settings
  or keys.
- Revoking a key stops it at once. Removing a member removes theirs.

Someone who may change members sees every member's keys in **Admin →
Members**, never the keys themselves, and can revoke those of people
they may change.

There is no limit on how often a key is used or what it spends
([#99](https://github.com/werker-ai/werker/issues/99)).

## What is recorded

Sign-ins, failed sign-ins of a known email, and changes to members,
roles, connections and API keys, and what a key does, are in **Admin →
Audit** ([costs and traces](costs-and-traces.md#the-audit-log)).

## How long data is kept

An instance admin sets, in **Admin → Data retention**, how many days
the instance keeps **Run detail** (the activity and trace of a run,
counted from when it ended), the **Audit log** and **Ended items**
(project previews, and discarded changes to starters and factories).
The defaults are 90, 365 and 30 days. Empty keeps for ever, and each
field shows its default. A worker deletes what is older once a day.
Spend, totals, step results, factory conversations and versions are
always kept. The deletion has been run against test data, not against
a long-lived installation.

## Not built

- Password changes
  ([#33](https://github.com/werker-ai/werker/issues/33)) and
  forgotten-password recovery
  ([#140](https://github.com/werker-ai/werker/issues/140)).
- Provider keys shared from the instance to its workspaces
  ([#10](https://github.com/werker-ai/werker/issues/10)).

How workspaces are kept apart is in [security](https://werker.cloud/security)
and the [engineering docs](engineering/workspaces-and-access.md).
