Skip to content

Permission mirroring backend configuration

This reference describes the permission mirroring configuration schema, mapping rules, and validation behavior.

The mirroring configuration is a JSON document with a single top-level key, PermissionMirroring, that contains an array of source-module configurations:

{
  "PermissionMirroring": [
    {
      "sourceModule": "IAM-Module",
      "targets": [
        {
          "targetModule": "module-mock",
          "defaultInTarget": [
            {
              "typename": "access",
              "role": "reportViewer"
            }
          ],
          "rules": [
            {
              "from": {
                "typename": "action",
                "role": "manage"
              },
              "to": {
                "typename": "access",
                "role": "holidaysAdmin"
              }
            },
            {
              "from": {
                "typename": "resource"
              },
              "to": {
                "typename": "dataCollection"
              }
            }
          ]
        }
      ]
    }
  ]
}

JSON Structure

Level Field Required Description
Root PermissionMirroring Yes Array of source-module configurations
Source sourceModule Yes Module name to match against the source permission's Module field
Source targets Yes Array of target-module mappings
Target targetModule Yes Module name set on the mirrored permission
Target defaultInTarget No Roles always included in the mirrored permission regardless of rule matches
Target rules Yes Array of from/to mapping rules
Rule from Yes Match criteria against the source permission's roles
Rule to Yes What to emit in the mirrored permission
RoleRef typename Yes The role type key (e.g. action, resource, access, dataCollection)
RoleRef role No Specific role value. When omitted in from, matches all values. When omitted in to, copies the source value.

Permission mirroring rules

Rule Type Backend Configuration (from → to) Permission you assign Mirrored Permission IAM creates automatically
Specific rule Source: typeA + roleA → Target: type1 + role1 Source permission: typeA + roleA Target: type1 + role1
Specific rule (target role omitted) Source: typeA + roleA → Target: type1 + (no role) Source permission: typeA + roleA Target: type1 + roleA (source role is copied)
Wildcard rule Source: typeA + (any role) → Target: type1 + role1 Source permission: typeA + (any role) Target: type1 + role1
Wildcard rule (target role omitted) Source: typeA + (any role) → Target: type1 + (no role) Source permission: typeA + (any role) Target: type1 + source role(s) you selected
Default Target: type1 + role1 (no source match needed) No UI action needed Target: type1 + role1

Validation (when mirroring does / does not happen)

Check on backend configuration Result
Target role exists in the target module Mirrored permission is created
No response / null response from target roles Error is shown and logged — no mirroring for that target module
Target module is not registered Error is shown and logged — no mirroring for that target module
Configuration Constraint: Same source module is configured more than once No mirroring
Configuration Constraint: Same target module is configured more than once for one source module No mirroring

See IAM: Permission Mirroring for more technical details.