Support/Trust & Security/Tenant Data Security

Trust & Security

Tenant Data Security

How User Types, DataRoles, and Locations work together to shape an app experience and protect tenant data.

Open raw .md
User Types
Menus and page experience
DataRoles
Data and action permissions
Locations
Where records and people are scoped

BuildWithHQ separates three questions that are often mixed together: what experience should this person see, what may they do with data, and which locations are in scope? User Types, DataRoles, and Locations answer those questions independently and are evaluated together for each signed-in user.

Three controls, three different jobs

ControlQuestion it answersTypical examples
User TypeWhich menu, home/dashboard, and SaaS app pages should this kind of person be shown?Owner, staff member, customer, field technician
DataRoleWhich data may this person read, add, edit, delete, export, or use with AI, and which named actions may they perform?Sales reader, support editor, billing approver
LocationWhich assigned places are in this person's record scope?All Locations, Las Vegas office, Reno office, or Las Vegas + Reno

How they work together

Think of access as an intersection. The User Type shapes the visible app experience. DataRoles supply data and action grants. Locations narrow location-assigned records. Record-specific, field, secure-field, workflow, approval, and AI rules may narrow the result further.

For example, a user may have the Support Staff User Type, both Cases Reader and Case Editor DataRoles, and membership in the Las Vegas and Reno locations. Their menu can show support pages; their combined active roles can allow permitted case reads and edits; and location filtering limits location-assigned records to Las Vegas and Reno. None of those settings grants access outside the current SaaS app and tenant account.

The server resolves the final envelope

  1. The authenticated session establishes the SaaS app, tenant account, and active user.
  2. The user's User Type selects the intended menu, portal/dashboard, and page experience.
  3. All active DataRole memberships and granular permission keys are resolved.
  4. The user's All Locations, single-location, or multi-location scope is resolved.
  5. The requested record, field, and action are checked again before data is returned or changed.
Note

The browser never proves its own tenant, role, location, or user identity. Those values come from the verified server session, and reviewed stored procedures apply the final data checks.

Route eligibility and data authorization

User Types select menus, layouts, and starting pages. An active, entitled published page can be opened directly even when it is absent from the current menu. Each request uses the verified user, tenant organization, SaaS app, and persisted page identity; the database resolves the applicable tenant page, customization or fork, or base page.

Every page component, search, download, API call, AI retrieval, and mutation is authorized independently with Personal ownership, DataRoles, Locations, record, field, and action rules. Private records and All Locations settings are checked by the secured data contracts. A page or menu never supplies a guessed record scope.

Note

Assigning a page places it in the User Type experience. It does not grant the data or actions displayed by that page.

A practical review checklist

  • Give each person the User Type whose menu matches their job.
  • Assign only the DataRoles needed for that job; remember that grants from multiple roles combine.
  • Use All Locations only for people who genuinely need tenant-wide location access.
  • Assign one or multiple named locations for regional or office-scoped users.
  • Test direct access to entitled published pages both inside and outside each menu, verify unavailable pages are rejected, then test search, exports, AI, records, fields, and writes as representative users.

Capability review: 2026-09-14. See current features and setup requirements, the generated API Map and first-class module inventory.