Skip to content

This page is for integrators and engineers who manage access programmatically or need to know exactly what the permission screens in Administration do underneath. The administrator’s view of the same model — in plain language, with the screens — is Permissions & access. The evaluation engine itself (authorizer, voters, merge, caching, the OpenFGA shadow check) is documented for platform engineers in Engine: Permissions & Voters. The generated, per-operation endpoint list is Access — data-service.

All paths below are relative to the data API (/api); every response comes in the standard {success, result} envelope described in Calling the HTTP API.

Every permission is one AccessRight record (collection access_right), one record per grant. Its value (AccessRightValue) holds:

FieldMeaning
entitled_entityWho the grant is for: a reference {dataEntity, dataEntry} where dataEntity is USER, GROUP, or ROLE and dataEntry is the id.
entitlementWhat the grant applies to: a reference {dataEntity, dataEntry} where dataEntity is the entitlement type (module, entity, view, …) and dataEntry is its id. Null/absent for system-level grants.
levelThe access level (see below).
permission_typeOptional. Distinguishes a NORMAL grant from a SENSITIVE_FIELD read grant. Absent is treated as NORMAL.
scopeOptional canonical path (e.g. module/entity/field) used by sensitive-field grants.
expiryOptional validity window stored as [startIso, endIso]; null means the grant never expires.

So “grant role R Edit on module M” is a single record with entitled_entity = {ROLE, R}, entitlement = {DataModule, M}, level = EditAccess.

Related models:

ModelRole
AccessRightaccess_right — the stored permission record.
AccessRightValueentitled_entity + entitlement + level (+ permission_type, scope, expiry).
EntitledEntityPermissionSubject reference: dataEntity ∈ {USER, GROUP, ROLE}.
EntitlementReferencePropertyResource reference: dataEntity ∈ EntitlementEnum.
GroupDto / UserDtoA group/role or user with its list of AccessRightDto permissions.
RoleDataEntry / RoleDataEntryValueA named role: name, description, org-unit linkage, type, assignment type (see Roles data model).
GrantAccessDtoWrite body — a single level.

Who a grant can target (entitled entities)

Section titled “Who a grant can target (entitled entities)”

Grants target one of three entitled-entity types (EntitledEntityEnum):

ValueMeaning
USERAn individual user.
GROUPA group. Groups carry a GroupTypeEnum: UserGroup (0), Role (1), OrgUnit (2), Virtual (3), QueryGroup (4).
ROLEA role.

Roles and org units are groups distinguished by their GroupTypeEnum, so a single grant record can target a plain user group, a role, a virtual/query group, or an organizational unit. Every role has a virtual role group, created automatically, that contains all users holding the role. In the permission-list APIs the entitled-entity type in the path is user or group (case-insensitive; it is upper-cased before use).

What a grant can apply to (entitlement scopes)

Section titled “What a grant can apply to (entitlement scopes)”
Scope (entitlementType)Stored dataEntityWhat it controls
SystemSystemThe whole tenant. entitlementId is null.
ModuleDataModuleA single module. A module grant also cascades to the entities inside it.
DataEntityDataEntityA single data entity.
DataViewDataViewA single data view.
GenericViewGenericViewA page.
ReportReportA report.

A grant on a module surfaces the entities inside it. A grant on a single entity surfaces its parent module only as a navigation container and does not reveal the sibling entities. Since 1.8 the parent-module ids reached this way are returned to clients as entityParentModuleIds on the current-user response (see The current-user response).

AccessRightLevelEnum is a numeric, ordered ladder; several checks compare levels numerically.

LevelValueMeaning
None-1The “remove” sentinel. Sending it deletes the matching grant (see Upsert behaviour); it is never stored by the upsert.
Restricted-0.5System-only “onboarded floor”. Grants nothing on its own; it lets the user’s resource grants take effect and unlocks read-only access to core infrastructure (users, groups, org units) for a user who holds at least one module or entity grant. Since 1.8.
ViewAccess0Read the definition of the object.
DeveloperAccess0.5Builder access to the studio tools (entity designer, views, themes, fonts, languages). It sits beside Edit: Edit satisfies every check Developer does, but Developer does not grant record access. Long-standing (predates 1.2).
EditAccess1Read and write, including entry data.
AdminAccess2Full control, including managing permissions. Offered only at System; Since 1.6 an Admin grant on a module or entity opens nothing.

