Finding and cleaning up orphaned accounts with midPoint

A planning guide to detecting accounts without owners on connected systems with midPoint, choosing reactions per situation, and removing them in controlled stages.

On this page

Finding and cleaning up orphaned accounts with midPoint starts with knowing what you hold

Before you delete anything, you need an accurate inventory of the accounts your target systems hold and which of them still belong to a current person. In midPoint terms, an orphaned account is a projection on a resource that has no linked owner after correlation. The account exists on a connected system, but no midPoint user is matched to it, so nobody in your identity records is accountable for it. This usually happens for one of three reasons: a leaver was processed without removing every downstream account, a system was migrated or connected after people already held local accounts, or an application was never wired to HR-driven provisioning at all. Audits tend to surface these accounts first, but leaver gaps and migrations produce most of them in practice.

The difficulty is that not every unowned account is stale. Service accounts, shared mailboxes, batch users and break-glass accounts often have no human owner by design, and a naive cleanup that treats them as orphans can stop a production job at the worst moment. Before you configure any reaction, agree with application owners on how each resource's non-personal accounts are identified, for example through naming patterns, attributes or a maintained list, and confirm with each owner what the account does. Check how your chosen connector reads account attributes and whether the attributes you rely on are populated consistently across the target system. Also confirm which correlation rules you already run, because a weak rule will make healthy accounts look orphaned.

This page covers four steps in order: detecting orphaned accounts, choosing a reaction for each situation, marking accounts that should be correlated later or left untouched, and running cleanup in stages. midPoint 4.11 adds quick actions to apply Correlate later, Do not touch and Invalid data marks directly from simulation results, which lets you review a proposed outcome before you commit a mark to an account (see the midPoint 4.11 release notes). Confirm that your planned version includes this feature before you design the review workflow around it, and check the release notes for any behavior that differs from your current version.

How to detect orphaned accounts step by step

This sequence connects a target system to midPoint, loads its accounts as shadow objects, lets correlation attempt to match each one to a person, and produces a reviewed list of accounts that still have no owner. Each step ends with a check so the list can be trusted before anything is changed.

  1. Confirm the connector and resource configuration

    The engineer who owns the target system configures a resource in midPoint with the right ConnId connector, such as LDAP, Active Directory, Microsoft Entra ID, SCIM2 or a database table connector, depending on what you run. Test the connection and confirm the connector can authenticate with a read-only service account scoped to the full account population. The step is done when the connection test passes and the schema lists the object classes you expect, including the attributes you will use for matching.

  2. Run an import to load shadow accounts

    Run an import task on the resource so midPoint reads existing accounts and creates a shadow object for each one without changing the target system. Use a simulation or a dry run where your midPoint version supports it, so the import reads data without making changes. The step is done when the task finishes with no errors and the shadow account count is recorded for the next check.

  3. Check the imported population against the source

    Compare the number of accounts midPoint loaded with the number the target system reports for the same object class, using an export or the administrator's own query. Look for gaps caused by paging limits, filters on disabled or service accounts, or attributes the service account cannot read. The step is done when counts match, or when every difference has a documented reason and the connector filter or permissions are corrected.

  4. Let correlation attempt to link accounts to users

    Run the correlation rules configured for this resource against the shadow accounts, usually through a reconciliation task that evaluates each account against the user population. Accounts that match an identity with sufficient confidence become linked, and those that do not stay unlinked with a situation recorded. Ask the identity team to confirm which correlation rules and thresholds apply, since these decide what counts as an owner. The step is done when every shadow account has a recorded situation.

  5. Review the unlinked and unmatched results

    Open the list of shadow accounts in the unlinked or no-owner situations and group them by pattern, such as service accounts, shared mailboxes, former employees or naming gaps. Take a sample and confirm each group with the application owner before deciding what happens next. The step is done when each group has a named reviewer and the team agrees which records are true orphans.

  6. Record the findings as an auditable baseline

    Export the reviewed list with the resource name, account identifier, situation, run date and reviewer, and store it in the change record for the cleanup. Keep the import and reconciliation task logs with it so the population count and correlation results can be reproduced later. The step is done when the baseline is saved and the next reconciliation run is scheduled to compare against it.

Which reaction fits which situation

A linked account is already bound to a midPoint user through a shadow link, so it is not an orphan in the strict sense. It still needs a look when the owner has changed, been deactivated, or when the account sits on a system whose ownership was never recorded. The likely cause is a healthy correlation that has since drifted, for example after an HR attribute changed or a manual link was made by an administrator and never reviewed. The reviewer should confirm the link still points to the correct person, that the person's status matches the account's status, and that no other account on the same resource points to the same identity.

  • Link validity: Check that the owner's HR-driven status is still active and that the account's enabled state matches the expected lifecycle.
  • Duplicate links: Confirm that two accounts on one resource are not linked to the same person by mistake.
  • Manual links: Review links created by hand, since they bypass the normal correlation rules.
  • Projection state: Compare the account's attributes with what midPoint would project from the current user.
  • Evidence: Record who reviewed the link and the date, so the decision can be traced later.

