# Members and roles

The four roles in Lyna (Owner, Admin, Editor, Viewer), what each one can do in a workspace and in a project, and how to change them.

Decide what each person can see and change. Every person in a workspace and in a project has a role.

The Members page of project settings with each member, their role and the Transfer to workspace section.

## What you can do

- Give each person the role that fits their work.
- Change a role, or remove someone from a project or a workspace.
- Move a project to another workspace you manage.

## The roles

Workspaces and projects use the same four roles: **Owner**, **Admin**, **Editor** and **Viewer**.

### In a project

| Can                                                            | Viewer | Editor | Admin | Owner |
| -------------------------------------------------------------- | :----: | :----: | :---: | :---: |
| Open the project and read its settings                         |   Yes  |   Yes  |  Yes  |  Yes  |
| Edit, chat with the AI, publish, use Lyna Cloud                |   No   |   Yes  |  Yes  |  Yes  |
| Invite people, change roles, remove members                    |   No   |   No   |  Yes  |  Yes  |
| See the secret key of the project's database                   |   No   |   No   |  Yes  |  Yes  |
| Change the secret key of a database Lyna runs                  |   No   |   No   |   No  |  Yes  |
| Upgrade the keys of a database Lyna runs to the new key format |   No   |   No   |  Yes  |  Yes  |
| Turn off the older keys of a database Lyna runs                |   No   |   No   |  Yes  |  Yes  |
| Change the password of a database Lyna runs                    |   No   |   No   |  Yes  |  Yes  |
| Delete the project or move it to another workspace             |   No   |   No   |   No  |  Yes  |

A project has one owner: the person who created it. Ownership is never given by an invitation. A workspace owner or admin can also delete or move any project of the workspace.

> [!NOTE]
>
> **What viewers see**
>
> Viewers see the project read-only. Controls they cannot use show as locked, and some pages, such as Members, Domains and the AI settings, are hidden.

### In a workspace

| Can                                          | Viewer |    Editor    |        Admin       |   Owner  |
| -------------------------------------------- | :----: | :----------: | :----------------: | :------: |
| See the workspace's projects                 |   Yes  |      Yes     |         Yes        |    Yes   |
| Create projects                              |   No   |      Yes     |         Yes        |    Yes   |
| Invite people                                |   No   | Viewers only |     Up to Admin    | Any role |
| Change roles and remove members              |   No   |      No      | Yes, except owners |    Yes   |
| Change the workspace name, handle and avatar |   No   |      No      |         Yes        |    Yes   |

A workspace always keeps at least one owner. To leave a workspace you own alone, first make someone else an owner.

### From workspace to project

When a project is shared with **Everyone in workspace**, each member gets a project role from their workspace role:

| Workspace role | Project role |
| -------------- | ------------ |
| Owner          | Admin        |
| Admin          | Admin        |
| Editor         | Editor       |
| Viewer         | Viewer       |

A role set on the project itself always wins over the one from the workspace.

## Manage project members

1. ### Open Members

   Open **Settings > Project > Members**. Only editors and above see this page.
2. ### Change a role

   Choose the role next to a member and pick a new one. You cannot give a role higher than your own. When you lower an admin's role, or an editor's to viewer, on a project with a database, Lyna asks you to confirm and reminds you how they could reach the database's keys and password (an admin saw the secret key; an editor could deploy edge functions, which receive them), with how to change them.
3. ### Remove someone

   Choose **Remove**, then confirm in **Remove member?**. They lose access to the project. When you remove an admin or an editor of a project with a database, the confirmation reminds you that they could reach the database's keys and password: for a database you connected, create a new secret key in its own dashboard, delete the old one, turn off its older keys and reset its password there, then disconnect and connect it again in Lyna Cloud; for a database Lyna runs, the project's owner changes the secret key with **Change secret key** in Keys & Settings, and the owner or an admin uses **Turn off old keys** while the older keys are on, and **Change database password**.

## Manage workspace members

Open **Settings > Workspace > People**. Change a member's role, remove them, or see pending invitations. See [Workspaces](/features/collaborate/workspaces).

## Move a project

On the Members page, **Transfer to workspace** moves the project to another workspace you can manage. Pick the workspace, choose **Transfer** and confirm. Collaborators keep their access.

## Related

- [Invitations](/features/collaborate/invitations): Invite people by email.
- [Workspaces](/features/collaborate/workspaces): Teams and their projects.
- [Sharing and visibility](/features/collaborate/sharing-and-visibility): Who can see a project.
