# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.datasuite.vn/english/sharing-and-access-management/permission/role-based-security.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