Before changing anything, verify the link against the authoritative source, not against the target system's own attributes alone.

Configuration options for orphan handling and when each fits

This table compares the ways midPoint can react to an account with no owner, from review-only simulation to disabling or deleting accounts through a reviewed task. Read each row for the situation it suits and the risk it carries, then confirm the exact behavior in the midPoint version you run, because options and their labels change between releases.

OptionWhat it doesWhen it fitsMain risk
Simulation-only reviewShows which accounts would be treated as orphaned and what action would follow, without changing anything on the target system.First pass on a new connector or a large target system, where the team needs to see the result before any change.Results can look reassuring while the underlying correlation rules are still wrong, so reviewers may approve the wrong set.
Correlate later markFlags an account so that it is set aside for a later correlation attempt instead of being acted on now.Accounts whose owner may exist in a source that has not loaded yet, or where matching needs a human decision.Marked accounts can accumulate and keep access that nobody reviews unless someone owns the queue.
Do not touch markExcludes an account from automated reactions so that midPoint leaves it alone.Service, break-glass and shared accounts that have no HR owner but must keep working.Exclusions get forgotten over time and can hide real orphans, so each mark needs a documented reason and owner.
Invalid data markFlags an account whose data is inconsistent so that it is reviewed rather than processed as a normal case.Accounts with malformed attributes, duplicate identifiers or values that the mappings cannot interpret.Fixing the data at source may be needed, and a mark alone does not remove the access the account already has.
Disable through a reviewed taskDeactivates the account on the target system after the reaction is approved and scoped.Orphans that are clearly unused and where a reversible step is preferred over deletion.Disabling can still break scheduled jobs, integrations or service dependencies that use the account.
Delete through a reviewed taskRemoves the account from the target system after the reaction is approved and scoped.Confirmed orphans with no retention need and a tested recovery path from backup.Deletion is hard to reverse, and removing an account can also remove its owned data or audit trail on the target.
Manual caseCreates a work item for an administrator to investigate and decide each account.Small populations, high-privilege accounts or systems whose owners must confirm before any change.Manual effort grows with population size, and slow cases can leave access open for long periods.

When to mark accounts to correlate later or leave them untouched

Use correlate later when an account has no clear owner today but the evidence may improve, and use do not touch when the account must stay exactly as it is regardless of what the matching logic finds. The two marks answer different questions. Correlate later says the account needs another matching pass once HR data, a missing attribute or a manual case is resolved. Do not touch says the account is out of scope for reconciliation actions, so midPoint should record it without disabling, deleting or changing it. Choose the mark by asking whether the account is waiting for information or is protected for a reason that information will not change, such as a service account or a shared mailbox.

Marking matters because it preserves evidence. An unowned account that is deleted or silently skipped loses the trail that explains why it existed, and a rerun of the same reconciliation will often produce the same uncertain match and the same wrong guess. A mark records the decision and stops the cycle of repeated wrong matches. In midPoint 4.11, quick actions let you apply Correlate later, Do not touch and Invalid data marks directly from simulation results, which makes it practical to mark a batch of accounts after reviewing what a cleanup would do. Confirm in your own test environment how these marks interact with your correlation rules and synchronization tasks before you rely on them in production.

A mark without an owner and a review date becomes permanent exemption by default. Assign each marked population a governance owner, usually the application owner or identity team lead, and set a review date on the campaign or ticket that produced the mark. At each review, the owner should either resolve the account, extend the mark with a documented reason, or hand the account to a manual resource or ticket workflow. Ask your team to report the count of marked accounts by age and by application. A growing count of old Do not touch marks is an early sign that exemptions are being used to avoid decisions.

Cleaning up without breaking production

Orphaned account cleanup is one of the few midPoint tasks that removes access rather than granting it, so a wrong decision can lock out a live user or break a service. The cards below pair each common failure with the control that prevents it, and most of those controls are applied before any account is changed.

Wrong correlation deleting a live account

An account that fails to match its owner in midPoint can look orphaned even though a person still uses it. Before any reaction is enabled, run the orphan reaction in simulation against a copy of production data and review every account it would touch. Check the correlation rules against known edge cases such as renamed staff, shared surnames and accounts created by hand. Where a match is uncertain, mark the account to correlate later instead of guessing.

Service accounts mistaken for orphans

Service and integration accounts usually have no HR record, so a naive orphan rule would flag every one of them. Build an explicit exclusion list or a classification attribute, such as a service archetype or a naming convention, and make the rule exclude those accounts before any reaction runs. Ask each application owner to confirm which accounts are machine identities and who owns them. Mark anything unclear as do not touch.

