Identity correlation and matching in midPoint

Correlation decides which person an account or HR record belongs to. This page explains how midPoint matching works, the options you configure, and what to confirm before you rely on it.

On this page

Midpoint correlation: matching accounts to the right person

Accounts on target systems rarely arrive with a clean key that points to a person. A directory account may carry a login name that differs from the HR record, a contractor may appear twice under two employee numbers, and an application may hold only an email address. Correlation is the step where midPoint decides which existing identity, if any, an account belongs to. A wrong match links an account to the wrong person and can grant or remove access in the wrong place, so teams should design correlation deliberately before the first import runs, not after the first complaint.

Correlation sits at the front of joiner, mover and leaver flows. When a record is imported from an authoritative source or a target system, midPoint evaluates the correlation rules to find a matching focus, then applies synchronization reactions based on the situation it finds: linked, unlinked, deleted or disputed. Because that decision drives everything downstream, the rules are configured per resource and per source, not once globally. Each resource can use different attributes, different matching logic and different reactions, so the rules for a directory should be reviewed separately from the rules for a SaaS application that has its own identifiers.

Before you write rules, confirm with your team which attributes are stable and unique on each system, who owns the HR record as the reference, and what should happen when a match is uncertain. Fuzzy matching with Levenshtein edit distance or trigram similarity is available in midPoint only with the native PostgreSQL repository, so confirm your repository choice early. The Evolveum correlation documentation describes the rule types and the situations midPoint can produce, and it is the reference to test against before any rule reaches production.

Which correlation approach fits which data

Exact matching compares one attribute on the incoming record with the same attribute on existing objects and links them only when the values are identical. It suits sources that issue a stable, unique, maintained identifier, such as an HR personnel number that never changes for the life of the employment record and is not reused. When the identifier is reliable, exact matching gives the most predictable results and is the simplest to test and explain to auditors.

  • Suitable data: a single authoritative identifier that is populated for every record and never reassigned.
  • False-match risk: low when the key is unique, but high if identifiers are reused, truncated, or copied between systems with different meanings.
  • Missed-match risk: rises when some records lack the identifier or it is formatted differently (leading zeros, prefixes) in the target system.
  • Normalization: agree on case, whitespace and format rules before comparison, so that equal people produce equal values.
  • Fallback: decide in advance whether records without a match go to a manual case or are created, rather than letting them fall through silently.

Before relying on exact matching, confirm with the HR or source owner how identifiers are issued, whether they are ever reused, and how many records carry no value.

Correlation options and when each fits

This table compares the main correlation choices in midPoint: exact item rules, fuzzy matching, confidence thresholds and manual cases. Read each row as a trade-off between precision (wrong matches avoided), recall (true matches found) and reviewer workload. The main takeaway is that stricter rules keep errors low but push more records to people, and fuzzy matching depends on the native repository.

OptionFitMain trade-offConfirm in the Evolveum docs
Exact item correlationStable identifiers such as employee number or a verified email shared by both sourcesHigh precision, but records with typos, renamed values or missing fields go unmatchedWhich item types and filters the correlator accepts in your release
Multiple correlators combinedSources where no single attribute is reliable and you need several rules tried in orderRule order drives results, so a weak early rule can override a stronger later oneHow the combination logic and rule precedence work in your release
Fuzzy matching with Levenshtein distanceNames or identifiers that differ by spelling, transliteration or small typosRecall rises, but close-but-wrong names can match, so precision needs reviewEdit distance limits and how scores are computed for your attribute type
Fuzzy matching with trigram similarityFree-text fields where word fragments are similar, such as organization or department namesTolerates reordering and partial text, but short values can produce noisy scoresSimilarity threshold behavior and index requirements for your data volume
Confidence or match thresholdsChoosing where a score counts as a confident match versus a case for reviewHigher thresholds reduce wrong matches and increase manual work; lower thresholds do the reverseWhether your release exposes this as a threshold setting and how it is tested before go-live
Manual correlation casesAmbiguous, low-confidence or conflicting matches that must be decided by a personAccurate outcomes, but reviewer effort grows with volume and needs clear ownershipHow cases are created, assigned and closed, and what audit trail they leave
Native repository dependencyTeams planning to use fuzzy searching at allFuzzy searching is available only with the native repository, so this shapes the database choiceWhich repository type your deployment uses before you design the rules

How midPoint decides between a match, a new owner and a manual case

Every correlation run ends in one of three outcomes: the account is linked to an existing identity, a new identity is created, or the case is routed to a person for a decision. midPoint reaches that outcome in stages. First it runs a candidate search against the identity repository, using the attributes your correlation rule names. Then it evaluates each candidate against the rule's matching logic and decides whether the result is a single confident match, no match, or an ambiguous result. Only the last stage depends on the rule you write, so the design work sits there. Before you build anything, pull up the correlation reference for the midPoint version you plan to run and confirm the exact outcome names, what each outcome triggers in the task, and how multiple candidates are handled. Those behaviors are version-specific, and a rule written against one release can behave differently on another.

