Skip to main content
Base44 automatically sets up data permissions as you build your app. You can adjust them at any time using the AI chat, or configure them manually if you need more control. If permissions are not set up correctly, the wrong people could view or change data in your app.
To set who can open your app and whether they need to sign in, see Managing app access and roles.

Setting permissions with AI

You don’t need to configure permissions manually. Tell the AI chat how your app should work in plain language, and it sets up the right rules for you. This works when you are first building your app and at any point later when your needs change. When the AI creates a new data table, it adds permission rules in the same step, without waiting for you to ask, and tells you in the chat which tables it secured. It picks the rules based on who the data belongs to. For example, orders stay visible only to the person who placed them and your admins, while a product catalog stays open for anyone to browse. If the rules it picks don’t match how your app should work, tell the AI chat what to change, like in the prompts below. If it needs to change rules you already have, it asks for your approval first. Here are some examples of prompts you can use:

Customizing permissions manually

If you want to review or fine-tune the permissions on a specific data table, you can do that from the table’s Permissions page in your dashboard. The page opens in a read-only view showing your current rules. Click Edit to make changes.
Not sure what rules to set? Describe what you need to the AI chat in plain language and it configures the permissions for you. Manual configuration is there when you need more precise control.
To customize permissions for a data table:
  1. Click Dashboard in your app editor.
  2. Under Data, click the table you want to manage.
  3. Click Permissions in the top right of the page. If there are permission issues, you see a warning icon on the button.
  4. Click Edit to open the Configure permissions panel.
  5. Check the boxes for the actions you want each rule to cover:
    • Create: Add records.
    • Read: View records.
    • Update: Edit records.
    • Delete: Remove records.
  6. If you check a box for Entity-User Field Comparison, fill in its 2 settings:
    • Entity field: Enter the field from this table to compare.
    • User field: Choose the matching property from the person’s account.
  7. If you check a box for User Property Check, fill in its 2 settings:
    • User property: Choose the property on the person’s account to check.
    • Required value: Set the value it must match.
  8. Click Save.
The Permissions page for a Trip entity, with a warning that permissions issues were detected above a rules table where All Users can create, update and delete and Creator Only can read

Managing permissions for your data

Working with rules:
  • Any matching rule gives access: A person who matches one rule can do that action, even if they don’t match the others.
  • Adding rules: To add another Entity-User Field Comparison or User Property Check row, click Add rule at the bottom of the panel.
  • Removing rules: You can’t remove a rule that’s the only one covering an action. Add another rule for that action first, then deselect the one you want to remove.
  • Seeing the technical format: The Generated JSON (Preview) section at the bottom of the page shows how your rules translate into the technical format Base44 uses behind the scenes. You don’t need to understand it to use the permissions editor, but it’s useful if a developer asks you to share your permission configuration, or if you want to verify exactly what rules are in place.

Permission rule types

You don’t usually need to add rules manually. The AI sets them up when it creates your data tables, and the Permission recommendations panel suggests fixes when something looks off. This section is here if you want to understand what each rule does before applying a recommendation, or if you need to fine-tune something specific.
If you turn on All Users for an action that already has specific rules, you’re asked to confirm before those rules are cleared. If you turn on a specific rule while All Users is on for that action, All Users is removed automatically.

Using Entity-User Field Comparison

This rule checks whether a field on the record matches a property of the signed-in person’s account. If they match, access is granted. You set 2 things:
  • Entity field: The name of a field that already exists on this data table. To find your field names, open the table from your dashboard and look at its columns. Type the field name exactly as it appears, such as assigned_to or owner_email.
  • User field: The property from the signed-in person’s account to compare it with, selected from a drop-down. For example, their email address.
For example, say you have a Tasks table with an assigned_to field that stores the email of whoever the task belongs to. Set Entity field to assigned_to and User field to email. Now each person only sees the tasks assigned to them.
Both sides must hold the same kind of information. The rule only lets someone in when the table field and their account detail store the same thing, such as an email address in both. If they store different things, the rule never matches, and people using your app can end up seeing an empty table.A common mistake is entering id as the Entity field. The id field is each record’s own ID, not a person’s email or name, so it never matches anyone. To show each person their own records, use a field that stores their email, such as owner_email, or use the Creator Only rule instead.
You can add multiple Entity-User Field Comparison rows if you need to match on more than one field pair.

Using User Property Check

This rule checks a property on the signed-in person’s account and grants access only if it matches a value you set. You set 2 things:
  • User property: The account field to check, such as the person’s role, email or full name.
  • Required value: The value it must match. For the role, choose Admin, User or one of your app’s own roles from the drop-down. For other fields, type the value.
For example, to let only admins delete records, set the rule to check User Role with the required value Admin. You can add multiple User Property Check rows for different properties or values.

Applying permission recommendations

If the AI detects a potential risk in your current setup, a Permission risks detected banner appears directly on the data table page. It shows a summary of the risk and the recommended fix. To apply the recommendations in one step, click Fix on the banner. To review the changes before you apply them, follow the steps below.
A Permissions issues detected banner outlined on the Trip table, above an All Users rule with Create, Read, Update and Delete ticked

A permission issue on a table

To review the recommendations before you apply them:
  1. Click Dashboard in your app editor.
  2. Under Data, click the table with the risk.
  3. Click More details on the Permission risks detected banner.
  4. Compare the panel’s 2 sections:
    • Risk: Your current rules, and why they may expose data to unintended people.
    • Recommended rules: The suggested replacement, with a plain-language description of what it enforces.
  5. Click Apply recommendations to replace your current rules with the recommended ones, or click Cancel to close the panel and keep your existing rules. You can still edit the rules manually after you apply the recommendations.
