> For the complete documentation index, see [llms.txt](https://docs-v3.toucantoco.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](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).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` 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>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
