- Docs
- Work with Astrato
- Semantic layer
- Security and governance
Withhold sensitive data from AI tools and downloads
A sensitive data tag marks what in a semantic layer is personal (PII), health-related (PHI) or confidential (Private). The layer’s Sensitive data settings then decide, for each tag, which surfaces withhold it. Published queries pick up your changes when you publish the layer; see Choose where each tag is withheld for queries on a saved draft.
Tags do not hide data on dashboards, in workbooks or in Data Apps, and they do not filter rows. To restrict which rows a person sees, use a security rule. Tags withhold particular items in a layer. Which surfaces offer the whole layer is set per grant in Manage access; no surface applies that setting yet.
Before you start: you need to be able to edit the semantic layer, and sensitive data tagging must be enabled for your workspace. When it is off, an untagged item has no Sensitive data row. The Settings page has no Sensitive data section unless the layer already has tags or saved settings, and then its checkboxes are read-only. Tags that were already published are still applied while it is off.
Tag a field
Section titled “Tag a field”- In the Semantic Layer Editor, open Semantic Model → Tables & Fields and select the field.
- In the field’s panel, set Sensitive data to PII — personal data, PHI — health data or Private. Unclassified removes the tag.
- Publish the layer.

Fields of uploaded tables cannot be tagged.
A dimension inherits the tags of the fields it uses, so you do not need to tag it separately. You can also tag dimensions, measure results, business questions and business workflows.
AI suggestions also use the tags of the fields behind a measure or dimension. When Values sent to AI for suggestions is ticked for a field’s tag, a measure over that field is kept out of what they send to a model, even without its own tag. They ignore a tag you set on a dimension: tag the field behind it instead. A tag on a measure keeps it out of what next-question suggestions send to a model. Counts and distinct counts do not carry their field’s tag there.
Choose where each tag is withheld
Section titled “Choose where each tag is withheld”Open the layer’s Settings tab, at the right of the editor’s tab bar, and scroll to Sensitive data. The table has a column for each tag and a row for each surface:

| Row | What a ticked box withholds |
|---|---|
| External AI tools (MCP) | Data sent to AI assistants you connect through MCP. |
| Nash and scheduled AI reports | Data sent to Nash, including Recurring Nash reports. |
| Values sent to AI for suggestions | Values read to suggest dimensions and questions, or to describe data. |
| Data Explorer and Nash chart downloads | CSV downloads from Data Explorer, and CSV or XLSX downloads of charts. |
A ticked box withholds that tag from that surface. An unticked box shares it. A new layer starts with every box ticked. Untick a box only when that surface may receive the data.
Publish the layer after you change the table. Published queries use the published settings, so a change you have only saved does not affect them. A query an AI tool runs against your saved draft checks both the draft and the published settings. A tag or ticked box you save applies to it at once. One you remove that is already published still applies until you publish; one you added and removed before publishing stops applying when you save.
What a withheld item does on each surface
Section titled “What a withheld item does on each surface”- MCP and Nash leave the item out of the list of fields they can query. A query that selects it returns the other columns and a notice naming the column that was left out. A query that filters on it, or selects only withheld columns, is refused. A tagged question or workflow is withheld whole.
- AI suggestions never send the item’s values or findings to a model. Dimension suggestions do not read its values at all. Next-question suggestions can still run queries that use it and offer the result, but choose and title those suggestions without the model.
- Downloads are refused before any file is written when the query uses a withheld item.
You can still preview tagged data in the Semantic Layer Editor if you can edit the layer.
What is not covered
Section titled “What is not covered”- A restricted item that a query reaches only indirectly is not checked: a tagged field used inside a reusable filter, or a tagged measure referenced from a question’s own calculation.
- Exports and printing from classic workbooks, and Excel Add-in dataset discovery and refresh, do not apply these settings.
- Snowflake semantic view and Databricks metric view exports include tagged items. Your warehouse permissions govern who can read the resulting views.
- Dashboards, workbooks and Data Apps show tagged data to anyone who can see it.