> ## Documentation Index
> Fetch the complete documentation index at: https://lightdash-mintlify-cccf65ca.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Roles and permissions

## Roles in your Lightdash instance

* Everybody in your organization will join as an `Organization Member` unless specified. For example, if I invite someone to a project as an editor, they will become an organization member with `editor` access to that project. If I invite someone to the ***organization*** as a `viewer`, then they will be an `organization viewer` (instead of an `organization member`).

* Only Organization Admins can create new projects (and will be the Project Admin for those projects). Organization Developers can create preview projects only. Editors, Interactive Viewers, Viewers, and Members cannot create projects.

* Admins have access to all content (even content they haven't been explicitly invited to).

### Project Roles

Project Admins can invite users to their project and assign users or [groups](/references/workspace/groups) to roles in that project. Note that projects may also be accessible by users with organization roles.

|                          Action                          |                 Project Admin                 |               Project Developer               |                 Project Editor                |           Project Interactive Viewer          |                 Project Viewer                |
| :------------------------------------------------------: | :-------------------------------------------: | :-------------------------------------------: | :-------------------------------------------: | :-------------------------------------------: | :-------------------------------------------: |
|                View charts and dashboards                | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |
|               Export visible results to CSV              | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |
|          Export visible results to Google Sheets         | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |
|  Export all results to CSV (override the visible limit)  | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |
| Export all results to Google Sheets (override the limit) | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |
|                       View comments                      | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |
|                      Create comments                     | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |
|           Create new query from tables explore           | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |
|                   View underlying data                   | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |
|           Create and edit scheduled deliveries           | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |
|                   Create and edit Syncs                  | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|           Create and edit charts and dashboards          | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|                    Use the SQL runner                    | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|         Create and explore custom SQL dimensions         | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|                   Create virtual views                   | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|           Manage project access and permissions          | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|                      Delete project                      | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|                 Create a preview project                 | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|              Download content as code (CLI)              | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|               Upload content as code (CLI)               | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|    Rename models, dimensions, and metrics (CLI and UI)   | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |

### Organization Roles

Organization Admins can assign roles to organization members, which gives access to all projects in the organization.

|                        Action                       |               Organization Admin              |             Organization Developer            |              Organization Editor              |        Organization Interactive Viewer        |              Organization Viewer              |              Organization Member              |
| :-------------------------------------------------: | :-------------------------------------------: | :-------------------------------------------: | :-------------------------------------------: | :-------------------------------------------: | :-------------------------------------------: | :-------------------------------------------: |
|            Create Personal access tokens            | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |
|           View content in **all** projects          | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |
|           Edit content in **all** projects          | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|                 Create new projects                 | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|           Create a preview from a project           | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|          Update **all** project connections         | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|              Admin for **all** projects             | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|             Invite users to organization            | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|      Manage organization access and permissions     | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
|            Download content as code (CLI)           | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |                                               |
|             Upload content as code (CLI)            | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |                                               |
| Rename models, dimensions, and metrics (CLI and UI) | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |                                               |

### Space Roles

There are three space roles: `Full Access`, `Can Edit`, `Can View`

|        Action        |                  Full Access                  |                    Can Edit                   |                    Can View                   |
| :------------------: | :-------------------------------------------: | :-------------------------------------------: | :-------------------------------------------: |
|  View space content  | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |
| Manage space content | <Icon icon="square-check" iconType="solid" /> | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |
|  Manage space access | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |
| Manage space details | <Icon icon="square-check" iconType="solid" /> |     <Icon icon="xmark" iconType="solid" />    |     <Icon icon="xmark" iconType="solid" />    |

Users with `Full Access` to a space can restrict and increase a user’s inherited project permissions in a space (e.g. you can make project editors into `can view` in a space). Space permissions determine which users can edit space contents (charts and dashboards), view the contents in a space, and change a space's settings:

* A user needs to have at least the `Can view` access level to a space to see that the space exists and to see the charts and dashboards inside it.

* A user needs to have the `Can edit` access level to a space to edit the content in the space (add/delete/rename charts and dashboards).

* A user needs to have the `Full access` access level to a space to manage access to the space and to edit the space details (name, description, etc.).

Space permissions don't otherwise control what users can do, or which data they can use to build their own content.

This means:

* a project viewer who has `Can edit` space permissions cannot get access to build or edit charts because Viewers don't have access to the Explore view

* an interactive viewer who is given `Can edit` space permissions can save content in that space but not in any other space (unless given `edit` access to another space)

* an editor who is given `Can view` space permissions cannot edit the content in that space, but they can create/edit content in other parts of the project (unless they're given `Can view` access).

#### Adjusting space permissions

You can adjust an individual user's permissions, or the permissions of a group in a Space.

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-cccf65ca/SnC4EUnE5j-WQosl/images/references/workspace/roles/add-users-space-16d5e8a04ac28514e015df2cbb2e56c6.png?fit=max&auto=format&n=SnC4EUnE5j-WQosl&q=85&s=d40462bb4727f2a1658c730cd7d51882" width="1250" height="784" data-path="images/references/workspace/roles/add-users-space-16d5e8a04ac28514e015df2cbb2e56c6.png" />
</Frame>

If a user is part of multiple groups that have been given access to the space, the user will inherit the highest level of access from their groups.

E.g. Priyanka is a `Project Interactive Viewer`. She is a member of the `Finance` group and the `Design` group. The `Finance` group is given `Can View` access to the space. The `Design` group is given `Can Edit` access to the space. Priyanka has `Can Edit` access to the space (inherited from the `Design` group).

You can override a user's group access by adjusting their specific user access.

E.g. Priyanka is a `Project Interactive Viewer`. She is a member of the `Design` group. The `Design` group is given `Can Edit` access to the space. I set Priyanka's user access in the space to be `Can View`. Priyanka has `Can View` access to the space (her assigned user access to the space overrides her group access).

## Allowed email domains to join organization automatically

Organization admins can add allowed email domains to their organization settings so that anyone with those email domains can automatically join their organization (without explicitly inviting them).

To update your organization's allowed email domains setting, go to the **General** section of your **Organization settings**.

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-cccf65ca/SnC4EUnE5j-WQosl/images/references/workspace/roles/roles-allowed-email-domain.png?fit=max&auto=format&n=SnC4EUnE5j-WQosl&q=85&s=9674c7f1670e7f6d19f6f79d38c75480" width="2648" height="1214" data-path="images/references/workspace/roles/roles-allowed-email-domain.png" />
</Frame>

In the **Allowed email domains** panel, enter the email domain(s) you want to be able to automatically join your organization (e.g. here, we've added `lightdash.com`). Generic email domains like `gmail.com` or `hotmail.com` are not accepted.

You can then select the access that you want these users to have by default. The organization **Admin** can always update a user's permissions after they've joined!

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-cccf65ca/4GhtOnsLHg0poBCZ/images/get-started/setup-lightdash/invite-new-users/add-allowed-email-domains-97161e69ae2d054a0c32ce59020046fb.png?fit=max&auto=format&n=4GhtOnsLHg0poBCZ&q=85&s=93a341b3e40fe12c0041ff2e4e884a2a" width="1834" height="880" data-path="images/get-started/setup-lightdash/invite-new-users/add-allowed-email-domains-97161e69ae2d054a0c32ce59020046fb.png" />
</Frame>

If you want to add default permissions that are different across each project, you can select the organization role of **Organization member**, then set the project access for each project.

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-cccf65ca/WcLen7Ssa93pK0gS/images/get-started/setup-lightdash/invite-new-users/project-access-d9f901afa8a3a1b317399f36aba89804.png?fit=max&auto=format&n=WcLen7Ssa93pK0gS&q=85&s=05d55d92d194780505201e61113f288c" width="1812" height="826" data-path="images/get-started/setup-lightdash/invite-new-users/project-access-d9f901afa8a3a1b317399f36aba89804.png" />
</Frame>

Once you've selected the default roles for your allowed email domains, make sure to click **Update** to save your changes.

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-cccf65ca/WcLen7Ssa93pK0gS/images/get-started/setup-lightdash/invite-new-users/update-allowed-email-domain-projects-898f477fe45ca5f4b9a11beb1ddda132.png?fit=max&auto=format&n=WcLen7Ssa93pK0gS&q=85&s=97c9414612d160d159ff6f274e7800de" width="1822" height="852" data-path="images/get-started/setup-lightdash/invite-new-users/update-allowed-email-domain-projects-898f477fe45ca5f4b9a11beb1ddda132.png" />
</Frame>

Now, when a user tries to join Lightdash, they will be prompted to join your workspace if they have one of your allowed email domains.

<Frame>
  <img src="https://mintcdn.com/lightdash-mintlify-cccf65ca/WcLen7Ssa93pK0gS/images/get-started/setup-lightdash/invite-new-users/join-workspace-prompt-be07b9b8686986d33344b2eeec57e2f8.png?fit=max&auto=format&n=WcLen7Ssa93pK0gS&q=85&s=17f052153439bf524b4172a1ba32861e" width="1146" height="1020" data-path="images/get-started/setup-lightdash/invite-new-users/join-workspace-prompt-be07b9b8686986d33344b2eeec57e2f8.png" />
</Frame>

### Setting a Default Project

In the **Organization settings** you can set a default project. This is the project users will see when they log in for the first time or from a new device. If a user does not have access, they will see their next accessible project.