Levels each target offers (GRANTABLE_LEVELS_BY_ENTITLEMENT): System — View, Developer, Edit, Admin (plus Restricted); module and entity — View, Developer, Edit; view, page and report — View.

Entry data needs Edit. Listing the entries of an entity requires Edit on the entity, Edit on its module, or system Edit/Admin — View is not enough. Since 1.8 reading a single entry by id (for example from a relation’s quick-view sidebar) requires the same Edit-tier access; the request is refused with ENTRY_READ_FORBIDDEN otherwise. Reads made through a view, page or service follow that object’s own access rules instead, and Service-type entities keep their exemption.

A user with no system grant is denied. If the merged system bucket is empty (no direct or group system grant), the top-level authorizer denies every request that is not served through a view context. The users-service grants nothing by default when a user is created, so onboarding must give each user a system level — at least Restricted — directly or through a group.

Grants are created and changed through an idempotent upsert. There are two forms — one addressed by entitlement type and id, one addressed by a system-object id:

PUT /v1/permissions/{entitlementType}/{entitlementId}/{entitledEntityType}/{entitledEntityId}
PUT /v1/permissions/{systemObjectId}/{entitledEntityType}/{entitledEntityId}

Request body (GrantAccessDto):

{ "level": 1 }

level is required and must be one of the numeric AccessRightLevelEnum values. Path parameters:

  • entitlementType — System | Module | DataEntity | DataView | GenericView | Report.
  • entitlementId — the target object’s id. For System it is null (the router parses a missing value to the string "null", which is accepted and treated as System).
  • entitledEntityType — user, group or role (upper-cased and validated against EntitledEntityEnum).
  • entitledEntityId — the id of the user, group or role.

The system-object form looks the object up in the SystemObject collection, maps its type to an entitlement (DataView → DataView, Page → GenericView, Report → Report) and performs the same upsert. If the object does not exist or its type is not one of those three, the call fails with ENTITY_NOT_FOUND / INVALID_ENTITILED_ENTITY. The system-object form and the per-user/per-group permission DTO reads are Since 1.6.

AccessRightsService.upsertPermission applies these steps in order:

  1. Restricted outside System is a revoke Since 1.8. Restricted is never stored on a Module/Entity/View grant. Requesting it there is normalized to None and routed through the revoke path (step 4) — revoking a resource grant is exactly what drops a principal back to their system-level Restricted floor. (Before 1.8 such a request failed with RestrictedLevelSystemOnlyException, which left no way to bring a raised Module/Entity grant back down short of deleting it.)
  2. The entitled entity must be Active — the controller loads the user/group and rejects with EntitledEntityNotActiveException if its state is not Active.
  3. Existing grant lookup — it finds a matching non-Archived grant for that (entitled entity, entitlement). System grants are matched by the entitlement being absent/null, resource grants by the entitlement reference. Archived records are skipped so a dead grant is never silently reused. Since 1.8 the system-grant match also excludes permission_type = SENSITIVE_FIELD records: both shapes carry a null entitlement, and before the fix granting a system level to a user who held only a sensitive-field grant matched that grant — the call reported success, no system permission was created, and the sensitive-field grant was corrupted with a stray level.
  4. level === None ⇒ delete — the matching grant is removed. This applies at every scope, System included. With no matching grant, None is a no-op.
  5. Downgrade guard — if a matching grant exists, the new level is lower than the current one, the entitlement type differs from the stored grant’s, and the scope is not System, the call throws UserGroupAlreadyHasHigherPermissionLevelException.
  6. Otherwise update or create — an existing grant’s level is updated (and updateInfo stamped); otherwise a new Active AccessRight is created in the public store.
  7. Event — an AccessRightChangedEvent(entitlementType, entitlementId) is published so caches and dependents refresh. How the caches are invalidated is in Engine: Permissions & Voters — Generation (epoch) invalidation.

