---
title: "Global data restrictions in your app"
description: "Limit which records and fields each user group can view, create, edit or delete in a table, with one rule that applies everywhere in your app."
canonical: "https://docs.softr.io/apps/global-data-restrictions"
updated: "2026-12-04"
---

# Global data restrictions in your app

A global data restriction limits which records, and which fields, a user group can reach in a table. You set the rule once, and it applies everywhere in your app: every page, every list, every form, every action, and AI assistants connected through MCP. Use it for client portals, where each client sees only their own records.

The rule runs on Softr's servers. A record a user may not view never reaches their browser, and an action on a record they may not change is refused, whatever the page code does.

> **Note**
>
> **View** restrictions are available on all plans, including Free. **Create**, **Edit** and **Delete** restrictions need the [Business plan and above](https://www.softr.io/pricing).

## Open the data restrictions

In the **Users** tab of your app, open **Data Restrictions**. The tab lists every restriction of your app, with its table, its user groups and a mark for each action it limits. Select **Add restriction** to add one, or ask Softr AI: "Clients see only the projects of their own company."

![The Data Restrictions tab of the Users tab: two restrictions on the Employees table, one for Admin and Manager and one for HR, with the Add restriction button outlined](/apps/global-data-restrictions/data-restrictions-tab-full.2x.webp)

## Add a restriction

A restriction names a table, the user groups it applies to, and the rules for each action.

### Choose a table

Select the data source, then the table. A restriction applies to one table.

### Choose the user groups

Under **Apply to user groups**, select one or several user groups. To restrict a single person, put them alone in a user group. See [User groups](/apps/user-groups).

### Set the rules for each action

The window has one tab per action: **View**, **Edit**, **Create** and **Delete**.

- **View** and **Edit**: a list of rules. Select **Add rule** to add a rule, or select a rule to change it. A tab can hold several rules.
- **Create**: one switch.
- **Delete**: one rule, set on the tab itself.

![The Data restrictions window for the Clients group on Acme Portal / Projects. The View, Edit, Create and Delete tabs are outlined. The View tab lists two rules: one on Client email, one that hides Internal notes and Margin in all records](/apps/global-data-restrictions/rules-view-tabs.2x.webp)

A rule of the **View** or **Edit** tab has three steps:

1. **Access**: choose **Restrict** or **Allow only**.
2. **Records**: choose **All records**, or **Some records** that match conditions.
3. **Fields**: choose the fields the rule covers.

![A View rule in its three steps: Access set to Allow only, Records set to Some records with the condition Client email is Email outlined, and Fields set to All current and future fields](/apps/global-data-restrictions/rule-editor-steps.2x.webp)

| Choice         | What it does                                                                            |
| -------------- | --------------------------------------------------------------------------------------- |
| **Allow only** | Users reach only the records that match your conditions. Other records are off limits   |
| **Restrict**   | Users cannot reach the records that match your conditions. Other records stay available |

![The same articles table under two rules. With Allow only Status is Published, users reach only the two published articles. With Restrict Status is Internal, users reach every article except the internal one](/apps/global-data-restrictions/allow-only-vs-restrict.2x.webp)

Select **Save rule** to go back to the list, then **Save** to save the restriction.

Without any restriction, users can view, create, edit and delete every record of the tables your app uses, as far as the app lets them. Each restriction narrows that.

### Add conditions

Conditions link records to the signed-in user. For example, to let clients view only their own projects, match the project's **Client email** field to the signed-in user's email. Each client then sees only the projects that carry their email.

![A rule that lets clients view a project only when its Client email is the signed-in user's email. Maria sees her two projects, Sam sees his one project, and neither sees the others](/apps/global-data-restrictions/condition-signed-in-user.2x.webp)

To build a condition, select **Some records**. Then pick a field of the table, an operator and a value. The value can be a fixed value, or a field of the signed-in user, such as their **Email**. Select **Condition** to add another condition, or **Group** to group conditions.

The operators depend on the field type. A text field offers **Is**, **Is not**, **Contains**, **Is any of**, **Is empty**, **Starts with** and more.

![The condition of a rule, open for editing: If Client email Is Email. The operator list is open and shows Contains, Is, Is not, Does not contain, Is any of, Is none of, Is empty, Is not empty, Starts with and more](/apps/global-data-restrictions/condition-operators.2x.webp)

Common conditions:

- A field of the record equals the signed-in user's email.
- A linked record points to the signed-in user, or to their company.
- A status field has a value, such as "Published".

### Hide fields

In the **Fields** step, list the fields the rule covers. Use it for internal fields, such as notes or margins, that clients must never see.

- With **Restrict**, users still get the records, but not the fields you list.
- With **Allow only**, users get only the fields you list.

Pick **All current & future fields** to cover every field, also the fields you add later.

![The Fields step of a Restrict rule on all records. The field list is open and outlined, with Internal notes and Margin selected among Project name, Client email, Status, Due date and Client feedback](/apps/global-data-restrictions/hide-fields-picker.2x.webp)

### Block new records

In the **Create** tab, turn on **Don't let users create new records**. The users of the groups can then add no record to the table.

![The Create tab of the Data restrictions window, with the Don't let users create new records switch turned on and outlined](/apps/global-data-restrictions/create-tab-toggle.2x.webp)

### Limit deletions

In the **Delete** tab, set one rule with the **Access** and **Records** steps. For example, **Restrict** and **All records** stop the users of the groups from deleting any record.

![The Delete tab, outlined, with one rule: Restrict, All records. The users of the group cannot delete any record of the table](/apps/global-data-restrictions/delete-tab-rule.2x.webp)

## When a user is in several groups

A user can belong to several user groups with different rules. Then:

- **Allow only** rules add up: the user reaches the records that any of their groups allows.
- **Restrict** rules win over **Allow only** rules.

For example, a table has 5 records, A to E:

| User group | Rule                          |
| ---------- | ----------------------------- |
| A          | Allow only records A, B and C |
| B          | Allow only records D and E    |
| C          | Restrict record E             |

A user in all three groups can view records A, B, C and D.

![Records A to E under three rules: group A allows A, B and C, group B allows D and E, group C restricts E. A user in all three groups sees A, B, C and D, because Restrict wins over Allow only](/apps/global-data-restrictions/several-groups-example.2x.webp)

## Several restrictions on one table

A table can have several restrictions, and a user group can appear in more than one of them. Softr adds up every rule that applies to the groups of a user, in the same way as above.

## What your users see

| Rule                  | What changes for the user                                                                         |
| --------------------- | ------------------------------------------------------------------------------------------------- |
| **View** restricted   | The records never appear: not in lists, details, search, dropdowns of related records, or filters |
| **Create** restricted | Adding a record to the table is refused                                                           |
| **Edit** restricted   | Changing the restricted records is refused                                                        |
| **Delete** restricted | Deleting the restricted records is refused                                                        |

When an action is refused, the button may still show on the page. Ask Softr AI to show each button only to the user groups that can use it: "Show the Delete button only to Admins."

## Test your restrictions

Use **Preview as** in the preview to sign in as a user of each group, and check what they can see and change. Then run the security check before you publish. See [Publish your app](/apps/publish#before-you-publish) and [Access overview](/apps/access-overview).

## FAQ

**Do data restrictions apply to workflows?**

No. Data restrictions control what users see and do in your app. A workflow runs on Softr's servers, not as an app user, so its steps can read and change every record of the tables they use. If a workflow must only touch some records, add those conditions to the workflow itself, for example with a **Filter** step.

**How do data restrictions work in Classic apps?**

Classic apps are the older Softr apps, built from blocks before Softr AI. Classic apps have global data restrictions too. Open **Users**, then **Data restrictions**, then select **Add restriction**. A rule applies to one table and one or more user groups. It limits what they can view, create, edit or delete. In Classic apps, a user group can appear in only one restriction per table. It covers dynamic blocks, dropdown options and inline filters. The Comments block is not covered. See [Options filters and global data restrictions](/classic/block-visibility-and-filters#how-options-filters-work-with-global-data-restrictions).
