Why midPoint task thresholds matter before a bad sync reaches target systems
A mapping error, a broken source extract or an empty HR feed can make a reconciliation or import task treat large numbers of accounts as changed at once, and a disable or delete action can then reach many target systems in one run. Thresholds are the guardrail that halts a task when its results exceed the limits you agreed in advance. In midPoint, thresholds are policy-driven rules attached to tasks, so the limits belong to the task definition rather than to someone watching the run.
Teams need this control most in three situations: large connected estates where one task touches thousands of identities across many resources, HR-driven leaver flows where a bad source record can look like a mass departure, and the first runs of a new resource, when mappings and correlation have not yet been tested against real data. In each case the cost of a wrong action is high and often hard to reverse, because restoring disabled or deleted accounts depends on the target system and on your backups. Before go-live, ask the implementation team which tasks are allowed to change target accounts, and which of those will carry thresholds from the first run.
Thresholds should be designed alongside the synchronization schedule and the recovery steps, not added after an incident. Confirm with Evolveum's current documentation how threshold policies are expressed for each task type and activity in your midPoint version, since behavior differs between releases. The Evolveum thresholds documentation is the natural next read for the exact settings your team will configure.
How threshold policies stop a task
A threshold policy is evaluated against the outcomes of a task as it processes objects. midPoint tracks how many items a run has handled and how those items ended, such as successful, failed or skipped results, and a policy compares those counts or ratios against the limit you set. The evaluation happens during the run, which is why a policy can act before the whole dataset has been pushed to a target system. Because the counts come from real processing outcomes, the limit is only as meaningful as the object population it is measured against. A small source extract and a full production population produce very different failure ratios for the same error count.
- Outcome counts: Policies look at results per processed object, so the same error rate means different things on a 200-record run and a 200,000-record run.
- Object scope: Thresholds apply to the objects the task selects, so a narrow filter changes what the limit protects.
- Evaluation timing: Checks run while the task progresses, so the stop point depends on batch order and task size.
- Focus-based rules: The policy rules are evaluated against focus objects, such as users, that the task processes.
- Baseline awareness: A count alone does not reveal a systemic fault, so pair it with a planned expected volume.
Before relying on any count, confirm with your midPoint version which result categories the policy can see and how the task orders its objects.
When a threshold policy is triggered, midPoint applies the action defined in the policy. Stopping the task is the core protective action: it halts further processing so that remaining objects are not pushed to connected systems. Other actions can change how a multi-step task proceeds. For composite tasks, midPoint 4.11 introduces activity-level actions, restartActivity and skipActivity, which let a policy affect one activity rather than the whole task. The choice of action decides how much work is lost, how much is protected, and what an operator must do next.
- Stop the task: Halts processing at the point the limit is crossed, which protects the rest of the population from the same fault.
- restartActivity: Restarts the activity that triggered the policy, useful when the cause was transient and the fix is in the environment.
- skipActivity: Skips the activity that triggered the policy so later activities in a composite task can still run.
- Operator response: Each action leaves a different task state, so define who reviews the stopped run and what they check first.
- Action testing: Confirm in a non-production environment that each action produces the state your runbook expects.
Ask your implementation partner or the Evolveum documentation which actions apply to the task types you run, and confirm the exact behavior for your release before writing runbook steps.
A threshold policy is attached to a task or to an individual activity inside a composite task. A simple task has one set of limits. A composite task, which runs several activities in sequence, can carry separate thresholds for each activity because midPoint 4.11 evaluates focus-based policy rules per task activity. This matters for synchronization designs that combine import, correlation and change steps: a noisy correlation step can have a stricter limit than a stable import step, and the response to each can differ. Attaching policies at the right level keeps a legitimate activity from being stopped by a limit meant for another.
- Task level: A single policy covers the whole task, which suits simple import or reconciliation runs.
- Activity level: Composite tasks can carry separate policies per activity in midPoint 4.11 and later.
- Independent limits: Each activity's limit reflects its own expected volume and failure pattern.
- Action per activity: Pair
restartActivityorskipActivitywith the activity where that response makes sense. - Version dependency: Activity-level evaluation depends on 4.11 or later, so earlier releases need a different design.
Review the thresholds documentation for the attachment syntax, and confirm which activities in your tasks can carry their own policy before you write the configuration.
Threshold configuration options and when each fits
This table compares threshold scope and the stop, restart and skip responses for composite tasks in midPoint. Read each row against the systems your task touches, and note that activity-level thresholds and the restartActivity and skipActivity actions depend on the 4.11 release. Confirm exact configuration keys in the thresholds reference before you write any policy, and test each option in simulation first.
| Option | When it fits | Trade-off |
|---|---|---|
| Task-level threshold on a single-activity task | One import or reconciliation against one resource, where one limit matches the whole job | Simple to set and review, but the limit must suit the volume of that one resource |
| Task-level threshold on a composite task | Related activities that touch the same target and share a sensible change limit | One spike in any activity can stop healthy activities that were not the cause |
| Activity-level threshold (midPoint 4.11) | Composite tasks whose activities hit different systems or change at different volumes | More rules to write, simulate and maintain, one set for each activity |
| Stop the whole task on breach | Partial changes are unsafe, or the cause of the breach is not yet known | All remaining work waits for an operator, including unrelated activities |
| restartActivity action | The breach is likely transient and the activity can safely run again from its start | Repeats work and load on the target, so confirm the activity is safe to rerun |
| skipActivity action | The activity is optional or can wait without breaking the activities that follow it | Leaves a gap in the data, so check whether later activities depend on its output |
| Focus-based policy rule as the breach condition | The breach depends on the state of identities, such as how many accounts match a change | The rule expression needs its own simulation, since a wrong match can trigger or hide breaches |
Setting up thresholds safely, from simulation to production
This sequence moves threshold policies from identification to production in controlled stages, so each stopped or flagged task is expected, explained and recoverable. It produces a tested policy per task and a named owner for each connected system.
Identify tasks that can change target accounts
The midPoint architect lists every reconciliation, live synchronization and import task that can create, modify, disable or delete accounts on a connected system. For each task, record the resource, the object types it touches and the direction of change. Include tasks run by other teams, since they share the same target. The step is done when the list covers every write path to each target system and each entry names a task owner. Check the list against the task inventory in midPoint so no scheduled task is missing.
Agree expected change volumes with system owners
With the owner of each target system and the application team that depends on it, agree the normal number of account changes a run should produce, including typical peaks such as a termination wave or a new intake. Document the figures as ranges with the reason for each. Ask the owners what a sudden spike would mean for their system, such as a lockout cascade or a mass disable. The step is done when each task has a signed-off expected range and a named contact who can confirm or reject an unexpected run.
Write the threshold policy per task and activity
The midPoint administrator defines threshold policies using focus-based policy rules on each task. For composite tasks, midPoint 4.11 lets these rules be evaluated per task activity, so each activity can have its own thresholds and its own action, such as stopping the activity or skipping it. Store the policy definitions in version control so changes are reviewed. The step is done when every task in the inventory has a policy that matches the agreed range and the review record shows who approved it. Confirm the exact configuration keys in the Evolveum thresholds documentation for your release.
Run the policy in simulation or preview
The administrator runs each task in simulation or preview mode, so midPoint reports the changes it would make and which threshold would trigger, without writing to the target system. Compare the simulated counts with the agreed ranges and with the previous production run. The step is done when a simulated run completes for every task, the counts are recorded, and any threshold that would trip under normal conditions has been corrected in the policy. Repeat the simulation after each policy change.
Review results with application owners
The midPoint team walks the application owners through the simulation output for their systems. The owners confirm which changes are expected, identify any that would be harmful, and agree the operator action for each stopped task. Record the decisions, the escalation contact and the restart procedure. The step is done when each owner has signed off the policy in writing and the runbook names who restarts a task and who decides whether its changes are applied. Note any owner objection as an open item that blocks the next step.
Enable the policy on a non-production resource
Apply the reviewed policy to the non-production instance of the target system, then trigger a stopped-task scenario on purpose using a controlled test set. Confirm that the task stops at the threshold, that no further changes are written, and that the stopped state is visible to operators. The step is done when the test produces the expected stop, the test results are recorded, and the rollback steps have been rehearsed. Check that the stopped task leaves an audit trail in midPoint that shows the task, the threshold and the objects affected.
Enable the policy in production with alert checks
Enable the approved policy on the production resource during a window agreed with the system owner. Verify that a deliberate test trigger, if the owner approves one, causes a stop, writes an audit record and sends an alert to the on-call operator through the channel you have configured. Confirm the alert arrives and the operator can identify the task, the threshold and the recovery procedure from the message. The step is done when the stop, the audit entry and the operator alert have each been confirmed in production and the signed-off runbook is in place.
Recover a stopped task after review
When a threshold stops a task, the operator checks the cause with the system owner before restarting anything. The operator reviews the audit trail and the objects the task would have changed, decides whether to correct the source data, adjust the policy with another review, or skip the activity, and then restarts the task. Record the decision and the outcome in the change record. The step is done when the cause is documented, the restart or skip is authorized by the owner, and the audit trail links the stop, the decision and the resumed run.
Recovering after a stopped task without repeating the damage
When a threshold stops a task, the first job is to find out why it tripped before anyone touches the task again. Start with the source data and the mappings that feed the activity. Compare the object counts that breached the limit with what the source system should hold, and check whether a recent change caused the spike: a bulk HR update, a renamed organizational unit, a correlation rule that stopped matching, or a connector returning empty results. Review the changed mappings and expressions in the same way. The aim is to name one cause, not to assume the threshold was set too tight. Record what you found, because the same record becomes evidence if the target system was changed.
Once the cause is corrected, decide whether the stopped activity should resume, restart, or skip. Resuming continues from the last point of progress and suits cases where the data was fixed and the remaining work is still valid. Restarting reprocesses the activity from the beginning and suits cases where earlier items were processed under the faulty logic. Skipping leaves the affected activity out of the run so the rest of a composite task can finish, which is only safe when someone has confirmed the skipped items are handled another way. Under no circumstances should a restart run against unchanged source data that caused the breach, because it will reproduce the same mass change. Confirm the fix is in the data or mapping before you press run, and confirm the thresholds and simulation settings still apply to the rerun. Check the task and activity states in the midPoint user interface before you act, and follow the task management guidance in the operations topic for the exact steps in your version.
Security and operational risks of threshold settings
Threshold policies protect connected systems only when they are set at the right level, edited by the right people, and reviewed after every stop. The cards below cover the failure modes that show up most often, from policies that protect nothing to policies that block legitimate work, and the controls that keep both in check.
Thresholds set too loose
A threshold that allows a large share of accounts to change in one run will not catch a faulty mapping, a broken correlation rule or a bad source extract before it reaches the target system. Check each policy against the worst change you could realistically see from that source, not against an average day. Ask the platform team to show, for each task, how many objects a single run could disable, delete or modify before the task stops.
Thresholds docsThresholds set too tight
A threshold below the normal size of a legitimate change stops the task every time a department reorganizes, a contractor batch arrives or a source system is cleaned up. Teams then learn to override the stop without reading it, which removes the protection entirely. Measure typical daily change volumes per source and per activity before you set limits, and review stop events for a sustained period to find thresholds that fire on normal work.
Who can edit and override policies
Anyone who can change a threshold or resume a stopped task can also remove the control that stops a bad run. Restrict edit rights on task and policy objects to a small administrator role, separate from the people who run synchronization day to day. Confirm in your authorization model which roles can change threshold settings, skip activities or restart stopped work, and review those assignments on the same cycle as other privileged access.
Audit evidence of stopped runs
When a run stops, you need a record of which policy fired, which objects triggered it, what the task did next and who resumed it. Without that record, a stop looks the same as a failure and cannot be shown to an auditor or an incident reviewer. Confirm that your audit configuration captures task state changes and administrator actions, and test that you can reconstruct a stopped run from logs alone before relying on it.
Alerting and ownership of stops
A stopped task that no one is notified about leaves the source and target out of sync for as long as it stays stopped. Assign a named owner for each connected system and route stop events to that owner, with a documented response time agreed inside your organization. Check that alerts reach a monitored channel outside midPoint itself, so a stop is not visible only to the system that has stopped.
Testing changes to policies
A threshold change is a change to production identity behavior and should go through the same review as any other configuration change. Test edits in a non-production environment with a copy of recent source data, run a simulation to see which objects would be affected, and record the expected result before deployment. Keep policy definitions in version control so every threshold change has an author, a reviewer and a rollback path.
Questions teams ask before configuring midPoint thresholds
How much effort does a midPoint threshold rollout take?
The effort depends on how many tasks and activities need thresholds, how many connectors sit behind them, and how much each target system's normal change volume is understood. No effort figure is supplied for this work, so ask any provider for a written estimate built from your own task inventory. Start by listing every synchronization, import and reconciliation task that writes to a target system, then group them by connector. Each group needs a baseline of normal change counts, a threshold value agreed with the system owner, and a defined response when the threshold trips. Tasks with composite activities take longer because each activity may need its own limits. Ask the provider to show how they will count tasks, connectors and owners before quoting.
Can our own identity team set up midPoint thresholds internally?
Yes, if the team has midPoint administration skills and access to the task configuration in its environment. Threshold policies are set in the task definition, so the work is mostly configuration, testing and governance rather than code. The harder part is knowing what normal looks like for each target system, which requires close work with system owners who understand bulk changes, batch jobs and maintenance windows. Teams with a small number of connectors often manage this in-house. Teams with many connectors, tight change windows or limited midPoint experience may prefer a partner for the first rollout, then keep the configuration under their own change control. Whichever path you choose, document who approves each threshold value.
What do HR and application owners need to provide for thresholds?
Application owners provide the business context that gives a threshold meaning, and HR provides the event pattern that drives most identity changes. Application owners should describe expected bulk operations such as annual renewals, term-end batches, or mass group changes, and state which changes are never expected in a single run. HR should explain when large movements are legitimate, such as reorganizations, acquisitions or payroll cutovers, and who announces them. Both groups should agree on who may approve a paused task and who may resume it. Without these inputs, thresholds tend to be set too tight and stop normal operations, or too loose to protect the target.
Do midPoint thresholds require release 4.11?
No. Threshold policies are part of midPoint's task model, but release 4.11 adds the ability to evaluate focus-based policy rules per task activity. That allows separate thresholds for individual activities of a composite task, along with restartActivity and skipActivity actions. If your tasks are simple single-activity tasks, your existing release may cover the core need, so check the thresholds reference for the version you run. If you run composite tasks and want per-activity limits, plan for 4.11 or confirm the behavior in your current version. Note that 4.11 is listed as planned for 21 October 2026 on the releases page, so confirm its status and your upgrade path before you design around it.
How can we test midPoint thresholds without touching target systems?
Test against a non-production copy of the connected system, and use simulation mode before any live run. Create a staging environment with a representative data set, configure the same task and threshold values there, then run controlled changes to confirm that the task stops at the expected point. Simulation lets you see what a task would change without writing to the resource, which is useful for checking whether a threshold would have tripped on the last real run. Keep a written test script with the expected outcome for each case, including the recovery path after a stopped task. Confirm that the staging connector cannot reach production endpoints before you start.
What would a consultant deliver, and what stays with our team?
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside your infrastructure, and midPoint threshold work falls within that scope. A typical written scope covers the task inventory, threshold design per task and activity, configuration in your environment, simulation runs, recovery procedures and operator documentation, agreed in writing before work starts. Your team keeps ownership of the threshold values, approval decisions, change windows and the production connector credentials. Your team also decides who responds to a stopped task and how often thresholds are reviewed. Ongoing tuning and upgrades can be handled under a retainer if you want continued support. Ask any provider to list each deliverable and each responsibility that stays with you.
What support does midPoint itself offer for production issues?
Evolveum offers Product Support subscriptions for resolving product bugs, with an 8x5 next-business-day or 24x7 SLA, and Platform Subscriptions that add feature development and roadmap influence. The support page lists no prices, so request a quote for the tier that matches your operating hours. Support subscriptions cover the product, not your threshold values or your change decisions. Pair the subscription choice with your own response procedure, because a 24x7 SLA does not help if nobody is authorized to resume a stopped task. Confirm the current terms directly with Evolveum before you commit.
How a threshold decision flows during a sync run
The run starts when the task is launched and reads source data, then counts outcomes for each activity as it processes accounts. The threshold policy is evaluated against those counts, and the result branches to continue, stop, restart the activity or skip the activity. Stopped runs go to operator review before recovery, so check the counted outcomes and the policy scope for each activity before resuming. The exact action names and evaluation points should be confirmed against the thresholds documentation for your midPoint version.
Threshold branches for a sync run, ending in operator review and recovery.
Where to read the official threshold documentation
Start with the Evolveum thresholds reference, which is the primary source for how midPoint task thresholds are defined and evaluated. Read it for the policy rule structure that counts or measures changes during a task run, the actions that can be taken when a limit is crossed, and how thresholds attach to a task. Use it when you write the threshold policy for a reconciliation or import task, because it describes the building blocks you will reuse in each task definition. Keep the page open while you run the simulation step described earlier, so you can match each setting in the documentation to the object it changes in your environment. Note any action the reference describes as stopping a task, since that behavior determines what your operators see first when a limit is hit.
The midPoint 4.11 release notes are the second reference, and they matter most if you run or plan to run composite tasks. They state that focus-based policy rules can be evaluated per task activity, so each activity of a composite task can carry its own threshold, and they describe the restartActivity and skipActivity actions. Read them before you decide whether one threshold for the whole task is enough or whether separate limits per activity protect your target system better. If you run an earlier release, the notes will show which of these capabilities you do not have. Confirm every configuration key, action name and default against the documentation for the exact midPoint version you have installed, and check the release page for your version's support dates before you rely on either reference in a change plan.

