> For the complete documentation index, see [llms.txt](https://documentation.immuta.com/SaaS/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.immuta.com/SaaS/govern/secure-your-data/authoring-policies-in-secure/data-policies/how-to-guides/restricted-data-policies.md).

# Author a Restricted Data Policy

Build a data policy that only applies to data sources you own

Data owners who are not governors can write restricted [subscription](/SaaS/govern/secure-your-data/authoring-policies-in-secure/section-contents/how-to-guides/restricted-subscription-policies.md) and data policies, which allow them to enforce policies on multiple data sources simultaneously, eliminating the need to write redundant [local policies](/SaaS/govern/secure-your-data/authoring-policies-in-secure.md#policy-scope).

Unlike global policies, the application of these policies is restricted to the data sources owned by the users or groups specified in the policy and will change as users' ownerships change.

## Permissions

`CREATE_DATA_SOURCE` Immuta permission or own the data source

## Build the policy

1. Click the <i class="fa-shield">:shield:</i> **Policies** icon in the navigation menu and select **Data Policies**.
2. Click **New data policy** and complete the **Policy name** field.
3. Select **Protect** or **Reveal** as the data policy type.
   * **Protect**: Select how the policy should protect the data. Click a link below for instructions on building that specific data policy:
     * [**Mask**](/SaaS/govern/secure-your-data/authoring-policies-in-secure/data-policies/how-to-guides/data-policy-tutorial.md)
     * [**Only show rows**](/SaaS/govern/secure-your-data/authoring-policies-in-secure/data-policies/how-to-guides/row-redaction-tutorial.md)
     * [**Only show data by time**](/SaaS/govern/secure-your-data/authoring-policies-in-secure/data-policies/how-to-guides/time-based-tutorial.md)
     * [**Limit usage to purpose(s)**](/SaaS/govern/secure-your-data/authoring-policies-in-secure/data-policies/how-to-guides/purpose-tutorial.md)
     * [**Minimize data source**](/SaaS/govern/secure-your-data/authoring-policies-in-secure/data-policies/how-to-guides/minimization-tutorial.md)
   * **Reveal**: Select what users should be able to see data in the clear. See the [Author a reveal policy guide](/SaaS/govern/secure-your-data/authoring-policies-in-secure/data-policies/how-to-guides/author-a-reveal-policy.md) for more instructions on building this policy.
4. <i class="fa-sparkles">:sparkles:</i> [**AI-powered feature**](/SaaS/configuration/application-configuration/reference-guides/immuta-ai-faq/immutas-ai-features.md)**:** Click **Explain this policy** to open the AI assistant side sheet. The [AI assistant](/SaaS/govern/secure-your-data/authoring-policies-in-secure/data-policies/reference-guides/data-policies.md#ai-assistant) will generate a textual summary and explanation of the policy behavior on various users using mock data.
5. Opt to complete the **Enter Rationale for Policy (Optional)** field, and then click **Add**.
6. From the **Where should this policy be applied** dropdown menu, select **When selected by data owners**, **On all data sources**, or **On data sources**. If you selected **On data sources**, finish the condition in one of the following ways:
   * **tagged**: Select this option and then search for **tags** in the subsequent dropdown menu.
   * **with columns tagged**: Select this option and then search for **tags** in the subsequent dropdown menu.
   * **with column names spelled like**: Select this option, and then enter a **regex** and choose a **modifier** in the subsequent fields.
   * **in server**: Select this option and then choose a **server** from the subsequent dropdown menu to apply the policy to data sources that share this connection string.
   * **created between**: Select this option and then choose a **start date** and an **end date** in the subsequent dropdown menus.
7. Beneath **Whose Data Sources should this policy be restricted to**, add **users** or **groups** to the policy restriction by typing in the text fields and selecting from the dropdown menus that appear.
8. To limit this policy to data sources within specific domains, enter the domains the policy should be restricted to in the **Select Domains** field.
9. Click **Activate Policy** or **Stage Policy**.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.immuta.com/SaaS/govern/secure-your-data/authoring-policies-in-secure/data-policies/how-to-guides/restricted-data-policies.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