There is no separate delete endpoint for a grant: send level: -1 to the same PUT. Bulk replacement is handled internally by storePermissionsInAccessRights(..., isUpdate = true), which diffs the submitted set against the current grants and adds/removes the difference.

The two upsert forms are guarded differently. Both also need a license that includes administration.

The form addressed by entitlement type and id is guarded by voteByEntitlementFactory(0, 1), which for a PUT requires the caller to be able to edit the entitlement being granted:

  • System grants → caller must be a system developer or higher (isSystemDeveloper).
  • Module grants → caller must be able to edit that module (canEditModule).
  • DataEntity grants → caller must be able to edit that entity (canEditEntity).

The system-object form carries no entitlement check of its own, so it is open to system administrators only: the platform admits a write route that names no allowed roles for a system admin alone. (The entitlement voter this form once carried could never reach a decision and was removed in 1.8.)

A grant cannot exceed the caller’s level Since 1.8

Section titled “A grant cannot exceed the caller’s level Since 1.8”

Unless the caller is a system Admin, the form addressed by entitlement type and id refuses:

  • a requested level above the caller’s own effective level on that target, and
  • any change to, or removal of, a grant that is already above the caller’s level.

The refusal is 403 PERMISSION_GRANT_EXCEEDS_CALLER_ACCESS (“You cannot grant, change or revoke access above your own level”); its details name entitlementType, entitlementId, callerLevel, requestedLevel and currentLevel. The caller’s effective level counts their system grants, direct and group grants on the target, and what they inherit from its module or entity; under a delegation, the delegation’s permissions count. Internal platform calls (user onboarding, reaction actions) are exempt. Before 1.8 the edit check was the only check, so a system Developer could make themselves system Admin. Engine detail: A permission grant is capped at the caller’s own level.

Reactions that set or remove permissions Since 1.10

Section titled “Reactions that set or remove permissions Since 1.10”

Reactions can carry Set permission and Remove permission actions. When such a reaction is saved, the platform checks that the person saving it already holds what the action would hand out: a Set needs at least the granted level on that resource, a Remove needs Admin on it. Only the levels the permission editor offers are accepted per resource type (System: View, Developer, Edit, Admin; module and entity: View, Developer, Edit; views, pages and reports: View). A failing check refuses the save with PERMISSION_ACTION_EXCEEDS_SAVER_ACCESS; if the author’s access cannot be read, the save is refused as well. The system user is exempt. When the reaction runs, a Set never lowers an existing direct grant (the principal is reported as skipped, “already higher”); a Remove lowers by design. Engine detail: Internal access reads and the reaction ceiling.

Before any grant or list operation runs, validatePermissionsParams checks the request path:

  • entitlementType must be a valid EntitlementEnum — otherwise PermissionScopeNotSupportedException.
  • entitledEntityType must be a valid EntitledEntityEnum (USER/GROUP/ROLE) — otherwise PermissionScopeNotSupportedException.
  • For any non-System entitlement, entitlementId must be provided — otherwise EntitlementTypeRequiredException.

List endpoints accept the standard LoopBack filter/where query parameters and a /count variant.

EndpointGuardReturns
GET /v1/permissions/{entitlementType}/{entitledEntityType}voteByEntitlementFactoryUsers/groups with their permission on a specific system/module/entity/view.
GET /v1/permissions/{entitlementType}/{entitledEntityType}/countvoteByEntitlementFactoryCount of the above.
GET /v1/permissions/list/{entitledEntityType}module/system voterAll users or groups in the system, optionally scoped by moduleId.
GET /v1/permissions/list/{entitledEntityType}/countmodule/system voterCount of the above.
GET /v1/permissions/current_userauthorization skippedThe caller’s own effective permissions.
GET /v1/permissions/user/{userId}systemLevelVoterFactoryA user’s resource permissions (UserPermissionsDto[]).
GET /v1/permissions/user/{userId}/adminsystemLevelVoterFactoryA user’s admin-level permissions.
GET /v1/permissions/group/{groupId}systemLevelVoterFactoryA group/role/org-unit’s permissions.
GET /v1/permissions/group/{groupId}/adminsystemLevelVoterFactoryA group’s admin-level permissions.
GET /v1/permissions/anonymoussystemLevelVoterFactoryPermissions applied to the anonymous audience.
GET /v1/permissions/system-object/{systemObjectId}systemLevelVoterFactoryEvery user/group with access to a given object (ObjectPermissionsDto[]). Since 1.6.