Fuzzy matching adds a second layer. midPoint's fuzzy searching supports Levenshtein edit distance and trigram similarity, but only with the native PostgreSQL repository, so confirm your repository type before you plan to use it. Fuzzy candidates are not automatically matches. The similarity measure produces a score, and the rule decides what score is good enough to count as a match, what is too weak to consider, and what sits in between. The in-between band is where manual cases come from. Do not copy threshold values from examples or other projects. Choose them by running the rule against an extract of your own HR and target data, counting false links and missed links in each band, and agreeing the numbers with the people who will review the cases.

Plan the manual case queue as a control, not an overflow bin. Each routed case needs an owner, a reason code that says why the match was uncertain, and a documented way to resolve it: link to the proposed identity, create a new identity, or reject the account for later investigation. Ask the implementation team how the chosen version creates these cases, who sees them, and how the decision is recorded in the audit trail. Estimate the review load from a test run, not from assumptions, because a loose rule can send a large share of records to people who must decide them by hand. Track how many cases each band produces during rollout, and tighten or relax the rule only through a tested change.

Correlation decision path for an incoming account

The path starts when a connector imports an account from a resource into midPoint. Correlation first runs exact rules against existing identities. If no exact result settles the question and fuzzy matching is enabled, midPoint searches candidates using Levenshtein or trigram similarity, which requires the native PostgreSQL repository. The outcome is one match, several matches, or none. One match links the account, none can create a new identity, and ambiguous results go to a manual correlation case for an administrator to resolve. Check the confidence thresholds at each branch before go-live.

Decision path from an incoming account to link, new identity or manual case.

Setting up correlation in a midPoint project

This sequence takes correlation from agreed identifiers to a production rule set that matches accounts to the right person and routes uncertain cases to people. Each step ends with a check so the team knows when it can move on. The result is a tested, documented correlation configuration with a rollback path.

  1. Agree authoritative identifiers per source

    Work with the owner of each source system (HR, contractors, directories, target applications) to agree which attribute is the authoritative identifier for a person and which attributes are only supporting evidence. Record for each source the attribute name, its format, how often it changes, and whether it is unique. Include the rules for people who appear in more than one source, and who decides when sources disagree. The step is complete when each source has a signed-off identifier list and the owners agree that no identifier is reused across people. Confirm these details with the data owners, not from assumptions about the data.

  2. Confirm the repository type for fuzzy matching

    Check the midPoint repository before designing any rule that depends on similarity matching. Evolveum documents fuzzy searching with Levenshtein edit distance and trigram similarity as available only with the native repository, so a deployment on another repository configuration cannot use these rules as designed. Record the repository in the project decision log and confirm it against the current midPoint documentation for your release. If the repository does not support fuzzy searching, decide whether to change the repository, rely on exact matching, or accept a manual review path for those cases. The check is a written confirmation from the deployment owner.

  3. Define correlation rules in a test environment

    Build the correlation rules in a non-production midPoint environment using a sample extract from each source that reflects real naming variations, duplicates, and missing values. Start with exact matches on the agreed identifiers, then add secondary attributes such as name and date of birth with fuzzy comparisons where the repository allows them. Keep the rule set small enough that each match outcome can be explained to an auditor. Name the rules, document the attributes they compare, and version them in your configuration repository. The step is complete when every rule loads without errors and produces an outcome for each record in the extract.

  4. Set confidence and matching thresholds

    Set the thresholds that decide when a candidate match is accepted automatically, when it is sent to manual review, and when it is treated as no match. Choose the similarity values with the data owners by reviewing scored pairs from the sample extract, not by picking defaults. Document the reason for each threshold and who approved it. Include a rule for ties, where two candidates score similarly, because these are the most common source of wrong links. The check is a threshold table, approved by the data owner, with a sample of borderline pairs that show why each side of the line was chosen.

  5. Configure manual correlation case handling

    Set up the path for records that do not match confidently. Define which role receives correlation cases, what information the reviewer sees side by side, and which decisions are allowed: link to an existing person, create a new person, or leave the account uncorrelated. Define how a decision is recorded and how long an open case is kept before escalation. Test each decision with a sample case as a named reviewer, and confirm that the resulting link appears on the account. The step is complete when every decision type has been exercised once and the audit record shows who made it.

  6. Run simulations and review false matches

    Run the correlation against the full sample extract in simulation or dry-run mode, so no changes reach target systems. Review the output by category: confident matches, manual cases, and no matches. Pay particular attention to false matches, where two different people are linked, because these create access errors that are harder to unwind than missed matches. Check a random sample of confident matches manually and record the error rate found by the reviewers. Adjust rules or thresholds and rerun until the reviewers accept the result. The check is a signed simulation report with the false match findings and the changes made in response.

  7. Promote to production with a rollback plan

    Move the approved rules, thresholds, and case configuration into production through your normal change process. Before the first run, write down the rollback steps: which configuration version to restore, how to reverse links created by the run, and who has authority to stop the task. Start with a limited run that can be inspected before the full population is processed, and keep the simulation report as the baseline for comparison. Confirm that alerts and task status are visible to the operations team. The step is complete when the production run matches the simulation baseline within the tolerance agreed in step four, and the rollback plan has been tested in the non-production environment.