Runaway task volume

A single misconfigured import or reconciliation run can flag thousands of accounts in one pass. Set threshold policies on the task so that it stops when the count of affected accounts passes an agreed limit, and set that limit from the size of the normal orphan population measured during simulation. Schedule the first real run in a quiet window and watch the task output before the next run starts.

Dependent group and entitlement loss

Removing an account can silently remove its group memberships, shared mailbox rights or application roles that other people depend on. Before disabling or deleting, list the entitlements and associations attached to each orphaned account in the target system and check whether any of them grant access to others. Reassign shared resources to a named owner first, then clean up the account.

Staged disable before delete

Deleting an account in a target system is hard to reverse, and some systems cannot restore the same identifier. Use a staged path: mark the account, disable it for a defined holding period, notify the last known owner and the application team, and only then delete. Confirm with the application owner how long disabled accounts must be retained and what their recovery procedure requires.

Missing audit evidence

Auditors and incident responders will ask who decided that an account was orphaned, why it was disabled, and who approved the removal. Keep the simulation results, the reaction chosen, the threshold values, the exclusions applied and the approver for each batch. Confirm with your compliance team which records must be kept and for how long before the first cleanup run is scheduled.

How detection, review and cleanup connect

The flow starts with a resource import that pulls accounts from a connected system into midPoint. Correlation then tries to match each account to a person, and accounts that match no one land in an unlinked state. Simulation results show what each candidate action would change, and an administrator chooses one of three paths: mark the account to correlate later, mark it do not touch, or run a reviewed disable or delete task. Every decision should leave an evidence record. Check that the review step happens before any destructive task runs.

Orphaned account detection, review and cleanup paths in midPoint.

Security and operational considerations for orphan cleanup

Orphan cleanup changes live accounts on systems people depend on, so the controls matter as much as the matching logic. The cards below cover who may act, how credentials and decisions are protected, and how a cleanup run can be reviewed, scheduled and reversed.

Restrict who can mark and run cleanup

Marking an account as Do not touch or Correlate later, and starting a reconciliation task that acts on orphans, both change what happens to live accounts. Define midPoint authorizations so that operators can view simulation results and apply marks, while only a small set of administrators can start tasks that remove or disable accounts. Check that this split holds in the GUI and through the REST API, since both expose the same actions. Confirm the exact authorization actions in your midPoint version before writing roles for them.

4.11 release notes

Protect connector credentials

Each connector to a target system holds a service account with rights to read and change accounts there, so it is a high-value secret. Store connector passwords encrypted under midPoint's configured keys, limit the service account to the operations cleanup needs, and avoid giving it rights to delete accounts if disabling is sufficient. Review which resource connections can reach orphan-handling tasks, because a misconfigured resource can widen the blast radius of a cleanup run.

Log decisions for auditors

An auditor will ask why an account was disabled, who decided, and on what evidence. Make sure the audit trail records each mark, each task run and each resulting change on the resource, and keep those records in a repository you back up and retain under your own policy. Agree a standard reason text for each mark, such as system owner unknown or service account pending review, so the log explains the decision without reconstructing it from memory. Test that a sample orphan can be traced from detection to outcome.

Schedule reconciliation outside peak hours

Reconciliation reads every account on a target system, which adds load and can slow logins or batch jobs on systems that are already busy. Schedule orphan detection runs for low-usage windows agreed with the owners of each target system, and confirm the window with each system's operations team. Start with import-only runs that report candidates, then move to runs that change accounts once the candidate counts look right. Coordinate with synchronization thresholds so a cleanup run does not overlap with other heavy tasks on the same resource.

Keep a rollback path

Disabling is usually reversible, deleting is not, so structure cleanup so that the first action on an orphan is a reversible one. Keep a dated export of the affected account attributes and group memberships before any change, and document how each target system restores a disabled account. Test a restore on a non-production copy before the first live run. Agree with the application owners how long disabled accounts stay in place before any deletion is considered.

Review midPoint hardening separately

The controls above depend on the wider midPoint platform being hardened, including administrator access, network exposure and patching. Treat the midPoint security hardening topic as the next step after this design is agreed, and use it to check the platform configuration that these controls rely on. Ask your DeployOpen contact to confirm the scope of that review before the cleanup project starts.

Questions buyers ask about orphaned account cleanup with midPoint

How long does orphaned account cleanup with midPoint take?

No duration is fixed in advance, because the time depends on how many target systems hold accounts, how cleanly those accounts can be matched to people, and how quickly system owners can review what the scan finds. The first phase usually goes to reading the accounts that exist on each connected system and agreeing which ones are in scope. The second phase is designing the reaction for each situation, such as marking an account to correlate later or leaving it untouched. The last phase is the controlled cleanup itself, run with simulation and reviewed batches. Ask any partner to give you the phases, the reviewers needed in each phase, and the written milestones before work starts.

