> ## Documentation Index
> Fetch the complete documentation index at: https://docsy3.mile.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Restricted Fields

> Hide chosen task or data source fields from a role.

**Restricted fields** hide specific fields from a role, for one flow or data type at a time. People with that role don't see those fields in task and data screens or in the API (dashboards are the exception, see below). Use it to:

* keep sensitive information private, for example hiding customer phone numbers from field workers;
* simplify screens by hiding fields that don't matter to a role;
* meet compliance rules that limit who may see certain data.

> [!NOTE]
>
> Required permission:
>
> * View permission
> * Edit permission

## Set restricted fields

1. Open **Settings › Permission** and select the role.
2. For tasks: in the **Activities** card, under **Task › View task**, click **Configure** next to *No restricted fields configured*. For data sources: do the same under **View data source** in the **Workflow** card.
3. In **Applies to**, choose the flows (or data types) these restrictions apply to.

![Task restricted fields](https://mintcdn.com/mile-app/WPibWyW63U4l5gcF/images/v4/settings/permission-restricted.png?fit=max\&auto=format\&n=WPibWyW63U4l5gcF\&q=85\&s=81b10d742c0c2486c0471d936a6295a2)

4. For each one, choose the fields to hide. The editor shows how many fields are hidden, for example *3 fields hidden*. A flow with no fields to restrict says so.
5. Click **Save** in the editor, then **Save** on the Permission page.

Repeat for every flow or data type that needs restrictions.

## What people with the role see

* Hidden fields don't appear as columns in the task list or the data source list, and they can't add them back from **Columns**.
* Hidden fields don't appear in the task detail or the record detail.
* The same fields are removed from what the API returns to these users. Asking for a hidden field directly through the API is refused.
* Dashboards do not follow restricted fields. A hidden field of a flow or data type still appears in [custom widgets](https://docsy3.mile.app/pages/analytics/dashboard/custom-widget.md#how-a-field-is-stored) (**Group by**, **Filters** and **Sample rows**), and its values show in widgets to everyone who can open the dashboard.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.