# YouPrep data filtering with a user attribute

In this section, we'll explore the process of enhancing your data security through dynamic row-level filtering **with YouPrep**. By utilizing user attributes, you can efficiently filter tables and implement robust row-level security. This feature proves invaluable, especially in scenarios involving a multi-tenant data architecture where data for all users is consolidated within a single table.

{% hint style="info" %}
It's highly recommended as an App-builder to be **connected with an account that has the user attributes** used that are set. This ensures a smooth and efficient configuration process. If you are not connected with a user having those user attributes, the variables won't be listed in YouPrep.
{% endhint %}

Let's delve into the steps to seamlessly achieve this dynamic row-level filtering and fortify your data management within Toucan environment:

* Add a “Filter rows” step\
  ![](/files/GXDC9fG9BoFx0QpCU5FS)
* Select the column to filter on, and then click on the “Variable” icon and select the user attribute (customer\_id in the example below).\
  ![](/files/COqi8QTCvgA4kQxazUy5)

{% hint style="info" %}
Note that there is also a **dedicated feature called** [**Permissions**](/data-management-in-datahub/datasets-in-toucan/setting-permissions-on-dataset.md), that allows to configure Row-Level-Security on datasets.
{% endhint %}


---

# 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-v3.toucantoco.com/data-management-in-datahub/using-advanced-data-concepts/data-personnalisation-with-user-attributes/youprep-data-filtering-with-a-user-attribute.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.