What does orphaned account cleanup cost, and what drives the cost?

The cost comes mainly from people's time: the implementation effort to configure detection and reactions in midPoint, the analysis of each connected system, and the review time from system owners and approvers. The main drivers are the number of resources in scope, how many accounts each one holds, how complex the correlation rules are, and how many reviewers can take part. Costs recur only if you keep running scans or buy ongoing support. Any quote should break the price into these components and state what is one-time and what is recurring. DeployOpen does not publish prices, so ask for a fixed-scope quote based on your written scope.

Can our own team clean up orphaned accounts without a partner?

Yes, a capable internal team can do this if it has midPoint experience, access to each target system's administrators, and time for careful review. The work requires understanding correlation, connector behavior, and how each system represents accounts, which is where most mistakes happen. Teams that lack recent midPoint operations experience often underestimate the review work and the rollback planning. A practical test is whether your team can explain, for each connected system, which accounts would be affected by a run and who approves that result. If that answer is unclear, a partner can help with the design and first cleanup cycle while your team builds the skills to run later scans.

What does the work need from our side?

The work depends on four groups of people and inputs. System owners must explain what each target system is for and whether an account without a matching person is expected. Your HR or identity source owners must confirm which records are authoritative. Approvers must decide, in writing, what happens to accounts that are flagged. The project also needs sample data exported from each target system, including account lists and recent login or activity information where available. Agree on who can approve deletions and who receives the review queues before the first scan, because delays in these decisions usually extend the schedule more than the technical work does.

Is midPoint open source, and are paid support options available?

Yes. midPoint is an identity governance and administration platform developed by Evolveum, and its repository is licensed under the European Union Public License (EUPL-1.2) with Apache 2.0 as a secondary license. Evolveum states that midPoint has no enterprise edition and describes the project as open source, not open core. Evolveum funds development through subscriptions, training and professional services. Its Product Support subscriptions cover resolving product bugs with an 8x5 next-business-day or 24x7 SLA, while Platform Subscriptions add feature development and roadmap influence. The support page lists no prices, so confirm current terms directly with Evolveum. You can read the licensing details in the midPoint GitHub repository.

How do we avoid deleting live accounts during cleanup?

Start with reports and simulation, never with deletion. The safest pattern is to classify accounts into situations first, review the results with system owners, and apply only reactions that the owners approved. In midPoint 4.11, quick actions can apply Correlate later, Do not touch and Invalid data marks directly from simulation results, which helps keep reviewed decisions in the tool rather than in spreadsheets. Set threshold policies on synchronization tasks so a misconfigured run stops before it changes many accounts. Disable or archive before deleting, run cleanup in small batches, and keep a documented restore path for each target system. Confirm each of these controls with your change process before the first live run.

What should we check before approving the first cleanup run?

Confirm that every reaction in the run has a named owner and a written approval. Check that the simulation output matches the list the system owners reviewed, including the count of accounts per situation. Verify that threshold settings will stop the task if the number of changes exceeds what the owners expected. Confirm that the accounts marked for correlation later have a clear next step, and that accounts marked as do not touch are documented with a reason and a review date. Finally, confirm that backups of the target system and the midPoint repository are current and that someone can restore them. A short checklist signed by the owners is more useful than a long technical document.

How DeployOpen scopes and delivers orphan account cleanup

DeployOpen starts orphan account cleanup with a written scope agreed before any work begins. The scope names each connected system in play, the account types to be examined, the owners who must confirm decisions, and the reactions that are permitted for each situation. Most engagements are fixed-scope, so deliverables and timelines are settled on paper first. Before the work starts, the team should confirm which target systems will be read, which service accounts midPoint will use to read them, and whether any system is off limits for changes during the engagement. These decisions shape the quote more than any other input.

Delivery follows a simulation-first pattern. DeployOpen configures the midPoint resources, sets up the correlation and classification rules for unowned accounts, and runs simulations so that the proposed reactions can be reviewed before anything is changed. Accounts are then marked as correlate later, do not touch, or invalid data where a human decision is needed, and each mark is recorded with the reason and the approver. Where the midPoint version in use provides quick actions from simulation results, as the 4.11 release notes describe, the same marking workflow can be applied directly from that view. Each decision, threshold setting and exception is documented, so the client keeps a record of what was changed, who approved it, and why.

DeployOpen implements, hardens and supports self-hosted open-source platforms inside the client's own infrastructure, and the cleanup work is delivered in that same environment. Hardening covers the midPoint deployment and the connector accounts that touch target systems. After handover, ongoing support, upgrades and periodic re-runs of orphan detection are available as a retainer, which suits organizations whose connected systems keep changing. Clients should ask for the handover documentation, the list of retained decisions, and the retest plan in the written scope before signing.

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.