Permissions and Dependencies
Design authorization at the team, app, installation and attendee levels. A successful login or a working preview is not proof that the installed app should access a resource.
Developer and project permissions
Team-scoped roles and permissions govern admin actions. The default Developer role grants plugin management and read-only project context. Common app permissions are view_plugin_pages, manage_plugin_pages and delete_plugin_pages; related plugin types have corresponding permissions.
Project API-key management requires update_projects scoped to the selected project and team. Default developer project visibility alone does not grant that operation. Super-admin-only controls include public/global-default flags and the developer administration tools.
Resource ownership is also checked. Changing the team in a URL does not transfer an app, version or session into that team. Session ownership is another constraint: planning and hosted-session controls can require the account that started them.
App dependency declarations
Open Settings → Dependencies for the intended version. The builder uses the platform's supported API model catalog, so choose permissions and events offered for that model instead of inventing names.
A dependency describes:
| Field | Meaning |
|---|---|
model | Platform model, such as Attendee |
identifiers | Any-of scope tokens: binding keys, literal tags, parent references or explicit project-wide scope |
key | Column used to match bound values; shared resolver falls back to the model route key |
permissionKey | Stable slot address for rule scopes and parent references |
parentRelation | Optional child-to-parent relation override for parent scopes |
permissions | Specific supported actions |
events | Event aliases mapped to canonical broadcast event names |
visibleFields | Readable attribute selection where supported; an empty selection inherits the available field scope |
The develop builder reviewed at 25e1564 writes a singular identifier for a newly authored dependency. It accepts older plural identifiers: one token is normalized to singular, while several tokens remain in the plural array unless the record selector is changed. For example, using the attendee catalog's actual action names:
[
{
"model": "Attendee",
"identifiers": ["attendee_profile"],
"permissions": ["view_attendees"],
"events": {"profileUpdated": "AttendeeUpdated"},
"visibleFields": []
}
]
This declaration names a slot; it does not supply the project record bound to that slot. A configuration dependency selector must use the same name, attendee_profile, so installation configuration can resolve its value. A typo between the dependency and form schema leaves the app without its intended binding.
Use a record identifier for a specific selected resource, a tag binding when the model supports grouping by project tags, or the project-wide option when the use case needs every instance. Project-wide scope is broader than a selector binding; choose it deliberately. The scope resolver handles these token forms:
| Token | Meaning |
|---|---|
attendee_profile | Look up that exact key in the installation's dependency_list |
* | Project-wide object selection within the surrounding access context; own-only grants still restrict it to attendee-owned records |
#<tag ID> / #<tag slug> | Tagged-object constraint where the model supports project tags |
@untagged | Objects without project tags |
@group_scope | Objects related to a parent dependency addressed by group_scope |
Multiple tokens are alternatives, not AND constraints. Parent scopes need a resolvable child-to-parent relation and a bound parent. A missing parent binding matches no rows rather than granting all rows. A parent reference belongs in the dependency declaration, not inside an installed record/tag binding.
For example, this advanced declaration scopes attendees through a selected group:
[
{
"model": "Group",
"identifiers": ["group_selection"],
"key": "slug",
"permissionKey": "group_scope",
"permissions": ["view_groups", "view_attendees"]
},
{
"model": "Attendee",
"identifier": "@group_scope",
"permissionKey": "group_attendees",
"permissions": ["view_attendees"]
}
]
The installation binding for that example is a group slug, such as dependency_list.group_selection = "vip-group". group_scope addresses the parent declaration; it is not the saved selector key. group_attendees addresses the child slot. The example does not create a group or its membership and does not prove that a particular endpoint/caller has access.
Record scopes per permission
The following changes are verified against develop commit 25e1564 (2026-10-19). Confirm the deployed editor and platform version before relying on them in an installed app.
Choose the action and its record scope separately. The editor offers Any record and, for supported actions, Attendee's own, alongside the dependency's selected-record scope.
| Saved permission | Meaning |
|---|---|
view_attendees | Bound scope: the records selected by the dependency |
view_attendees:any | Any record within the project/access context; compiled parent-scoped slots retain their structural parent constraint |
update_attendees:own | The signed-in attendee's own records, where that model/action supports ownership |
Older :viewAny and :updateAny suffixes are read as :any. The editor writes the newer spelling. Selecting Any record for an action replaces that action's narrower editor selections; do not add it to solve a missing binding without reviewing the resulting access.
An own grant does not make every resource ownable. The server catalog offers own scope only for permission names associated with attendee-owned models and their supported actions. With no signed-in attendee, an own-only list can return an empty result; other own-only actions are refused. An authenticated reader is not automatically an attendee owner.
Own grants are considered after wider grants. If another applicable grant authorizes the action more broadly, adding an own grant does not narrow that authorization. When own scope supplies access, lists are restricted to the attendee's records; stored records must belong to that attendee. Participating model guards claim missing ownership on creation or reject a different owner, and reject updates that transfer ownership away. Tag and parent constraints can further restrict own records. Child access can also require that the app can see the parent. Test the particular endpoint and ownership model rather than assuming the suffix alone proves access.
For own-scoped child list/create operations, owning the child is not sufficient when the request is authorized on an existing parent: the app must also be able to view that parent. Same-model tag/parent scopes and own grants carried on a parent dependency retain their applicable record constraints. Shared Orion list hooks apply the recorded own restriction before plan-level filtering, including relation lists; custom discovery controllers can add their own narrowing. Verify each endpoint rather than assuming every custom controller uses those hooks.
Model-specific ownership and password updates
At the same develop checkpoint, an attendee owns their own attendee record; own scope does not authorize creating a new attendee. Models using a direct attendee relationship include enrollments, credentials, AI sessions, game sessions, social posts, form responses and point transactions. An AI message follows its session's attendee owner. These ownership definitions do not expose every action on every endpoint: use the offered catalog and verify the endpoint's additional lifecycle, parent and policy checks.
Collection entries instead use the collection's configured attendee relationship Owner Field. Submitter identity alone is insufficient, and shared-entry updates under own scope cannot change other owners. Follow attendee-owned collection setup before using an own-only entry integration. Anonymous survey responses cannot be claimed by an attendee through the response model's own-scoped create path; do not assume adding a session turns anonymous responses into owned records.
The attendee API request also has a password boundary independent of wider record grants. A reader cannot change an attendee password. In app page context, updating a password requires the target to be the actual signed-in attendee; a project-wide update grant does not permit changing somebody else's password. The guard checks presence of password, encrypted_password and their attendee_fields-> prefixed aliases, including empty values. It leaves attendee creation to its separate authorization/validation flow. This describes the checked attendee request, not every authentication or password-reset endpoint.
Visual builder compatibility and advanced declarations
The develop editor preserves extra dependency metadata, including key, permissionKey and parentRelation, through its draft/source conversion. It preserves multiple legacy identifiers as saved. Changing the record selector intentionally replaces that legacy identifier selection; changing the model resets the old model's grants and events. Inspect the saved declaration after either change.
Event class names are normalized to short names on reading. Event handler keys remain distinct from event names. Use the offered model, action, ownership and parent-relation catalog rather than inventing unsupported combinations.
Earlier editor versions serialized a smaller set of fields and could drop advanced metadata or append match-type suffixes to identifier keys. For installations using those editors, inspect the persisted dependency and exact dependency_list key; attendee_profile:id and attendee_profile are different raw binding keys. The current develop conversion is not proof that an older deployed editor preserves the same shape.
For source-authored advanced declarations, put the array in app-manifest.json under dependencies, run toolkit lint/build, import into an editable draft version, and inspect the stored version before publication. See bundle-to-version mapping and build and release.
Configuration and navigation schemas
Settings → Configuration separates the app configuration schema from the per-route navigation schema. The former supplies configurable values and dependency selectors. The current navigation builder writes navigation_flags; rule-field validation uses separate nav_fields_schema, and rule values live in nav_config. Use the dashboard version's Nav Fields editor to define rule fields. See App Configuration and Packaging for the exact editor path, version targeting and import boundaries. The separate Form Template section authors schemas for apps consumed as form templates.
Test a selector in an installed project with real records. Local mock values are useful for UI work but do not validate project ownership or permission scopes.
Audience rules
Group rules apply to content such as project pages, forms, portal page links and collections. Guests have no attendee groups and match rules marked for the public audience.
The gate follows these rules:
- No effective rules preserves legacy allow behavior.
- Any matching deny rule denies access.
- If allow rules exist, at least one must match the audience.
- If no allow rules exist and no deny matches, access is allowed.
A portal page link uses its own rules when present. Otherwise it inherits the linked page/form's rules. Link-level rules replace the parent rules; they do not merge both levels. Review the complete audience policy before adding an override.
For matching allow rules, data scopes and permissions are combined permissively. Adding a restrictive allow rule does not cancel broader access granted by another matching allow rule. Navigation configuration merges shallowly in sort order, with later values replacing earlier keys, including whole nested values. A matching deny still overrides allow at the page gate.
Rule scopes can narrow dependency actions, tagged objects and visible fields. Their field behavior is:
| Field input | Effective meaning |
|---|---|
Missing/empty dependency visibleFields | No developer field restriction, not “return zero fields” |
Missing/empty rule visible_fields | Inherit the dependency's selection |
| Explicit rule field list | Replace that contribution's developer selection; it can widen it |
| Several matching allow rules | Union their effective permissions and fields; a broader contribution can restore what another drops |
An empty list is therefore not a reliable way to redact a response. Review the effective result for every group combination, including attendees belonging to more than one group. Check the actual endpoint serializer too: an allowed field and a serialized field are different contracts.
A :any ability (including the legacy :viewAny spelling) can make a non-parent-scoped slot project-wide even when the app also has a named binding. Parent-scoped slots retain their structural parent constraint in the reviewed plan compiler. At develop 25e1564, a literal * slot with only own grants still uses an attendee-owned branch. A wider grant can make that slot project-wide; rule tag restrictions do not turn a wider wildcard branch into a selected-record slot. Avoid adding a broad ability just to populate an empty preview.
Page context and API access
The portal runtime carries page context through X-Portal-Page-Token and the appropriate attendee/session credentials. Use the GxP store API helpers so this context stays consistent. A page token is not a server integration credential.
Page-context API authorization checks the page's active state, login requirement, audience gate and project. An inactive or audience-denied page is treated as unavailable; a login-only page without a qualifying same-project principal requires login. An attendee from another project cannot unlock it. An access-point principal must be active and belong to the same project.
On the reviewed API-domain token transport, the resolver uses the page header first, then a bearer page key. A bearer page key that does not match the bound page is rejected, and a page key rejected as belonging to another portal is treated as unavailable. Use one consistent page context and the intended attendee/reader identity rather than mixing keys from different tabs or portals.
The current compatibility path can skip the compiled row-scoping plan for installations marked bypass_page_key_scoping on API-domain or legacy bearer-page-key requests. It still applies active/login/audience checks; portal-domain requests with the explicit page header keep row scoping. This is a legacy exception to inspect during migration, not a setting to enable for new apps. Do not infer object-level protection merely because a page gate passed; verify the actual endpoint and request transport.
The shared base policy also refuses an attendee principal without valid page context. Reader principals have a separate configured operation allowlist and project restriction; they do not automatically inherit every app dependency. Widget tokens have no page context and cannot authorize API resources through the base dashboard policy. Plugin API tokens are restricted to plugin-specific endpoints. Do not use either as a general project API key. These descriptions concern the shared base policy and permission-context middleware; an endpoint with a custom policy/controller must be reviewed separately.
Page-principal response fields have another ceiling
The rule-plan behavior above is separate from the response ceiling applied when the authenticated principal is a ProjectPortalPage. Its middleware groups the installed version's nonempty visibleFields lists by model and unions those explicit lists. A missing/empty list alone creates no ceiling. An empty legacy slot does not remove an explicit ceiling contributed by another slot for that same model; another nonempty list can widen the union.
Resources using FiltersPortalFields first apply that page-principal map, then apply plan-level top-level fields. Thus a rule-plan override that widens its contribution cannot restore scalar fields already removed by the page-principal ceiling. Other principals, missing maps and endpoints that do not use this resource trait are separate cases. Nested JSON resource objects/conditional resource values are retained by the parent filter; a parent's field list is not proof that every nested relationship was recursively redacted.
For a count-only attendee integration, hiding returned rows or reading only meta.total does not prevent contact data crossing the network. A nonempty visibleFields: ["id"] declaration can constrain participating page-principal serializers, but inspect other same-model declarations, rule contributions, nested resources and the exact endpoint response before claiming minimization. Empty visibleFields: [] is not a count-only redaction configuration. Test the installed version and denied/cross-project cases rather than relying on local mocks.
Global UI permission flags are also distinct from dependency grants. store.hasPermission(...) reads those flags; it does not determine whether a declared API operation is authorized. Do not make callApi conditional solely on a global flag. Declare the supported dependency and handle server denial with safe user-facing copy. See the runtime store for project/binding context and agent guidance for generated-code review.
Project API keys
The hub issues project-scoped Sanctum bearer tokens with explicit model scopes, actions and optional visible-field restrictions. They are independent of an app's version dependencies and attendee group rules. In the shared policy, a token carrying * is unrestricted, and legacy coarse read/write grants still have a compatibility allow path with logging. Do not describe an old token as resource-bound simply because new keys use scoped abilities; inspect its actual abilities and replace legacy grants through the supported key workflow.
See API Keys for issuance, scope syntax, expiry and revocation.
Verify authorization
Test allowed and denied users against the installed page and the actual endpoints it calls. Cover guest access, login, each intended group, overlapping groups, inherited and overridden rules, inactive pages, record/tag scope, visible fields and cross-project requests. Check direct API calls as well as navigation: hiding a link alone is not the access-control test.
For unexpected data or a denial, first identify the authenticated principal and page context, then the installed version, dependency binding, effective rule set and requested action. See development troubleshooting.
Troubleshooting by boundary
| Symptom | Inspect first |
|---|---|
| Attendee login works but data is denied | Page token/context, active/login requirements, effective dependency ability and saved resource binding |
| Audience-denied page looks missing | Expected unavailable response; test the same route with an intended allowed audience |
| Empty fields still appear | Empty field lists inherit/unrestrict; check matching allow rules and endpoint serialization |
| A selected slot returns every record | Wildcard, :any/legacy :viewAny, overlapping allow rules and legacy row-scoping bypass |
| Parent-bound data disappears after editing | Persisted parent/slot metadata, installed editor version and any changed record selector |
| Header and bearer page keys fail together | Whether both resolve to the same bound page and portal |
| Reader login cannot perform an app action | Reader operation allowlist and project scope; reader identity is not a general admin credential |
Verification scope
The dependency editor conversion, permission suffix parser, own-grant authorization and ownership guards were rechecked against develop commit 25e1564 on 2026-10-19. Other audience-plan, middleware and shared-policy descriptions retain their 2026-10-14 source review; this follow-up does not certify every changed endpoint. Example/schema and focused native tests are scoped evidence; endpoint-specific policies, live principal/session handling, legacy installation migration and deployed allow/deny requests still need acceptance.