Access Policies
Esta página aún no está disponible en español. Se muestra la versión en inglés.
Access policies let you control which rows of data each user can see within data that’s already been shared with them. Sharing controls WHO can access something — access policies control WHAT data they see within it.
A store manager sees their store’s data. A regional VP sees their region. The CEO sees everything. No separate copies, no separate dashboards — one dataset, filtered automatically for each person.
How policies work
Section titled “How policies work”An access policy is a simple rule: pick a column, pick the allowed values, assign users. That’s it. No SQL, no code, no data engineering required.
For example, a policy called “Southeast Region Only” might say: on the region column, only show rows where the value is SE. Assign that policy to your Southeast team, and they’ll only see Southeast data — everywhere in Querri.
Creating a policy
Section titled “Creating a policy”- Go to Settings > Security > Access Policies
- Click Create Policy
- Fill in the fields:
| Field | What to enter |
|---|---|
| Name | A clear label, like “Southeast Region Only” or “Store 101” |
| Description | Optional notes about why this policy exists |
| Column | The data column to filter on (e.g., region, store_id, department) |
| Values | The allowed values for that column (e.g., SE, NE) |
| Applies To | Auto or Explicit (see below) |
Auto-apply vs. explicit binding
Section titled “Auto-apply vs. explicit binding”- Auto (default): The policy applies to every data source that has the specified column. Create a policy on
region, and it automatically filters every source with aregioncolumn. This is the simplest option — set it and forget it. - Explicit: The policy only applies to sources you specifically select. Use this when you have columns with the same name in different sources that mean different things.
Column matching is case-insensitive — a policy on Country matches columns named country, COUNTRY, or Country.
Assigning users
Section titled “Assigning users”After creating a policy, add users from the policy detail view:
- Open the policy from the list
- Click Add Users
- Search by name or email
- Select users to assign
How policies combine
Section titled “How policies combine”Users can have multiple policies. Here’s how they work together:
- Same column, different policies = OR. A user with policies for
region = SEandregion = NEsees rows where region is SE or NE. - Different columns = AND. A user with
region = SEanddepartment = Salessees only rows matching both conditions.
This composable approach covers most real-world scenarios: filter by region, department, client, store, or any combination.
Previewing access
Section titled “Previewing access”Use the Resolve Preview tool to verify policies before rolling them out:
- Go to Settings > Security > Access Policies
- Select a user and a data source
- The preview shows exactly which rows they can access and the resulting filter
This is your safety net — verify that policies work as expected before assigning them to your team.
Key behaviors
Section titled “Key behaviors”- Policy on a source without that column: The policy is skipped for that source. The user sees all rows.
- All policies apply but no rows match: The user sees zero rows from that source.
- Dashboard access: When someone views a shared dashboard, their policies are applied automatically. Each viewer sees their version of the data.
- Audit logging: All policy changes — creates, updates, deletes, and user assignments — are recorded in the audit log.
Next steps
Section titled “Next steps”- Column Security — Control which columns users can see
- Groups — Assign policies to teams instead of individuals
- Dashboard Security — How shared dashboards enforce per-viewer access
- PHP SDK — Manage policies programmatically from PHP
- Python SDK — Manage policies programmatically from Python