The systemLevelVoterFactory guard requires a system viewer for reads and a system developer for writes. Since 1.8 it carries that name; it was previously systemAdminVoterFactory, a rename only — the check never required Admin. The user, group and admin endpoints each have a /count variant.

Query flags on the list endpoints:

  • include_virtual — virtual (system-synthesized) entities are excluded by default (virtual: {neq: true}); pass true to include them.
  • only_none_permission — restrict the result to entitled entities with no permission (or a stored None) — this is what the Add picker uses. Since 1.8.
  • entitlementId — narrow to a specific object when listing by entitlement type.
  • moduleId — on the list endpoints, scope to one module.

GET /v1/permissions/user/{userId} returns entries describing not just the object and level but how the access was acquired:

FieldMeaning
object (ResourceObjectDto)The target: id, name, type, its dataModule/dataEntity, computed abilities, and isAuthenticated/isAnonymous/isRestricted flags.
assignmentType (UserPermissionAssignmentTypeEnum)Direct (0), group (1), authenticated (2), delegation (3), anonymous (4).
acquiredThroughGroupType (GroupTypeEnum)If via a group, whether it was a UserGroup/Role/OrgUnit/Virtual/QueryGroup.
acquiredThroughThe resolved group/role the access came through.
adminLevelThe effective admin level, when applicable.
delegationIdSet when the access came from a delegation (getAllDelegateePermissions resolves what a delegatee holds on the delegator’s behalf).

abilities (ResourceObjectAbilitiesDto) exposes the booleans the client uses to show or hide actions: create, edit, archive, entriesList, entryDetails, and for shareable objects audience and observer. In the Administration screens these appear as the Assignment Type (Direct, Indirect (Group), Indirect (Authenticated), Indirect (Delegation), Indirect (Anonymous)), Acquired Through and Available Actions columns.

ObjectPermissionsDto (the system-object endpoint) is the inverse view: for a single object it lists each entitled entity with its type (EntitledEntityTypeEnum GROUP/USER), assignmentType, and an accessType (ObjectPermissionAccessTypeEnum: Default (0), Audience (1), Observer (2)).

GET /v1/permissions/current_user builds the caller’s own permission list. For a system editor or admin it returns just the system grants (no per-resource enumeration is needed). Otherwise it returns system and module grants, entity grants for entities not already covered by a module grant, and all view, page and report grants. It also returns entityParentModuleIds (Since 1.8) so the client can open a module reached only through an entity grant; the list is empty for system viewers/editors/admins.

Separate from user/group grants, a shareable object (data view, page, report) carries configuration that decides where it appears and who can open it once published. The platform applies both on every read: a user only sees objects that are visible to them and that they may open. Reports are web-only; on mobile a report link resolves to an unsupported-link placeholder.

Every object carries one cross-space sharing level (ApplicationSharingLevelEnum), chosen when a module or application is created:

LevelMeaning
PRIVATEVisible only inside the object’s own space.
SHAREDVisible within the set of spaces associated with the object.
PUBLICVisible in every space (typically system-wide shared items, such as a space’s default pages).

At read time a record is shown if its level is PUBLIC, or if it is PRIVATE/SHARED and the current space is among the object’s spaces. GET /v2/access-object/{id} returns an AccessObjectDto with the resolved authenticationMode, domainId, spacesId, isPublicSpace (true when sharing.level is PUBLIC), executionPlan, published, and the original object. Resolution detail: Engine: Permissions & Voters — Sharing-level resolution.

Some objects — such as posts and timeline items — also support a visibility level within a space:

VisibilityMeaning
PrivateSeen only by its owner and the users it is explicitly assigned to.
OrganizationSeen by all organization users within the space.
PublicAlso surfaced to unauthenticated visitors (subject to anonymous access).