The Permission recommendations dialog, with a risk table where All Users can create, read, update and delete, above recommended rules that limit read, update and delete to Creator Only and admins

Permission recommendations panel


Testing your permissions

After you change a table’s permissions, test them to check that each person can reach only what they should. Testing opens your app’s preview as the people you choose, so you see your rules the way they do. Changes you make while testing are saved to that person’s data, so test with sample people where you can. To test your permissions:
  1. Click Dashboard in your app editor.
  2. Under Data, click the table you want to test.
  3. Click Permissions in the top right of the page.
  4. Click Edit, change the rules, and click Save. Learn more about customizing permissions manually.
  5. Click Test permissions in preview, next to Edit. Your app’s preview opens on a page that uses this table, with the list of people already open.
    Current permissions on a table's Permissions page, with the cursor on Test Permissions in preview next to Edit

    Testing your permissions after you save them

  6. Select a person to see the app as them.
  7. Check what they can see and do. To compare, select someone else from the drop-down next to You’re acting as.
  8. Click Exit mode when you’re done.
To test a table’s permissions at any time, click the More actions icon next to the table in your dashboard and select Test permissions in preview. Learn more about testing your app as a user.

Examples by app type

Not sure how to set up permissions for your app? You can ask the AI chat to review your setup and suggest the right rules, or use a common scenario as a starting point. Choose the scenario closest to your app:
A small group of trusted people all use the same app, such as a family shopping list or a shared home management tool.
  • App visibility: Private. Invite the people who need access.
  • Require login to access: Yes.
  • Permissions: For data everyone shares equally, no restrictions are needed. For data that belongs to each person individually, such as personal notes or reminders, use Creator Only on Read, Update, and Delete so each person can only access records they created.
Anyone can visit the site, but the submissions they send should only be visible to you or your team.
  • App visibility: Public.
  • Require login to access: No.
  • Permissions: For the form submissions table, use All Users on Create so anyone can submit. Use User Property Check on Read, Update, and Delete, restricted to your admin role, so only your team can view and manage the incoming messages.
A team or company uses the app internally, and some data should only be visible to managers or specific roles.
  • App visibility: Workspace.
  • Require login to access: Yes.
  • Permissions: Use User Property Check to restrict sensitive tables, such as salary data or performance reviews, to a manager role. For general content like announcements or shared resources, use All Users on Read so the whole team can view it.
Each person logs in and manages their own data. They should only ever see their own records, never anyone else’s.
  • App visibility: Public or Workspace, depending on whether you want open sign-up or invite-only access.
  • Require login to access: Yes.
  • Permissions: Use Creator Only on Read, Update, and Delete for every personal data table. This ensures each person can only access records they created.
Anyone can browse the content, but only editors or admins can add or change anything.
  • App visibility: Public.
  • Require login to access: No, unless you want to gate certain content.
  • Permissions: Use All Users on Read so anyone can view content. Use User Property Check on Create, Update, and Delete, restricted to your editor or admin role, so only your team can manage content.
Different companies, schools, or departments each use the app, but their data should stay completely separate from each other.
  • App visibility: Public or Workspace, depending on your setup.
  • Require login to access: Yes.
  • Permissions: Use Entity-User Field Comparison to match a field on each record to a property on the signed-in person’s account. For example, if each record has a company_id field and each user account has a matching company_id property, set Entity field to company_id and User field to company_id. Each person only sees records that belong to their company. For admin access within a group, combine this with a User Property Check on the admin role.

FAQs

No. Base44 sets up permissions automatically when it creates data tables. You can ask the AI chat to update them at any time in plain language, or adjust them manually from each table’s Permissions page. Before you publish, it is worth running a security scan to confirm everything looks right.
Open the affected table in your dashboard and check its Permissions page. If you see a Permission risks detected banner, apply the recommended rules.You can also run a security scan for a full overview of issues across your app, or describe the problem to the AI chat and ask it to fix it for you.Once you’ve made changes, test your permissions to see your app as different people and confirm access is working as expected.
Yes, changes take effect immediately. After you save your changes, click Test permissions in preview on the table’s Permissions page to see your app as different people and confirm access is working the way you expect.
Yes. Add a custom field (such as department or access_level) to your User table and define values like manager or viewer. Then use User Property Check rules on that field to give each role the right level of access. You can ask the AI chat to set this up for you.
Yes. A table’s Permissions page sets rules for whole records, but you can also add field-level rules that control who can see or change specific fields. For example, you can keep survey responses visible to your team while only admins see each participant’s email. Ask the AI chat to add the rule for you:
To learn how these rules are written in your table’s schema, see field-level security for developers.
If your permissions were set up with rules that are too complex for the visual editor to represent, such as conditions using advanced operators, the editor falls back to a JSON-only view. You can still edit the JSON directly, or start fresh by checking a box in the matrix, which asks you to confirm before replacing the existing configuration.
Changes you make to a table’s permissions or fields through the App Management API go live right away, but they aren’t saved to your app’s files. When any table’s file is saved again, by the AI chat, the Permissions page or the code editor, or when your app’s code is pulled from GitHub, your tables are rebuilt from those files and your change is replaced.To keep a change, make it on the table’s Permissions page, ask the AI chat to make it, or edit the table’s file in the code editor.