> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

# default_topic_access_filters - Model files

> Defines default access filters for topics in the model.

Defines a list of default access filters for topics in the model. Access filters limit row-level access to data based on user attributes.

## Syntax

```yaml theme={null}
default_topic_access_filters:
  - field: <view>.<field>
    user_attribute: <user_attribute_reference>
    values_for_unfiltered: [<user_attribute_value>]
  - field: <view>.<field>
    user_attribute: <user_attribute_reference>
    values_for_unfiltered: [<user_attribute_value>]
```

## Properties

**default\_topic\_access\_filters** `object[]` *required*

A list of default access filters to apply to topics in the model.

**default\_topic\_access\_filters properties**

**field** `string` *required*

The name of a field, specified using `<view>.<field>` convention, to match to the `user_attribute`.

**user\_attribute** `string` *required*

A user attribute reference. Records with `field` values that match the user's attribute value will be visible to the user.

For example, if a user has a `customer` value of `blobsrus` and the `products.brand` field in a record has a `blobsrus` value, the user will have access to the record.

**values\_for\_unfiltered** `string[]`

User attribute values that allow unrestricted access. Users with these values will not have the access filter applied.

> [!WARNING]
>
> Do not use the same value as the attribute's default. Any user who inherits the attribute's default value will receive unfiltered data.

## Examples

```yaml title="Match brand field value to customer user attribute value" theme={null}
default_topic_access_filters:
  - field: products.brand
    user_attribute: customer
    values_for_unfiltered: [is_admin]
```

## Troubleshooting

If an access filter can't be mapped to a topic, an error will surface in the model IDE. Add a blank [`access_filters`](https://docs.omni.co/modeling/topics/parameters/access-filters) parameter to the topic to resolve the issue:

```yaml title="Topic file" theme={null}
access_filters: []
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.