> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Groups and permissions

> Use groups to control who can use each data source, add group context, and set who can access new charts, chats and dashboards.

> [!NOTE]
>
> Only admins can manage groups and permissions. Admins always see every data source and have full
> access to every chart, chat and dashboard.

Permissions in Matys rest on three things:

> [card] Groups
>
> Named sets of members, such as Product or Finance.

> [card] Data source access
>
> Which groups can use each data source.

> [card] Defaults
>
> Who can access charts, chats and dashboards other people create.

## Groups

A group is a permission tag. Its members inherit the group's data source access and item permissions.

### Create a group

**1. Open Groups**

Go to **Settings > Groups**.

**2. Name the group**

Click **New group**, type a **Name** (for example "Product") and click **Create**.

**3. Add members**

Matys opens the new group. Click **Add member**, search for a member and select them. Repeat for each member.

Group names are unique within an organization and can be up to 120 characters.

### Manage a group

Open a group from **Settings > Groups** to:

* Rename it: edit **Name** and press Enter.
* Add a member with **Add member**. Only organization members who aren't already in the group are listed.
* Remove a member with the cross next to their name.
* Delete it with **Delete**.

> [!WARNING]
>
> Deleting a group also removes any data source access and item permissions granted to it.

You can also set a member's groups from **Settings > Members**. Click the groups shown next to their name, tick or untick groups, then click **Save**.

### Group context

Each group has a **Group context**. It is added to the organization's global context for every member of the group, so the Matys AI analyst gets extra instructions for that team.

**1. Edit**

Open the group and click **Edit** in the **Group context** section.

**2. Write the context**

Write the context in Markdown. For example, the team's key metrics or the tables they use most.

**3. Save**

Click **Save**.

See [Context](/docs/context.md) for the organization-wide context.

## Data source access

Each data source has an audience: everyone in the organization, or specific groups.

**1. Open Data sources**

Go to **Settings > Data sources**. Each data source shows its current audience: **Everyone** or **Specific groups**.

**2. Edit access**

Click the audience next to a data source.

**3. Choose who can use it**

Pick **Everyone in org**, or pick **Specific groups** and add groups.

**4. Save**

Click **Save**.

* A new data source is open to everyone in the organization.
* With **Specific groups**, only members of the selected groups see the data source.
* If you pick **Specific groups** and add no group, only admins can use the data source.

> [!TIP]
>
> To limit which schemas or datasets of a warehouse Matys can read, use **Limit to specific
> schemas** (or **datasets**) when you connect it. That setting applies to everyone. See [Data
> sources](/docs/data-sources.md).

## Default sharing for new items

Go to **Settings > Defaults**. Set one rule each for **Charts**, **Chats** and **Dashboards**.

For each type, choose:

* **Who can access new charts / chats / dashboards?**

| Option | Who gets access |
| - | - |
| **Everyone in org** | Every member of the organization. |
| **Creator's groups** | Members who share at least one group with the creator. |
| **Creator only** | Only the creator, plus admins. |

* **Permission level**: what those people can do.

| Level | What they can do |
| - | - |
| **View** | Open and read the item. |
| **Edit** | Change the item, for example send messages in a chat. |
| **Full access** | Everything, including owner actions such as deleting a chat or changing a dashboard's public link. |

When the audience is **Creator only**, the permission level is locked. The creator always has full access to their own items.

A new organization starts with **Everyone in org** and **Full access** for all three types.

> [!NOTE]
>
> Matys checks these defaults each time someone opens an item. Changing a default changes access to
> existing items of that type too, not only new ones.

### Charts on dashboards

A chart placed on a dashboard is also open to anyone who can access that dashboard, at the same level. This means people can see every chart on a dashboard they can open, even when the chart defaults alone would hide it. See [Share dashboards](/docs/dashboards/share.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.