Architecture¶
JIM is built around the Metaverse pattern: a hub-and-spoke architecture where all identity data flows through a central authoritative repository. This page describes the pattern, the system components, and the layered software architecture.
The Metaverse Pattern¶
At the heart of JIM is the Metaverse: a centralised repository of identity objects. Rather than synchronising data directly between Connected Systems, every change flows through the Metaverse. This provides:
- Single source of truth
One authoritative record for each identity, assembled from multiple sources. - Centralised governance
All data transformations, scoping decisions, and lifecycle rules are applied in one place. - Decoupled systems
Connected Systems do not need to know about each other; they only interact with the Metaverse. - Auditability
Every change is tracked as it passes through the hub.
Sources project identities into the Metaverse; targets receive them from it. The same Connected System can be both source and target (writeback). Moving dots trace import and export flows.
Key principle: All identity data flows through the Metaverse. JIM never synchronises directly between Connected Systems.
Identities and the Metaverse¶
The Metaverse holds one Metaverse Object for each real-world thing JIM manages: a person's identity, a group, a role. Each is the canonical, aggregated version, assembled from the Connected System Objects that contribute values to it under Attribute Priority.
Connected Systems hold instances of it: an account in a directory, a row in an HR system, a mail-enabled group. JIM's job is to keep every instance consistent with the canonical object, creating, updating and removing instances as the object changes. This is why the product names the two sides Metaverse Object and Connected System Object throughout: "identity" describes what the Metaverse is for, and the objects are what JIM actually manages.
System Context¶
The following diagram shows JIM in the context of the systems and users it interacts with:
Administrators and automation clients work through JIM's UI and API; JIM synchronises with the surrounding systems. Moving dots trace identity data in flight.
Containers¶
JIM is deployed as a set of containers, on Docker or Podman, each with a distinct responsibility:
JIM's deployable containers. PostgreSQL doubles as the task queue: the Scheduler queues work and the Worker polls it, so the services coordinate through the database rather than calling each other. Moving dots trace identity data in flight.
Web Application¶
The web application (jim.web) provides both the administrative user interface, the portal, and the REST API (at /api/). Administrators use the UI to configure Connected Systems, define Synchronisation Rules, monitor operations, and browse identity data. The API enables automation and integration with external tools. It also serves the SCIM endpoint (at /scim/) that identity providers push Users and Groups to, for each Connected System using the JIM SCIM 2.0 Service Provider Connector. JIM keeps what they push, and the Worker imports it on the Connected System's Schedule.
Worker Service¶
The Worker Service (jim.worker) is the background processor that executes all identity operations: imports, synchronisation, and exports. When an operation is triggered (manually, via the API, or by the scheduler), the Worker picks it up and processes it asynchronously. It handles batch processing, error reporting, and activity logging. The Worker also hosts the Password Delivery Service, which delivers queued password changes to Connected Systems on its own clock, and the Exchange delivery service, which makes the on-premises Exchange recipients an export declares; it writes a heartbeat that the portal's Service Health panel reads.
Inside the Worker Service: the host dispatches import, synchronise and export processors, and the Sync Engine makes the synchronisation decisions. The host polls the task queue in PostgreSQL, where the whole service reads and writes staged and Metaverse data; the Connectors carry data to and from Connected Systems. Moving dots trace data arriving through, and leaving via, the Connectors.
Scheduler Service¶
The Scheduler Service (jim.scheduler) is a lightweight scheduling service that triggers operations on a cron or interval basis. Schedules can include multiple steps (e.g., import from HR, synchronise, export to Active Directory) that execute in sequence. The Scheduler submits work to the Worker for processing.
JIM.PowerShell¶
A PowerShell module for automation and scripting. It wraps the REST API and provides cmdlets for querying, configuring, and executing operations. Supports both interactive (browser-based SSO) and non-interactive (API key) authentication.
PostgreSQL Database¶
JIM uses PostgreSQL as its sole data store. The database holds all configuration, identity data (Metaverse Objects, Connected System Objects), Synchronisation Rules, activity history, and credentials (encrypted at rest with AES-256-GCM).
Real-Time Coordination¶
The services never call each other directly; they coordinate through the database. As well as acting as the task queue, the database tells the services when something has changed: triggers on the Worker Task and Activity tables publish PostgreSQL NOTIFY events on commit, which each service receives over a dedicated LISTEN connection.
This is what makes JIM feel live rather than polled:
- The Scheduler advances a Schedule to its next step as soon as the current step's tasks finish, instead of waiting up to 30 seconds for its next polling cycle.
- The web application pushes the same events to the browser, so the Operations page and a running Activity's progress update as work happens.
Polling remains as the safety net throughout. If the notification channel is unavailable, every affected surface falls back to polling automatically and nothing stops working; notifications are treated as hints that something is worth re-reading, never as the source of truth.
A SignalR hub at /hubs/notifications broadcasts the same events to your own dashboards and tooling.
Layered Architecture¶
Inside each service, JIM is layered, and no layer bypasses the one below it. The portal and the REST API call the application layer for every operation, never the database; the application layer works on JIM's domain model; and only the data layer reads and writes PostgreSQL. Connectors sit beside the data layer, and are the only code that talks to your systems.
Arrows show dependencies: each layer depends only on the layer directly beneath it. The Integration layer's Connectors sit at the base of the stack alongside data access.
Deployment¶
JIM is deployed as containers, on Docker or Podman, and is designed to work in air-gapped environments with no internet connectivity. There are no cloud service dependencies; all features work with on-premises infrastructure only.
A typical deployment consists of:
- Web Application container,
jim.web(portal and API) - Worker Service container,
jim.worker(background processing) - Scheduler Service container,
jim.scheduler(scheduled operations) - PostgreSQL container (database)
- An OIDC identity provider for authentication (e.g., Keycloak, or any OIDC-compliant provider)