# Author a Restricted Data Policy

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: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
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>
```

The question should be specific, self-contained, and written in natural language.
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.
