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

# Folders role-based access control (RBAC)

> Learn how to set role-based access control for your folders to limit access to links for select teammates.

<Tip>
  This feature is only available on [Business plans and
  above](https://dub.co/pricing).
</Tip>

With folders, you can limit access to your links using fine-grained role-based access controls (RBAC).

E.g. if you have marketing teams from different departments within your Dub workspace, you can create folders for each team with role-based access controls to ensure members can only see the links that they should have access to.

<Frame>
  <img src="https://mintcdn.com/dub/ozk_roy7NgtcBDr5/images/dub-links/folder-main.png?fit=max&auto=format&n=ozk_roy7NgtcBDr5&q=85&s=838379a685500e149118d2a801a06233" alt="Folders RBAC" width="2400" height="1260" data-path="images/dub-links/folder-main.png" />
</Frame>

In this guide, we will learn how to set role-based access control for your folders to limit access to links for select teammates.

## What is role-based access control (RBAC)?

Role-based access control (RBAC) is a security approach that restricts access to resources based on the roles of individual users. Think of it like a modern office building where different employees have access to different floors based on their job roles.

In Dub's link folders, RBAC lets you control who can access specific folders and what they can do with the links inside them. For example, marketing team members might only have access to the "Marketing Campaigns" folder, while team leads have full access to all folders.

This granular control ensures that sensitive links remain secure while still allowing teams to collaborate effectively within their designated areas.

## Workspace-level permissions

When you create a folder, you can decide what the workspace-level permissions are for the folder. Workspace owners have access and full permissions to every created folder.

<Frame>
  <img src="https://mintcdn.com/dub/ozk_roy7NgtcBDr5/images/dub-links/folder-access.png?fit=max&auto=format&n=ozk_roy7NgtcBDr5&q=85&s=0fd6001c94a73592487bf3cdb061e3f6" alt="Create new folder access" width="2014" height="950" data-path="images/dub-links/folder-access.png" />
</Frame>

There are 3 options for the workspace-level permissions:

1. **Can edit** (default): Anyone in the workspace can access the folder and its links.
2. **Can view** (view-only): Workspace members can view the folder and its links, but not edit them.
3. **No access** (private folder): Only members added to the folder and workspace owners have access (via [folder-level permissions](#folder-level-permissions)).

<Tip>
  If you're on the [Pro plan](https://dub.co/pricing), you can only create
  folders with the default **"Can edit"** settings. Only [Business
  plan](https://dub.co/pricing) and above users can create folders with the
  **"Can view"** or **"No access"** settings.
</Tip>

## Folder-level permissions

You can also set folder-level permissions for each folder. This lets you set exactly which members can access the folder and what they can do with the links inside it.

To set folder-level permissions, open the `⋮` dropdown next to the folder in your links dashboard and select the "Members" option:

<Frame>
  <img src="https://mintcdn.com/dub/ozk_roy7NgtcBDr5/images/dub-links/folder-edit-dropdown.png?fit=max&auto=format&n=ozk_roy7NgtcBDr5&q=85&s=83cdb08974fb291550afa13b14ce9589" alt="Folders dropdown" width="2014" height="950" data-path="images/dub-links/folder-edit-dropdown.png" />
</Frame>

This will open up the member access control panel, where you can set different roles to different users:

<Frame>
  <img src="https://mintcdn.com/dub/ozk_roy7NgtcBDr5/images/dub-links/folder-edit.png?fit=max&auto=format&n=ozk_roy7NgtcBDr5&q=85&s=dbee12b72ed6841a8daf3492f522260d" alt="Folders member option" width="2014" height="1660" data-path="images/dub-links/folder-edit.png" />
</Frame>

| Role          | Description                                                                                                                   |
| ------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| **Owner**     | Has full access to the folder and its links. <br /> Can also invite other members to the folder / manage their access levels. |
| **Editor**    | Can edit the folder and its links.                                                                                            |
| **Viewer**    | Can view the folder and its links.                                                                                            |
| **No access** | Cannot view the folder and its links.                                                                                         |

<Tip>
  If you are using [machine users](/docs/api-reference/tokens#machine-users) for
  your API/integrations, remember to assign them the correct folder permissions
  as well – they function the same way as regular users and would require the
  correct permissions to be able to perform actions within a folder.
</Tip>

## Requesting access to a folder

If you only have read access to a folder, you can request edit access by clicking on the **"Ask to edit"** button:

<Frame>
  <img src="https://mintcdn.com/dub/ozk_roy7NgtcBDr5/images/dub-links/folder-asktoedit.png?fit=max&auto=format&n=ozk_roy7NgtcBDr5&q=85&s=0ab6e9ed0781c03f8c82eeb184f63a03" alt="Request edit access folder" width="2014" height="584" data-path="images/dub-links/folder-asktoedit.png" />
</Frame>

This will send an email to the folder admin, who can then grant edit/owner access to you to manage the folder and its links:

<Frame>
  <img src="https://assets.dub.co/cms/folder-access-request-email.png" alt="Folder access request email" />
</Frame>
