Data policies

Limit what each group can see when they ask questions—by data source and by sensitivity—without writing row filters.

When to use this

  • Finance should see revenue tables but not employee PII
  • Contractors should get Public and Internal only
  • An App needs a default policy for everyone who uses it

How a policy works

A policy does three things:

  1. Names the policy (who it is for).
  2. Adds data sources and ticks the items (schemas, tables, datasets) the policy may read.
  3. Sets how each sensitivity level is treated when someone covered by the policy asks a question.

Treatments:

TreatmentMeaning
FullShown as stored
MaskedValues redacted; the item stays
HiddenLeft out entirely

Sensitivity levels (defaults when you create a policy):

LevelDefault treatment
PublicFull
InternalFull
SensitiveMasked
HighHidden
PIIHidden

PII cannot be set to Full—only Masked or Hidden.

Policies are not assigned inside the policy editor. You assign them under Users → Groups (per App or as a group default), directly on a user, or as an application default. There are no row-level rules in this editor.

Create a policy (worked example)

Goal: HR team can query the HR App’s employee tables, but salaries stay masked and national IDs stay hidden.

  1. Open Settings → Data Policies → create a policy.
  2. Name it HR — standard analysts. Add a short description.
  3. Under What data, choose Add source, pick the HR database, and tick the employee-related items (skip payroll vault tables you never want in chat).
  4. Under Sensitive data:
    • Public, Internal → Full
    • Sensitive → Masked (covers salary-style fields you classified as Sensitive in Schema)
    • High → Hidden
    • PII → Hidden
  5. Save the policy.
  6. Open Settings → Users → Groups → your HR group. For the HR App, set this policy (or set it as the App default under Apps).

When an HR analyst asks “What is Jane’s salary?”, the answer path follows Masked/Hidden rules from this policy and your Schema classifications—not a separate row filter.

Tips

  • Classify columns in Schema first; policies only decide Full / Masked / Hidden per level.
  • Prefer group assignment so you do not maintain one-off user policies.
  • Use Who can access what on the policies page to check effective access.

Related pages