# 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="https://207765737-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpRDG3vvgCOF596sbdkH0%2Fuploads%2FqbGbDnuNUmGNYlrbZGt8%2Fimage.png?alt=media&#x26;token=fe0f56de-e55d-4c42-a5d7-4c8695e78be4" 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="https://207765737-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FpRDG3vvgCOF596sbdkH0%2Fuploads%2Fffb8J3rndOVi6mT8Z0ZR%2Fimage.png?alt=media&#x26;token=314fd0ed-0022-4600-83eb-b729895a94c8" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