A shareable object’s sharing panel configures its audience:

  • anonymous (AnonymousOption) — enabled: whether unauthenticated visitors can open the object.
  • authenticated (AuthenticatedOption):
    • enabled — signed-in users can open it;
    • isRestricted — when true, only the users/groups in entitledEntries can open it (a per-object allow-list);
    • entitledEntries — the allow-list, required only when isRestricted is true.

The Permission model is a container of users[] and groups[] plus a legacy accessType (AccessTypeEnum — ReadOnly/Modify, deprecated in favour of AccessRightLevelEnum). It backs UpdateResourcePermissionsDto (permissions + anonymous + authenticated options) for view/page/report sharing, while UpdateServicePermissionsDto carries a service’s audience and observers (PATCH /v1/entities/{id}/meta/permissions, Request-type entities only). Adding a user or group to an object from the Group Permissions or User Permissions screen writes a View grant on the object and switches the object to restricted mode; for a service it adds the principal to the service’s audience allow-list or its observers instead.

PermissionsService.validatePermissions enforces these invariants when an audience is saved:

RuleException
anonymous.enabled and authenticated.enabled and authenticated.isRestricted all trueAnonymousAndRestrictedEnabledException — an object cannot be open to anonymous visitors while restricting signed-in users.
Neither anonymous nor authenticated enabledAnonymousOrRestrictedNotEanabledException — the object must be reachable by someone.
entitledEntries provided but authenticated.enabled is falseAuthenticatedMustEnabledExcecption.
entitledEntries provided but isRestricted is falseRestrictedMustEnabledExcecption.
isRestricted true but entitledEntries emptyRestrictedPermissionEntitledEntriesEmptyExcecption.

Related helpers: hasEmptyPermissions (a Permission[] is empty when absent, when it has no entries, or when every entry has no users and no groups); anonymusResetEntitledEntries (enabling anonymous access clears any authenticated allow-list); getDuplicatedEntitledEntries (detects duplicate references); checkUserAndGroupExistence / findEntitledEntry (every referenced user/group must exist and be Active, else NotExistEntitledException).

GET /v1/access-object/can-access/{id} (authorization skipped, so it works for anonymous callers) returns {result, view} and is the runtime check for opening a view, page or report:

  1. If the object is not published → denied.
  2. If anonymous.enabled and the caller is anonymous → allowed.
  3. If authenticated.enabled:
    • not restricted and the caller is authenticated → allowed;
    • restricted → allowed only if the caller holds a matching per-object grant.
  4. Otherwise → denied.

Two mechanisms expose data to people who are not signed in:

  1. Anonymous permissions — grant the anonymous audience ViewAccess on an entity or view (GET /v1/permissions/anonymous lists them).
  2. Sharing links — a share link resolves to a view of a specific object; it can be anonymous (no sign-in) or authenticated (requires a login).

Who can see a service’s requests is decided by the service, not by grants:

WhoRule (RequestService)
Can submit (sees the service in the catalogue)canCreateRequest: the service is activated and has an audience; anonymous-only services refuse signed-in users; a restricted authenticated audience requires the user or one of their groups in entitledEntries.
The requestercanAccessMyRequest: the creator of the request (an anonymous creator only while no step has an owner).
Step ownerscanAccessInbox: the current step’s owner, a member of the owning group or list while the step is unclaimed or set to all users, anyone who executed or owned an earlier step — never the creator.
WatcherscanAccessObservers: the user, or one of their groups, is in the service’s meta.observers. Observers are copied onto each request row, and a change of observers updates existing requests.

Under a delegation, each check is replaced by the delegation’s scope for the matching service action (submit, request, inbox, observe). Outside a view, the entries of a request entity are readable only with Edit-tier access (see Access levels).

A grant can be typed as a sensitive-field read grant via permission_type = SENSITIVE_FIELD and a scope naming the field path (module/entity/field, or a wildcard module/entity/* / module/*/*). PermissionTypeEnum distinguishes these records from NORMAL grants; legacy records with no permission_type are treated as NORMAL. They are maintained per scope by syncSensitiveFieldAccess, getSensitiveFieldGrants and removeSensitiveFieldAccess(scopePrefix), which reconcile SENSITIVE_FIELD records and delete stale ones. Encrypted fields Since 1.10 are authorized by the same SENSITIVE_FIELD grant on the same scope; there is no second grant type.

