# Ownership filter

The ownership filter lets you grant users access to records that they are connected to.

The format of these filters is based on a single condition that must match between the record and a user's record. You will need to use [**linked fields**](https://support.stackerhq.com/hc/en-us/articles/10759382971667-Stacker-Tables-Linked-Fields) to set up the ownership filter.

In our property app on our team table, we have selected some records and set the rule so that access can only be granted to users where **The record** matches the user's **Team Profile**.

<figure><img src="/files/MDMx16RDb6TByIt0XAYr" alt=""><figcaption></figcaption></figure>

This rule limits the records so that users can only see their own profile.

Another example would be, on our jobs table we limit access so that customers can only see jobs that matches their profile.&#x20;

<figure><img src="/files/pZa0hRz1nQ9QYd95DV9t" alt=""><figcaption></figcaption></figure>

To set up the ownership filter, you will need a [**linked field**](https://support.stackerhq.com/hc/en-us/articles/10759382971667-Stacker-Tables-Linked-Fields) to the appropriate table. In the case of our Service app, our Customers can only see their own jobs.

<figure><img src="/files/mer0YTmKt8OwCdiVDj5Y" alt=""><figcaption></figcaption></figure>


---

# 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.stackerhq.com/stacker-astra/security/add-user-permissions/create-or-edit-a-permission-rule/ownership-filter.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.
