# Team and roles

A workspace's members are console accounts. Each has one of three roles, and the role applies to every project in that workspace.

## Roles

| | Owner | Developer | Read-only |
|---|---|---|---|
| Open projects and look at everything in them | yes | yes | yes |
| Tables, rows, SQL, policies, storage, settings, secrets | yes | yes | look only |
| Reveal a secret's value | yes | yes | no |
| Create a project | yes | no | no |
| Delete a project, or bring one back | yes | no | no |
| Add and remove people, change roles | yes | no | no |
| Set up webhooks | yes | no | no |
| Give Rezin Core staff access to a project | yes | no | no |

Anything a read-only member tries to change answers "Your role in this workspace is read-only", and so does a personal access token of theirs.

## Add someone

On the company's Projects page, under **People in this workspace**, an owner enters the person's name and email and picks a role.

- Their account is made with a **one-time password, shown once on that screen**. Pass it to them by a channel you trust.
- They are emailed where to sign in.
- At their first sign-in they must choose their own password.

If the person already has a console account, they are added to the workspace and keep their own password.

An account can belong to several workspaces. It then gets a workspace switcher at the top of the Projects page and a project switcher in a project's side bar.

## Change a role, remove someone

On the same list, owners only. A removed member loses access at once, and so do their personal access tokens for that workspace.

**The last owner cannot be removed or made anything less than owner.** A workspace always has at least one.

## Who can never be a member

Rezin Core staff accounts belong to no workspace and cannot be added to one. The only ways staff reach a project are the access you give and emergency access, both described in [Security and privacy model](https://rezincore.com/docs/security.md#who-at-rezin-core-can-see-your-data).

## Limits

| What | Limit |
|---|---|
| Live projects in a workspace | 5 |
| Days a deleted project can be brought back | 7 |

## Not built yet

- An emailed invitation that the person accepts themselves, in place of the one-time password.
- Roles per project. A role applies to the whole workspace.
