> For the complete documentation index, see [llms.txt](https://docs.whaly.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.whaly.io/data-management/explorations/row-level-access.md).

# Row Level Access

Row Level Access (RLA) allows Builders to control which rows of data each user can access, based on specific attributes configured at the user level. This ensures that users only see data relevant to their role, location, or other designated criteria. The feature enhances data security and personalization by filtering data dynamically per user.

Row Level Access is configured at the "Exploration" level. RLA binds a specific dimension within an [Exploration](https://docs.whaly.io/data-management/explorations.md) (e.g., "Country") to a [User Attribute](https://docs.whaly.io/user-management/user-attributes.md), allowing for granular control over the data a user can see in that context.

To implement RLA, you bind a dimension in the [Exploration](https://docs.whaly.io/data-management/explorations.md) to a [User Attribute](https://docs.whaly.io/user-management/user-attributes.md). A dimension is a field in the dataset, such as "Country," "Department," or "Team." The [User Attribute](https://docs.whaly.io/user-management/user-attributes.md) is configured at the user level and determines what value the user has for that dimension. For example, if the "Country" dimension is bound to a User Attribute "user\_country," users will only see rows where the "Country" matches their "user\_country" value.

Example:

* **Dimension:** Country
* **User Attribute:** user\_country
* **Outcome:** A user with "user\_country = USA" will only see rows where "Country = USA."

<figure><img src="https://34758050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MC1g4I2_CgXd0qAq1P7%2Fuploads%2FRLOHCts4Ue1GJ005ps4p%2Fimage.png?alt=media&amp;token=7a2fd3a3-7d99-4349-8c9a-74ba87495bf8" alt=""><figcaption></figcaption></figure>

<figure><img src="https://34758050-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MC1g4I2_CgXd0qAq1P7%2Fuploads%2FX2qipVITvTNptTZQD0jX%2Fimage.png?alt=media&amp;token=8d4a06d3-1adf-4ca0-b770-7bfc931dcb9c" alt=""><figcaption></figcaption></figure>

### **FAQs**

#### **Q1: How do I troubleshoot RLA configuration issues?**

Ensure that the correct [User Attributes](https://docs.whaly.io/user-management/user-attributes.md) are assigned to users and that the dimension in the Exploration is properly bound to the User Attribute. Check that users have the necessary attribute values set. You can use [User Impersonation](https://docs.whaly.io/team/impersonate.md) to validate the setup.

#### **Q2: What happens if a user doesn’t have a User Attribute set?**

#### If a User Attribute is not set, the user will see no data for security reasons. So it's important to properly configure the [User Attribute](https://docs.whaly.io/user-management/user-attributes.md) of each users.

#### **Q3: I want some users to see all available data**

The `*` value can be used in [User Attribute](https://docs.whaly.io/user-management/user-attributes.md) value to indicate that the user can see everything.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.whaly.io/data-management/explorations/row-level-access.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