Resolution and the step-up unmask gate are in Engine: Permissions & Voters — Sensitive-field grant resolution; the administrator procedure is Sensitive Permissions.

AccessRightValue.expiry stores a validity window [startIso, endIso]; it currently applies to sensitive-field grants.

  • A null expiry, or a window with no end, never expires; a null/missing element leaves that bound open.
  • Only currently valid grants count when resolving effective access (buildExpiryWindowExpr, buildActiveExpiryWindowWhere). A scalar legacy value fails closed.
  • An automatic check archives any grant whose expiry has passed. When a grant is archived — automatically or by an admin — access is revoked right away: the affected object recomputes whether it is restricted, and the archived grant stops appearing among the principal’s active grants.

A role you create is a role data entry (RoleDataEntry / RoleDataEntryValue) and a group of type Role (GroupTypeEnum.Role); it can be an entitled entity in its own right (EntitledEntityEnum.Role = 'ROLE'). A user assigned to the role inherits its grants, and when the system reports which group a permission came through, a role group is labelled Role in acquiredThroughGroupType.

FieldTypeValues
namelocalized stringDisplay name.
descriptionlocalized stringOptional.
linked_with_org_unitcategory (RoleLinkWIthOrgUnitTypes)NOT_LINKED_WITH_ORG_UNITS, LINKED_WITH_ONE_ORG_UNIT, LINKED_WITH_MANY_ORG_UNITS.
typecategory (RoleTypes)JOB_POSITION or MERE_ROLE. A role cannot be a job position if it is not linked to any org unit (field validation).
assignment_typecategory (RoleAssignmentTypes)UNIQUE (single holder) or MULTIPLE (many holders).

Users are bound to roles through Assignment entries (role, assign level Main/Additional, assign type Original/Delegation, user, org unit, is-manager). Each assignment is validated before it is saved (level, uniqueness, role, organizational-unit and organization-account rules), and changing assignments recomputes the org unit’s manager when needed.

The system access tiers (Roles enum: SystemAdmin, SystemEditor, SystemDeveloper, SystemViewer, Restricted) are not records; they are computed per request from the user’s system-scope level. The predicates and the order in which the top-level authorizer applies them are in Engine: Permissions & Voters — Decision flow.

The Admin Permissions screen supports a manager-permissions concept: certain users may grant permissions to other users and groups within limits. Two current behaviours:

  • The screen lists only principals that already have a permission record at that scope; a brand-new user or group is reached through the Add picker (only_none_permission).
  • There is currently no gate stopping a manager from granting a module or entity permission to a user who holds no manager permission of their own.

Both are being addressed in an ongoing redesign of this model.

To keep two users from overwriting each other’s edits, the platform supports cooperative object locks (pessimistic concurrency control). A record being edited can be locked; other users see the locked state, and a lock history is kept. Locks coordinate the editing experience rather than hard-locking the database, so a client that ignores the lock protocol can still write.

EndpointOperation
POST /v1/locksAcquire a lock on an object.
GET /v1/locksGet the current lock(s).
PUT /v1/locksExtend (renew) an existing lock.
GET /v1/locks/{objectId}/historyThe lock history for an object.

Whether a lock can be taken is gated by getLockedStatusByUser (is the object locked, and by whom) and a can-lock check. In the Administration app, locking is driven by the client locks state (LockEntity, UnlockObject, ExtendLockObject, and a discard action), and an entity lock-history tab shows the history endpoint. Virtual aggregator entities apply their own lock state through AggregatorDataEntryService.applyVirtualAggregatorLockState. Generated reference: Locks — data-service.

These are documented for platform engineers on Engine: Permissions & Voters:

  • How grants from users, groups, roles, org units and query groups merge to one grant per resource — Grants are merged without hiding valid ones.
  • Permission caching across services and the generation counters that invalidate it — Caching and Generation (epoch) invalidation.
  • The Allow-All delegation and administration rights — Delegation: an Allow-All delegation carries no admin rights.
  • The OpenFGA shadow check, its switches and its guarantees — OpenFGA authorization in shadow mode.
  • Data repairs shipped with 1.10 — Data repairs.

Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27