Skip to content
MyAppBuilder
StableData binding

Current user

Overview

Information about the signed-in app user: id, email, name, role (display name), role id (stable) and whether they are signed in.

Purpose

Personalise pages (“Hi Ada”), store the owner of a record (Owner = Current user › email), show or hide parts by role, and filter data to the user's own records.

Inputs

  • Data Picker group Current user: id, email, name, role (role name, for example “Staff” — changes when the role is renamed), roleId (the role's stable id: role_owner, role_admin, role_staff, role_viewer, role_customer, role_public, or role_<key> for a custom role) and isAuthenticated (true/false).

Configuration

  • In the builder preview, use Preview as to switch role and email; in live apps the server always decides who the user is.
  • In templates: {{user.name}}, {{user.email}}, {{user.role}}, {{user.roleId}}.
  • Role checks: compare roleId, not role. If {{user.roleId}} not in role_owner,role_admin,role_dispatcher → Stop keeps working when someone renames “Dispatcher” to “Planner”; a check on the display name silently stops matching.

Outputs

  • Visitors who are not signed in get empty id/email/name, role “Public”, roleId role_public and isAuthenticated false. Scheduled workflow runs have no user (same values).

Example

Only my bookings

Example
Table (data: Bookings) · Filter: Customer email equals Current user › email
Button “Sign in” · Visible when: Current user › isAuthenticated is false

Errors

  • None.

Limitations

  • Visibility rules based on the user are convenience only; real protection comes from page access and entity permissions enforced on the server.

Advanced

  • { type: "current_user", key: "id" | "email" | "name" | "role" | "roleId" | "isAuthenticated" }. Server actions and workflows always use the server's view of the user (ctx.user), never a value sent by the browser. Role ids are stable: built-ins use fixed ids (ROLE_IDS), custom roles from an app plan's customRoles get role_<key>.

Related

Was this helpful?