Security and data quality risks in correlation

A wrong correlation decision can give one person another person's access, expose personal data, or hide an account from review. The cards below cover the risks that connect matching logic to access control, privacy, audit and change management, and the checks to run before a sync touches production.

False matches grant wrong access

A correlation rule that links an account to the wrong identity can attach that person's entitlements to someone else. Common causes are shared surnames with the same date of birth format, reused employee numbers, or fuzzy thresholds set too loosely. Before go-live, ask which rule outcomes can lead to a link without human review, and which attributes are allowed to confirm a match. Illustrative example: two people with near-identical names and a single shared attribute should never be linked automatically.

Correlation docs

Personal data in fuzzy search

Fuzzy searching compares names, emails or other identifiers across the repository, so the search results and their logs can expose personal data to anyone who can run the query. Restrict which roles can execute correlation searches, and decide which attributes appear in case views and exports. Confirm with your privacy team how long search-related logs and case records are kept, and whether they fall under your data retention schedule.

Fuzzy searching docs

Access to resolve manual cases

Cases raised when correlation is uncertain show a candidate identity next to an account, so the people resolving them see sensitive attributes. Define a narrow group of case resolvers, separate them from people who approve their own access, and record who confirmed each link. Check that the midPoint authorization model limits case visibility to the right administrators, and test that resolvers cannot reassign accounts outside their remit.

Auditability of correlation decisions

An auditor will ask why an account belongs to a given person on a given date. Correlation outcomes, the attributes compared, the threshold in force and the identity of any human who confirmed a link should be recorded in a form that survives later rule changes. Ask your team to confirm which of these details midPoint's audit and task records keep by default, and where they are stored in your environment.

Change control of matching rules

A small edit to a correlation expression, threshold or attribute mapping can relink large numbers of accounts on the next synchronization run. Treat correlation rules as code: version them, review each change, and record the reason for the change. Require a second reviewer for threshold changes, and keep the previous version available so the team can roll back. Store rule definitions in the same change process used for other midPoint configuration.

Testing rules on representative data

Rules that behave well on a clean test directory can fail on the real mix of duplicate names, late hires and retired accounts. Run the rules against an extract that reflects your actual data quality, including known duplicates and edge cases, and review the proposed links before any production sync. Record the results so the team can show the rule was tested before go-live. Use simulation features where your midPoint version provides them, and confirm which ones apply to your release.

Correlation questions teams ask before hiring help

What drives the cost of midPoint correlation design?

The main driver is how many authoritative sources and target systems must be matched, and how messy their identifiers are. Each source adds attribute mapping, correlation rules and test cases. Cost rises when there is no shared unique key, when names, dates of birth or email addresses are inconsistent across systems, or when the same person may hold several accounts. Other drivers are the number of manual correlation cases the business expects to resolve and whether the rules must be documented for an internal or external audit. Costs recur mainly through rule changes when a new source is onboarded. Ask any partner for a fixed-scope quote that lists the sources in scope, the rule sets, the test data sets and the review rounds included.

How long does a first midPoint correlation rule set take to validate?

The time depends less on writing the rules than on testing them against real data. Validation needs a representative extract from each source, a clear list of expected matches, and agreement from HR or the data owner on what a correct match means. Duration grows with the number of sources, the share of records that need fuzzy matching, and how quickly the data owner can review exceptions. Evolveum's documentation describes correlation as a configured process within midPoint, so the work is mostly configuration and analysis rather than custom code. Ask for a timeline that separates data access, rule drafting, test runs and sign-off, and confirm which of these steps depend on your teams.

What data and people does correlation work need from our team?

Correlation work needs four things from your side:

  • Read-only extracts or test access to each authoritative source and target system, including attribute names and sample records.
  • A data owner for each source who can explain identifiers, status codes and known duplicates.
  • An accountable approver for the manual correlation queue, usually from HR, identity operations or the application owner.
  • A non-production midPoint environment where rules can run against copies of real records.

Personal data should be handled under your own data protection controls, so confirm where extracts are stored and who can view them before work starts.

Can an internal team design midPoint correlation without a partner?

