Skip to Content
IAM
User Guide
Permission MirroringPermission mirroring backend configuration

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

LevelFieldRequiredDescription
RootPermissionMirroringYesArray of source-module configurations
SourcesourceModuleYesModule name to match against the source permission’s Module field
SourcetargetsYesArray of target-module mappings
TargettargetModuleYesModule name set on the mirrored permission
TargetdefaultInTargetNoRoles always included in the mirrored permission regardless of rule matches
TargetrulesYesArray of from/to mapping rules
RulefromYesMatch criteria against the source permission’s roles
RuletoYesWhat to emit in the mirrored permission
RoleReftypenameYesThe role type key (e.g. action, resource, access, dataCollection)
RoleRefroleNoSpecific role value. When omitted in from, matches all values. When omitted in to, copies the source value.

Permission mirroring rules

Rule TypeBackend Configuration (from → to)Permission you assignMirrored Permission IAM creates automatically
Specific ruleSource: typeA + roleA → Target: type1 + role1Source permission: typeA + roleATarget: type1 + role1
Specific rule (target role omitted)Source: typeA + roleA → Target: type1 + (no role)Source permission: typeA + roleATarget: type1 + roleA (source role is copied)
Wildcard ruleSource: typeA + (any role) → Target: type1 + role1Source 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
DefaultTarget: type1 + role1 (no source match needed)No UI action neededTarget: type1 + role1

Validation (when mirroring does / does not happen)

Check on backend configurationResult
Target role exists in the target moduleMirrored permission is created
No response / null response from target rolesError is shown and logged — no mirroring for that target module
Target module is not registeredError is shown and logged — no mirroring for that target module
Configuration Constraint: Same source module is configured more than onceNo mirroring
Configuration Constraint: Same target module is configured more than once for one source moduleNo mirroring

See IAM: Permission Mirroring for more technical details.