Skip to content
MyAppBuilder
StableGuide

Component permissions

Component permissions choose which roles receive a component — a button, a table, a whole section. Users of other roles never get it: the component is removed on the server before the page configuration is sent, so it cannot be revealed by browser tricks.

Component permissions

Component permissions choose which roles receive a component — a button, a table, a whole section. Users of other roles never get it: the component is removed on the server before the page configuration is sent, so it cannot be revealed by browser tricks.

When to use

  • A Delete button only Staff should have on a page customers can also open.
  • An internal notes section on a job page shared with the customer.
  • A pricing column or margin KPI for managers only.

If the page as a whole is role-restricted, you usually do not need component permissions on it.

How to set component permissions

  1. Select the component on the canvas (selecting a container such as a Card or Section covers everything inside it).
  2. Open the Permissions tab in the inspector.
  3. Untick Everyone who can open the page. A list of roles appears.
  4. Tick the roles that should receive the component. Full-access roles are always ticked.
  5. Check the result with Preview as for each role.
Example
Card "Internal notes"   Permissions: Staff ✓, Admin ✓ (always), Customer ✗, Public ✗
Button "Delete job"     Permissions: Admin only

Permissions vs Visibility

Permissions tabVisibility tab
Based onThe user's roleAny condition (a value, state, the user)
EnforcedOn the server; the component is not deliveredIn the browser; the component is delivered and hidden
Use forProtecting content and controlsShowing the right thing at the right time

A Show only when Status is Sent rule belongs in Visibility. "Only Staff may see this" belongs in Permissions. Hiding a component with Visibility is not a security boundary, and neither tab protects the underlying records — that is what entity permissions do.

Actions inside restricted components

Server actions (Create, Update, Delete record, Call API, Send email, Run workflow) are looked up in the configuration the user is allowed to see. A role that does not receive a component cannot trigger its actions either, even by replaying a request: the server answers "This action is not available."

Common mistakes

  • Restricting a component but leaving its data readable. A customer without the Jobs table still has View on Jobs if you granted it; restrict the entity too.
  • Restricting a child but not its container. Works, but the container's layout may leave a gap; consider restricting the whole card.
  • Expecting Permissions to depend on a record value. Role only. For "only the record's owner may edit", use record-level permissions and a Visibility rule.
  • Forgetting that full-access roles always receive everything. You cannot hide a component from Owner/Admin with this tab.

Advanced

A component instance carries permissions: { roles: [...] } | null. canSeeComponent runs inside configForUser: for a denied component, the whole subtree is deleted from components and the id is removed from the parent's children.

Related

Was this helpful?