Yes, an experienced internal team can design correlation rules, provided it has midPoint configuration skills, access to the data owners and time to test. The usual gaps are not in the XML or configuration syntax but in the data analysis: spotting duplicate identities, agreeing match thresholds with HR, and designing the manual case process so it does not become a backlog. Teams that have not run identity projects often underestimate test effort and the operational handover. A partner is most useful when the sources are numerous, the deadline is fixed, or the audit evidence must be produced in a defined format. Compare the internal estimate with a written scope before deciding.

When is fuzzy matching worth its trade-offs in midPoint?

Fuzzy matching is worth considering when exact identifiers are missing or unreliable, for example when names are spelled differently across systems or a source has no employee number. midPoint's fuzzy searching supports Levenshtein edit distance and trigram similarity, and the documentation states that it is available only with the native PostgreSQL repository. The trade-offs are false positives, which can attach access to the wrong person, and a larger manual review queue. Use exact or deterministic rules first, apply fuzzy rules only to the remaining records, and set confidence thresholds that you can justify with test results. Confirm the repository type and database setup before choosing this approach.

What is the best way to ask a partner for a fixed-scope correlation quote?

Send a written brief that names every source and target system, the identifiers available in each, the expected volume of records and the outcomes you need, such as automatic linking, manual cases or rejection. Ask the partner to state what is included in the fixed scope: rule design, test data handling, number of review rounds, manual case workflow, documentation and knowledge transfer. Ask which items are excluded, how changes requested after sign-off are priced, and what your teams must provide and by when. DeployOpen plans and delivers most engagements as fixed-scope work agreed in writing before the start, and the quote follows from that written scope.

How do we know correlation rules are safe to switch on?

Treat activation as a gated decision rather than a single switch. Run rules in simulation or against copies of data, record the matches, non-matches and uncertain cases, and have the data owner sample the results. Review the proportion of records sent to manual cases and the number of accounts that would be linked to the wrong person. Keep a rollback plan, and confirm how midPoint behaves when a source is unavailable. Sign-off should name the person who accepts the residual risk. Your auditors will expect this evidence, so store test results with the change record.

Official Evolveum documentation on correlation

Before you write a single correlation rule, read the Evolveum correlation reference in full. It explains how midPoint decides which existing account or identity a newly imported record belongs to, and it sets out the vocabulary your team will use in design reviews and in the midPoint configuration itself. Treat it as the controlling reference for every decision in this topic, and work through it alongside a test midPoint instance so that each concept is tied to something you can see in the interface.

Read the fuzzy searching documentation as a separate step, because it covers the one area where behavior depends on your infrastructure. Evolveum documents Levenshtein edit distance and trigram similarity as fuzzy search options, and states that they are available only with the native PostgreSQL repository. Before you plan any approximate matching, confirm with your own midPoint release and repository type that the options you need are present, and check how they are configured and tuned in that release, since matching behavior can change between versions.

Record the release you tested against, the repository type and the exact correlation and fuzzy search settings in your design notes. When you upgrade, rerun your correlation test cases against the new release instead of assuming the results still hold. If the documentation and your test results disagree, raise the question with Evolveum support or your implementation partner before you rely on the behavior in production.

How DeployOpen scopes and delivers correlation work

DeployOpen plans, implements and documents identity correlation and matching in midPoint inside your own infrastructure. We start from the source records and target accounts you have, agree the matching rules and manual review path in writing, and hand over a configuration your identity and security teams can review and run.

How we scope

  • Inventory the HR, directory and application sources whose records must be matched to people in midPoint.
  • Agree in writing which correlation rules, fuzzy matching settings and confidence thresholds are in scope.
  • Define who reviews manual correlation cases, how they are assigned and what evidence reviewers need.
  • Confirm the midPoint version, PostgreSQL repository and hosting model before any build work starts.

How we build

  • Configure correlation rules for each source and target, starting with the attributes you trust most.
  • Test fuzzy matching on copies of real-shaped data, recording false matches and missed matches for review.
  • Set confidence thresholds and tune them against documented test cases before enabling automatic linking.
  • Confirm that fuzzy searching depends on the native repository and plan the database setup accordingly.

How we hand over

  • Deliver the correlation configuration, threshold rationale and test results as written documentation.
  • Walk administrators through the manual correlation case queue and the steps for resolving each case.
  • Document the run order for synchronization tasks so correlation changes can be rolled out and rolled back safely.
  • Provide a runbook for reviewing correlation outcomes after each release or source change.

How we support

  • Offer ongoing support, upgrades and continuous testing for correlation rules as a retainer.
  • Re-test matching behavior when HR data formats, connectors or the midPoint version change.
  • Review manual case volumes and threshold outcomes with your team on the agreed schedule.
  • Ask us to confirm scope, deliverables and timelines in writing before any change to the matching logic.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.