CommunityHire an ExpertSign Up
AppsGlobal data restrictions
Access and permissions

Global data restrictions in your app

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.

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.

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

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.

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

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

ChoiceWhat it does
Allow onlyUsers reach only the records that match your conditions. Other records are off limits
RestrictUsers 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

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

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

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

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

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

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 groupRule
AAllow only records A, B and C
BAllow only records D and E
CRestrict 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

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

RuleWhat changes for the user
View restrictedThe records never appear: not in lists, details, search, dropdowns of related records, or filters
Create restrictedAdding a record to the table is refused
Edit restrictedChanging the restricted records is refused
Delete restrictedDeleting 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 and 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.

Use these docs with your AI tools

An AI agent can read this documentation directly. You do not need an account or an API key. Everything here is public and read-only.

Query these docs via MCP

Recommended

Add this server to Claude, Claude Code, Cursor, Mistral, or any tool that supports MCP. Your agent can then search Softr Documentation documentation and read it in full, instead of answering from memory.

https://docs.softr.io/mcp
  • searchFind the passages that answer a question.
  • fetchRead one page in full, as Markdown.
  • list_pagesSee every page in this documentation.

Query these docs over HTTP

The same tools also work as plain web requests. Use this for scripts, or for any tool that does not support MCP. There is one endpoint per tool. Arguments go in the query string, and the answer comes back as JSON.

https://docs.softr.io/api/docs/search?query=custom+domain

Read the OpenAPI description. It is built from the same definitions as the tools, so it always matches what the endpoints do.

Read these docs as Markdown

Add .md to any page URL to get its Markdown source. You can also send the headerAccept: text/markdown to the page URL itself.

To read the whole documentation in one file, open llms-full.txt. For a short index of every page, open llms.txt.