Synchronisation Rules¶
A Synchronisation Rule defines the complete relationship between a Connected System and the Metaverse. It controls which objects are in scope, how objects are matched, when new Metaverse Objects are created, and how attributes flow between systems.
Every Connected System needs at least one Synchronisation Rule to take part in synchronisation.
What a Synchronisation Rule ties together¶
- Direction
Whether data flows inbound (a source system into the Metaverse) or outbound (the Metaverse out to a target system). - Scoping criteria
Which objects the rule applies to. - Object Matching Rules
How to match a Connected System Object to an existing Metaverse Object. - Projection or Provisioning
What to do when no match is found. - Attribute mappings
Which attributes to synchronise and how to transform them.
Each rule also has a name and an optional description, a free-text note of what the rule is for and why, shown on its Details tab; changes to it are tracked in the Configuration Change History.
A rule's Connected System Object Type must be selected on the Connected System's Schema tab for the rule to be enabled; saving an enabled rule against a deselected Object Type is refused, as is deselecting an Object Type an enabled rule is still bound to. A deselected Object Type is out of management, and its objects are obsoleted by the next Full Import (see What deselecting means). A disabled rule can be saved against one, which is how you keep a rule while taking its type out of management.
A saved rule's Object Types cannot be changed: its Scoping Criteria, Attribute Flows and Object Matching Rules name attributes of those types, and would read nothing on another. Neither the portal, the REST API nor PowerShell offers a way to change them once the rule is saved, and JIM refuses a save that would. To manage another Object Type, create a new Synchronisation Rule.
A saved rule's Connected System, direction and Object Types are stated in a strip beneath the page's breadcrumbs, visible on every tab. It reads left to right in the direction data flows: an import rule shows the Connected System Object Type, then the Metaverse Object Type; an export rule the reverse. The form that creates a rule orders its two Object Type pickers the same way. The Connected System's name links to it. An import rule whose Object Type has changes awaiting synchronisation shows an Awaiting synchronisation chip there, and an export rule with Metaverse Objects flagged for review shows Export review pending: N; see When a change takes effect.
Beside a term a tab introduces (Projection, Scoping, Object Matching Rules, Attribute Flow and others, across JIM's configuration pages), an info icon shows a short definition and a link to its glossary entry.
Direction¶
Import (inbound)¶
Import rules process data from a Connected System into the Metaverse. They are used with source systems, which provide authoritative identity data (HR databases, badge systems).
An import rule:
- Reads Connected System Objects from the Connected System's Connector Space
- Attempts to join each Connected System Object to an existing Metaverse Object using the rule's object matching configuration
- Projects a new Metaverse Object if no match is found and projection is enabled
- Flows attribute values from the Connected System Object to the Metaverse Object
Export (outbound)¶
Export rules push data from the Metaverse to a Connected System. They are used with target systems, which receive provisioned identity data (LDAP directories, email systems).
An export rule:
- Evaluates Metaverse Objects in the Metaverse against the rule's scoping criteria
- Provisions a new Connected System Object in the target system's Connector Space if one does not exist (and provisioning is enabled)
- Flows attribute values from the Metaverse Object to the Connected System Object
- Creates Pending Exports for any changes
A Pending Export carries only what changed: a group that gains or loses members exports just those members, while an object JIM creates gets every value.
With Enforce State set on an export rule, JIM also corrects drift: an exported attribute changed in the Connected System is pulled back to the Metaverse value on the next synchronisation. For a generated value on an export mapping, it is pulled back to the value JIM generated for that Connected System Object. With Enforce State off, a member removed from a group in the Connected System stays removed.
A change in the Connected System is not drift when it can flow back in: the same Connected System holds the winning import Attribute Flow for the Metaverse attribute, and that flow reads the changed attribute. An import of mail into Email lets an edit to mail update Email. If the flow reads a different attribute (Display Name built from givenName and sn but exported to displayName), an edit to displayName can never reach the Metaverse, so it is corrected as drift.
Scoping criteria¶
Scoping criteria decide which objects a rule applies to: only objects that match are processed. Scoping Criteria covers where scope is checked, what happens to objects in and out of scope, several rules for the same objects, how criteria are evaluated, relative dates, and previewing a scope change.
Object Matching Rules¶
Object Matching Rules decide how a Connected System Object is matched to an existing Metaverse Object, by comparing a Connected System attribute, or an expression worked out from the Connected System Object, with a Metaverse attribute. Object Matching Rules covers the outcomes, simple and advanced matching, and previewing a matching change.
Projection and provisioning¶
Projection applies to import rules. When it is enabled and no match is found, JIM creates a Metaverse Object of the specified type and links the Connected System Object to it; this is how new identities enter the Metaverse. Otherwise the Connected System Object stays disconnected.
Where the object type is deleted When Authoritative Source Disconnected, a projecting rule's Connected System should normally be one of the type's authoritative sources; otherwise the objects it creates are governed by no source. Saving a rule that newly projects from a system that is not one asks you to confirm first. A rule that only joins (projection off) never does: that is the normal way to add a system that contributes attributes without governing lifecycle.
Provisioning applies to export rules. When it is enabled and no match is found, JIM creates a Connected System Object in the target system's Connector Space (and ultimately the target system itself, when the export Run Profile flushes Pending Exports). Otherwise the rule only updates objects that already exist in the target.
A rule that provisions also puts back an account deleted directly in the target system. The next import from that system (Full or Delta) marks the account's Connected System Object obsolete; the next synchronisation of that system (Full or Delta) disconnects it and, where the Metaverse Object is still in the rule's scope, stages a provisioning Create in the same run, so the next export recreates the account. Nothing else about the person needs to change. The Create is recorded on that run's Activity as an Export Review item. It is not staged when the disconnection schedules or performs the Metaverse Object's deletion under its type's Deletion Rules, or when the object was already due for deletion; and an export rule that does not provision leaves the person without an account in that system.
Before provisioning, the rule's Object Matching Rules look for an unjoined account already in the target, so it is joined rather than duplicated; if several match, JIM provisions nothing for that rule and reports an Ambiguous Provisioning Match. See Matching outcomes.
If a Metaverse Object attribute changes again while its Create export is still awaiting confirmation by a subsequent import, JIM never sends a second Create; most Connected Systems reject a Create for an object they already hold. The change is queued and sent as a single Update once the Create is confirmed, carrying whatever the latest value is by then; the Create counts as confirmed as soon as an import reports the object back at all, even if one of the values it reports still differs from what was exported, and the outstanding value then retries as part of that same Update.
If an import that read every object completes without reporting the object back at all, the Create itself is sent again at every export until an import reports it. That is a Full Import, or a Delta Import that read everything because it could not read changes; a Delta Import that read changes never triggers this, since an object missing from its payload is not evidence that it no longer exists.
Deprovisioning Action¶
Each export rule's Deprovisioning Action decides what happens to its object in the Connected System when the Metaverse Object leaves the rule's scope or is deleted. Deprovisioning covers the actions, when a change to an export rule takes effect, seeing what a run deprovisioned, and previewing a destructive change.
Initial password¶
An export rule's Passwords tab sets an Initial Password on every Connected System Object the rule creates. Initial Password covers what you configure, and what happens after provisioning.
Attribute mappings¶
Attribute mappings define which attributes to synchronise and how to transform them: each maps a source attribute or an expression to a target attribute. Attribute Mappings covers each kind of mapping, value processing, Initial Export Only, previewing a change, and Attribute Priority; Generated Values and Deriving Metaverse Attributes cover the two kinds that build a value rather than copy one.
Tests¶
A saved rule's Tests tab holds its configuration test cases: inputs, and what the rule's Scope, one of its Attribute Flows or Generated Values, or one of its Object Matching Rules should give for them. Run them to check the rule still behaves as it did; saving a change runs the cases it could affect.
Common workflows¶
Setting up an import rule:
- Create a Synchronisation Rule with direction
Import, choosing the source object type in the Connected System and the target Metaverse Object Type - Add attribute mappings to flow values from Connected System Object attributes onto the corresponding Metaverse Object attributes
- Configure Object Matching Rules so incoming objects join to the right Metaverse Objects
- Decide whether to project new Metaverse Objects when no match exists, and enable that on the rule
Setting up an export rule with scoping:
- Create a Synchronisation Rule with direction
Export, with provisioning enabled if you want JIM to create objects in the target system - Add attribute mappings to flow values from Metaverse Object attributes onto Connected System Object attributes
- Add scoping criteria so only the relevant Metaverse Objects are exported (for example, only
personobjects whosedepartmentisIT) - Configure Object Matching Rules for the export direction
- Decide whether to enforce state, i.e. detect and correct drift in the target system
Example: a complete import rule¶
For an HR system:
| Component | Configuration |
|---|---|
| Name | HR Import - Employees |
| Direction | Import |
| Connected System | HR Database |
| Scoping | cs["employeeType"] = "FTE" |
| Object Matching Rule 1 | Match cs["employeeId"] to mv["Employee ID"] |
| Projection | Create Metaverse Object of type Person |
| Attribute mappings | cs["givenName"] to mv["First Name"] (direct) |
cs["sn"] to mv["Last Name"] (direct) |
|
cs["department"] to mv["Department"] (direct) |
|
cs["employeeId"] to mv["Employee ID"] (direct) |
|
Capitalise(cs["givenName"]) + " " + Capitalise(cs["sn"]) to mv["Display Name"] (expression) |
It imports full-time employees, joins them to existing Metaverse Objects by employee ID, projects new starters, and flows their attributes into the Metaverse.
Finding a Synchronisation Rule¶
Filters above the Synchronisation Rules list narrow it to the rules you care about:
| Filter | Narrows to |
|---|---|
| Connected System | Rules belonging to the systems you pick. Only systems that actually have rules are offered. |
| Direction | Inbound (Import) or Outbound (Export) rules. |
| Action | Projects (Import rules that create Metaverse Objects), Provisions (Export rules that create Connected System Objects), or Flow Only (rules that create nothing and only flow attribute values). |
| Status | Enabled or Disabled rules. |
Each filter accepts several values, and the filters combine: picking two Connected Systems and the Outbound direction shows the outbound rules of either system. Leaving a filter empty means "all".
The search box in the table's toolbar narrows whatever the filters left, matching on the rule name. It filters as you type. Clearing it returns the filtered list rather than the full one, so a filter stays in place while you search within it.
The same filters are available to automation: see Get-JIMSyncRule's -Direction, -ActionType and -Status parameters, and the matching query parameters on the Synchronisation Rules list endpoint in the REST API.
Confirming a change before you save it¶
Saving a Synchronisation Rule can be harmless or far-reaching, and the two sit side by side on the same page: renaming a rule is beside the Deprovisioning Action that decides whether leavers' accounts are deleted. JIM judges each save by the properties that actually changed:
- Cosmetic changes (name, description) save straight away with no prompt.
- Changes that affect synchronisation (scope, mappings, Object Matching Rules, direction, enabling or disabling the rule) show a confirmation listing exactly what is changing, from which value to which, and when it takes effect; see When a change takes effect.
- Destructive changes (Deprovisioning Action, Inbound Out-of-Scope Action) additionally state, in plain terms, what the change will do: which objects will be deleted or disabled rather than disconnected, or disconnected rather than left joined.
- Changes that stop a test case passing (see Tests) stop the save first: keep editing, accept the new result, or save anyway.
- Rules that may clash save with a warning, which stays on screen until you close it: another enabled rule that could cover the same objects, or an export rule into the same Object Type that writes an attribute this one writes (Several rules for the same objects), or an export rule that flows a Connector-defined attribute and the attribute it is written through from different sources. The REST API returns these in the save's
warnings, and PowerShell writes them as warnings.
The same rules apply across every configuration surface; see Configuration changes for the full picture, including when JIM stays silent.
Deleting a Synchronisation Rule¶
Deleting a rule removes all of its configuration: Attribute Flow mappings, scoping criteria and Object Matching Rules. The deletion lives on the rule's Danger Zone tab, and what the confirmation asks depends on whether the rule contributed Metaverse attribute values that are still in place.
A rule contributing nothing deletes immediately after a plain confirmation. A rule that did contribute values shows the impact first (how many values, across how many Metaverse Objects, per attribute) and asks what should happen to them:
- Recall the attribute values (the default): the rule is disabled immediately and the recall runs as a background operation. Where another Attribute Flow also contributes an attribute, its value takes over; where none does, the attribute is cleared, and resulting changes are staged as Pending Exports for mapped target systems. Where the recall takes an object out of an export Synchronisation Rule's scope, its account in that target system is deprovisioned according to the rule's Deprovisioning Action, exactly as a synchronisation would deprovision it. The confirmation links the recall's Activity so you can monitor progress from the Operations page; deleting the rule is the operation's final step.
- Keep the attribute values: the rule is deleted at once and the values remain in place with no record of where they came from. Nothing will ever recall them; a new inbound Attribute Flow, or manual removal, is the only way to change them later. The choice is recorded on the deletion's Activity.
Removing a single Attribute Flow mapping from the editor offers the same choice when the mapping contributed values, with one difference in timing: a recalled mapping's values are withdrawn at the contributing Connected System's next synchronisation, Delta included, rather than by a background operation (the rule survives, so the ordinary recall machinery covers it). The choice is made when you remove the mapping and takes effect when you save the rule.
The same options exist on the other surfaces: Remove-JIMSyncRule and Remove-JIMSyncRuleMapping take -KeepContributedValues and state the impact in their confirmations, and the REST delete endpoints take a keepContributedValues query parameter. A deletion that completes straight away answers 200 OK with what it affected; a rule deletion that queues a recall answers 202 Accepted with the recall Activity's id. Both name any derived Attribute Flow the deletion leaves with a missing input. See the PowerShell reference and the interactive API reference.
For the full recall semantics (re-election, Value cleared outcomes, and how disabling differs from deleting), see Attribute Priority.
Manage Synchronisation Rules¶
- JIM portal
Synchronisation Rules area of the admin UI - PowerShell
Synchronisation Rules cmdlets (Get-JIMSyncRule,New-JIMSyncRule, etc.) - REST API
Synchronisation Rules endpoints in the interactive API reference
See also¶
- Configuration changes: how JIM classifies and confirms configuration changes
- Connected Systems: the systems a Synchronisation Rule connects to
- Concepts: Synchronisation Pipeline: where Synchronisation Rules fit in the import/sync/export flow
- Concepts: Attribute Priority: how JIM resolves which source wins when several rules feed the same attribute, and the "Null is a value" setting
- Concepts: JML Lifecycle: how scoping and provisioning drive joiner/mover/leaver behaviour
- Concepts: Expressions: the expression language used in scoping criteria and attribute mappings
- Concepts: Case Sensitivity: the four questions JIM asks when comparing text, and which features ask which