> For the complete documentation index, see [llms.txt](https://docs.datasuite.vn/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.datasuite.vn/english/sharing-and-access-management/permission/role-based-security.md).

# Role-Based Security

**Role-Based Security** is a mechanism that controls data access in the **Data Model** based on the **user's role**. Each user can only view the data that corresponds to their assigned permissions.

#### How It Works

* Users are assigned to one or more **roles**.
* Each role has its own **access rules**, defined in the Data Model (e.g., by row-level filters, schema access, or column-level restrictions).
* When a user accesses a report, the system automatically applies the corresponding filter conditions based on their role.

#### Set Up Role-Based Security

{% stepper %}
{% step %}

#### Open the Role-Based Security Tab

Select the **Workspace**, navigate to **Data Model**, choose the Data Model you want to configure, then go to the **Role-Based Security** tab.
{% endstep %}

{% step %}

#### Assign Users to a Role

Choose the **Default Role**, open the **Assignment** section, add users to this role, and click **Save**.

<figure><img src="/files/wi6mjnWDCKcOguCqxbp8" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

#### Configure Role Filter Conditions

Select the **Dataset** you want to apply security to, go to the **Filters** tab, define the filter conditions for this role, and click **Save**.

<figure><img src="/files/ImpsD0dsE8VjMfORb1gi" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
