Action permissions
Actions that touch data, secrets or email — Create record , Update record , Delete record , Call API , Send email , Run workflow — are executed by the server with the permissions of the person who clicked . There is no separate "action permission" to configure: the entity, record
Action permissions
Actions that touch data, secrets or email — Create record, Update record, Delete record, Call API, Send email, Run workflow — are executed by the server with the permissions of the person who clicked. There is no separate "action permission" to configure: the entity, record and field rules you set for the user's role are applied to every action, and a few extra safety rules apply to anonymous visitors.
When to use this page
- A button works for you in the preview but customers get an error.
- You want to know what a visitor sees when they are not allowed to do something.
- You are designing a public form.
How a server action is checked
- The browser sends only a reference: which component, which event, which action, plus the values currently in scope (form, record, state). It never sends the action's definition.
- The server rebuilds the configuration that this user may see (pages, components, actions). If the component is not part of it — a protected page, a role-restricted component — the answer is "This action is not available."
- The action runs through the same data engine as everything else: entity operations, record-level scope and field rules of the user's role.
- The result (or the error) goes back to the browser; the remaining actions in the list are skipped on error and an error toast is shown. On forms, the onError actions run.
What users see when denied
| Situation | Message |
|---|---|
| Not signed in, no Public rule for the operation | "Please sign in to create bookings." (401) |
| Signed in, role lacks the operation | "Your role can't update quotes." (403) |
| Record outside the user's "own records" scope | "Record not found." for update/delete; "You can only create … that belong to you." for create |
| Change would move the record out of scope | "That change would move the record outside what you can access." |
| Component not delivered to this role | "This action is not available." |
| Call API on an API not allowed from the app | "This API can only be used from workflows." |
| Send email with a dynamic recipient while not signed in | "Sign in to send email from this app." |
| Run workflow on a disabled or missing workflow | "Workflow not available." |
Fields marked read-only for the role are silently dropped from the saved values; hidden fields are never returned.
Rules specific to anonymous visitors
- They can create records only on entities where the Public role has Create.
- They can send email only to a fixed address typed in the action (never to an address from a form or record), and at most 5 emails per hour.
- They can upload files only when some Public Create rule exists.
Workflows are different
Steps inside a workflow run with system privileges (Database steps bypass permission rules), so a Run workflow action lets a user indirectly cause changes their role could not make directly. Keep that in mind when exposing Run workflow buttons to customers; the workflow itself must still be enabled, and the user must receive the component holding the action.
Rate limits
Per user (or per IP for visitors): record creation 60 per minute, API calls 60 per minute, workflow runs 30 per minute, emails 20 per hour (5 for visitors). Exceeding a limit returns a "too many requests" error.
Common mistakes
- Testing as Owner. In the builder preview you are the Owner by default; switch Preview as to the customer role to see what they get.
- Granting the operation but not the scope. A customer with Edit and no record rule can edit anyone's record.
- A public contact form that emails the visitor. Not possible for anonymous visitors; email yourself instead, or send the customer email from a workflow on A record is created.
Related
Advanced
POST /api/runtime/:projectId/actions → executeServerAction looks the action up with findAction inside configForUser(project, user) and dispatches to createRecord / updateRecord / deleteRecord (requireAccess → entityAccess, recordAllowed, readonlyKeys, stripHiddenFields), executeApiSource, sendEmail or runWorkflow.