When teams automate midPoint with the REST API
An identity team often wants HR, ticketing or application systems to drive midPoint without someone copying data by hand. The REST API is the supported external interface for reading, creating and changing midPoint objects and for triggering synchronization. Teams reach for it when an event happens outside midPoint (a hire, a transfer, a ticket approval or a contractor's end date) and the change should reach midPoint immediately rather than waiting for the next scheduled import or reconciliation task.
The connector-only and task-only approaches still cover many cases. If an authoritative source can be read on a schedule through a ConnId connector, a scheduled import or reconciliation task may be enough, and it keeps the logic inside midPoint where administrators already monitor it. Use the API when the trigger is an event, when another system must query midPoint state, or when a workflow needs to create or modify objects in a controlled sequence. Confirm the exact resource and object operations your version supports in the Evolveum REST API documentation before committing to a design.
Be clear about what the API does not do. midPoint is an identity management system, not an access management or SSO server, and it does not implement the server side of OAuth2, OpenID Connect or SAML. Authenticating calling systems to the API is therefore a separate design decision. Decide which service accounts or API users call midPoint, what roles and authorizations they hold, how their credentials are stored and rotated, and how their activity is logged and reviewed before any integration goes live.
What the midPoint REST API covers in practice
Most teams automating midPoint start with the same four areas: reading and writing core objects, controlling tasks, and pushing change events to a resource. These areas share one authorization model and one object model, so a design decision in one area, such as which account runs the integration, affects all of them.
Object reads and writes
Users, roles, organizations and resources are addressed as objects with OIDs, and most automation starts with GET requests to find them and POST or PATCH requests to change them. Writes go through the midPoint model layer, so mappings, policies and approvals still run when an API call changes an object. Check which object types your integration account can read and modify, and test a change in a non-production environment before you point a pipeline at production data.
REST API referenceTask control
Reconciliation, import and recompute runs are tasks that an external scheduler can start, suspend, resume or inspect through the same interface. Automating task control lets a pipeline trigger a reconciliation after a batch of HR changes, then poll task status before reporting success. Confirm which task operations your version exposes, and decide how the pipeline handles a task that reports errors rather than completing.
Change notification with notifyChange
The notifyChange operation tells midPoint that something changed on a resource, so midPoint can process that change without waiting for a scheduled reconciliation. This suits event-driven sync from a source system that already emits change events. In midPoint 4.11, the operation can address a shadow by its identifiers, so the shadow OID is no longer required. Confirm that your version supports this addressing before you remove OID lookups from the integration.
4.11 release notesResource and shadow inspection
Resources define how midPoint connects to target systems, and shadows hold midPoint's view of accounts on those systems. Reading resource definitions and shadows helps an integration confirm that a connector is reachable and that an account exists before it sends a change. Treat shadow data as a cache of the target system, not as the source of truth, and document which fields the integration trusts.
Authorization and API user scope
Every REST call runs as an identity with roles in midPoint, so the API user's authorizations define what automation can change. Create a dedicated service account with only the object types and actions the pipeline needs, rather than reusing an administrator account. Record which account performs each call, because midPoint audit records will attribute changes to that identity.
Version-dependent endpoints
The exact endpoint list, request formats and supported operations depend on the midPoint version you run, so a script written for one release can fail on another. Use the Evolveum REST API reference for the version you have installed, and retest each integration after every upgrade. Keep a short compatibility matrix that lists the midPoint version, each endpoint used and the test that proves it still works.
How notifyChange drives event-driven sync
The notifyChange operation tells midPoint that a resource has changed so it can process that change right away instead of waiting for the next scheduled reconciliation. Without it, an HR termination or a ticket closure in a connected system may sit unprocessed until a periodic task runs, which can leave access in place for hours after the business event. With it, your integration sends a small signal per change and midPoint runs a targeted synchronization for the affected account.
The flow runs in four steps. An HR system or ticketing tool emits an event, such as a hire, transfer or leaver record. Middleware, a workflow tool or a webhook handler maps that event to the midPoint resource and the account it concerns, then calls the REST API. midPoint looks up the matching resource shadow, which is its internal representation of the account on the target system, and queues a sync run for that shadow. The mappings and correlation rules then decide what changes on the midPoint user and what is pushed back to the resource. Check that your event source carries a stable identifier for the account, because the match between that identifier and the shadow determines whether the change is applied at all.
Version matters for the design. In midPoint 4.11, the notifyChange operation can address a shadow by its identifiers, so the shadow OID is no longer required. Earlier versions expect the OID, which means your integration must first look it up. Confirm which version your deployment runs before you design the middleware around either approach, and read the midPoint 4.11 release notes to see whether the identifier-based form fits your resource. Test the call against a non-production resource first, and keep scheduled reconciliation running as a safety net for changes that events miss.
An external event reaches midPoint through one authenticated call
A change in a source system is picked up by an integration service running in your network, which sends a request to midPoint's REST endpoint as a dedicated API user. That authentication is the trust boundary: midPoint accepts the call only if the API user is authorized for the operation. midPoint then uses notifyChange to locate the affected shadow, starting from the identifiers in the event. Check that the API user can perform only this operation, and that the shadow lookup finds exactly one account before midPoint syncs the change to the target system.
Event flow from a source system to a target system through midPoint's REST API.
Choosing between notifyChange, scheduled tasks and direct object calls
This table compares the three ways to push or pull identity changes through midPoint's REST API: event-driven notifyChange, scheduled reconciliation or import tasks, and direct create and modify calls on objects. Read each row as a trade-off the team accepts, and use the failure handling row to size the caller-side code you must write before choosing a path.
| Criterion | Event-driven notifyChange | Scheduled reconciliation or import tasks | Direct create and modify calls |
|---|---|---|---|
| Latency | Changes reach the target shortly after the source event arrives | Changes appear at the next scheduled run, so delay equals the schedule interval | Changes apply as soon as the call returns, but only for the object you address |
| Load on midPoint | Proportional to event volume, with bursts when a source sends many events | Periodic spikes while a task processes the full or changed population | Proportional to your calling application's request rate |
| Failure handling | Caller must retry lost or rejected notifications; a missed event leaves drift until a reconciliation catches it | midPoint tracks task errors and can rerun later; a scheduled pass often repairs earlier misses | Caller must check each response, handle partial failure and retry idempotently |
| Drift detection | Does not find drift on its own; pair it with periodic reconciliation | Finds drift between midPoint and the resource, including changes made outside midPoint | Does not detect changes made directly on the target system |
| Caller-side code needed | Event listener, payload mapping and a retry queue | Minimal; mainly task configuration and monitoring of task results | Request builder, error handling, idempotency keys and retry logic |
| Access to midPoint objects | Addresses shadows by identifiers from 4.11 onward, so no shadow OID is required | Operates on resource and task configuration rather than per-object calls | Needs object OIDs or search filters and the correct authorization for each object type |
| Best fit | Joiner, mover and leaver events from a system of record that can emit them | Nightly or periodic alignment, first loads and catching changes made outside integrations | Single-object corrections, administrator tooling and workflows that create or change one identity at a time |
| Team skills needed | Integration engineers who can run message handling and monitor a queue | Identity engineers who understand correlation, synchronization and task scheduling | Developers comfortable with REST authentication, error paths and API user permissions |
Setting up API access in your midPoint environment
This sequence confirms the midPoint version and its matching REST API reference, creates a locked-down service account, sets up authentication, and proves read and event-driven calls work on a non-production resource before any production use. Each step ends with a check so you know it is safe to move on.
Confirm the midPoint version and REST reference
Start by recording the exact midPoint version running in your non-production environment, including whether it is a long-term support or feature release. Use the midPoint releases page to confirm that version is still supported, and open the REST API reference for that same version, since endpoints and behavior differ between releases. If you plan to use notifyChange with shadow identifiers instead of shadow OIDs, check the 4.11 release notes first, because that addressing option is documented from 4.11 onward. Done means you have a written version number and a matching reference link saved with your change record.
Create a dedicated service account with minimum rights
Create a separate user object for each integration, and do not reuse the midPoint administrator account or a person's login. Assign it only the role and authorizations needed for the operations it will perform, such as reading specific object types for the read-only tests or triggering change notifications for one resource. Keep the account out of general access request and certification flows so that its activity is easy to separate in audit logs. Done means the account exists, its role assignments are documented, and a review of its authorizations shows no administrative rights it does not need.
Choose and configure the authentication method
Select the authentication method that the installed release supports for REST clients, and confirm it with the release documentation rather than assuming a method from an earlier version. Configure the credential for the service account, store it in your secrets manager, and keep it out of scripts, repositories and shell history. Make sure transport uses HTTPS on the midPoint endpoint and that the client validates the server certificate. Done means a simple authenticated request returns an HTTP success status and the response contains only the object type you asked for, while an request with a wrong credential is rejected.
Run read-only calls first
Before any write or notification call, issue read-only GET requests against objects that the service account is allowed to see, such as a known user or a resource definition in the test environment. Confirm the response format, pagination behavior and the fields returned, and check that the account cannot read objects outside its intended scope. Record the request and response shape in your integration notes. Done means the read calls return expected objects, and an attempt to read an object outside the account's scope is refused or returns nothing.
Test a single notifyChange on a non-production resource
Choose one account on a non-production resource connected to midPoint, and send a single notifyChange request that describes a change on that account. Address the shadow by its OID, or by its identifiers if your release supports that addressing, and state the resource and object class clearly in the request. Send only one request so that any unexpected result is easy to trace. Done means the request is accepted and you can move to verification.
Verify the shadow and sync outcome in logs
Inspect the shadow for the account to confirm that midPoint recognized the change and that the attributes match what the source reported. Then review the midPoint logs for the operation, looking for the sync decision, the correlation or matching result, and any resource error. Use the logging level for the relevant component only for the duration of the test, and reset it afterward to avoid log floods. Done means the shadow reflects the change, the log shows a successful synchronization outcome, and any warnings are understood and recorded.
Document the approved setup and repeat before production
Write down the midPoint version, the REST reference used, the authentication method, the service account's authorizations, the tested calls and the results from the verification step. Have the owner of the midPoint environment review the record and approve it. Repeat the same sequence in production only after the change has been reviewed, and start with read-only calls again, because the production configuration may differ. Done means a signed-off record exists for each environment and the production tests have been run in the same order.
Authentication choices for API clients
Integration services that run in the same network zone as midPoint, such as an HR feed processor, a ticketing hook or a provisioning orchestrator, are usually the highest-volume callers and the ones most often left running unattended. Their authentication should be a dedicated service identity, not a shared administrator account, so that its activity can be traced and its permissions limited to the operations it needs. Confirm in your midPoint version which authentication methods the REST interface accepts for service callers and whether they can be restricted to specific network sources.
- Dedicated service account: Create one midPoint user per integration with an authorization role limited to the object types and operations it actually performs.
- Secret storage: Keep the credential in your secrets manager or the service's own protected store, never in source control or a shared configuration file.
- Rotation path: Confirm how a credential is rotated without a midPoint outage and who owns the rotation procedure.
- Network scope: Confirm that the API endpoint is reachable only from the integration zone and the load balancer path in front of your nodes.
- Audit trail: Check that actions taken by the service identity appear in midPoint's audit records under that identity.
Before go-live, test the service identity against a non-production instance and confirm it cannot read or change objects outside its role.
Scripts run by administrators, such as nightly reports, bulk corrections or diagnostic queries, are the most likely place for a privileged credential to end up in a shell history, a cron file or a personal workstation. These callers are often run by people who also hold administrative rights in midPoint, so the main risk is over-privilege and credential reuse rather than external attack. Separate scripted access from personal administrator logins and confirm how the method you choose behaves when a person leaves the team.
- Separate identity: Use a named script account rather than the personal administrator account, so the audit trail distinguishes manual changes from scripted ones.
- Least privilege: Grant only the roles the script needs, and review them when the script's purpose changes.
- No inline secrets: Read the credential from an environment variable injected at runtime or from a secrets manager, and keep it out of command lines that appear in process listings.
- Scheduler access: If a job scheduler runs the script, confirm who can read its stored credential and restrict that access.
- Offboarding: Document which script identities exist and who owns each, so access can be revoked when an owner leaves.
Confirm with your midPoint version how long a credential remains valid and whether it can be disabled without deleting the account.
External SaaS callers are products outside your network that send requests into midPoint, for example a cloud service that pushes identity events. They cross your trust boundary, so the decision here is less about convenience and more about what is exposed if a credential leaks. Because midPoint does not act as an access management or SSO server, an external caller cannot rely on midPoint to issue standard tokens for it, so the authentication arrangement must be planned with the calling vendor and your own gateway or network controls. Confirm exactly what the vendor supports before committing to a design.
- Inbound path: Decide whether the vendor reaches midPoint directly or through a gateway or reverse proxy that you operate and monitor.
- Narrow exposure: Confirm that only the required endpoints are published externally, and that administrative endpoints stay internal.
- Vendor credential handling: Ask how the vendor stores, rotates and revokes the credential you issue to them.
- Source restriction: Where the vendor publishes fixed source addresses, confirm whether you can restrict inbound access to them.
- Contract and review: Record the data the vendor may send and receive, and review the arrangement when the integration changes.
Ask the vendor for written documentation of its outbound authentication behavior before you open any external path to midPoint.
Securing API users and the endpoints they call
The REST API can read and change identities, roles and resources, so every API user is a privileged path into midPoint. The cards below cover the failure points that usually matter most, and each one connects to a control you can verify before the integration goes live.
Over-privileged service accounts
An integration account often starts with broad rights so the first build works, and those rights are never narrowed. Map each integration to the specific object types and operations it needs, such as reading users or triggering notifyChange, and remove administrator-level roles. Check the effective authorizations of the account in the midPoint interface, not only the role it was assigned. Use one account per integration so a compromised pipeline cannot reach unrelated systems.
REST API docsShared credentials across integrations
When several scripts or pipelines use the same API user, you lose the ability to tell which process made a change and to revoke one without breaking the others. Issue a separate identity for each consumer and rotate its credential on a schedule you define. Confirm how your chosen authentication method is configured for API calls and who holds the password or token. Shared accounts also make audit records harder to attribute during incident review.
Endpoints exposed to the public internet
midPoint's REST endpoints should not be reachable from the public internet by default. Place the API behind an internal network path, a reverse proxy or a VPN, and restrict which source addresses can reach it. Review the network exposure guidance in the midPoint security hardening topic and test that unauthenticated requests are refused from outside your trusted network. Also confirm that the management interface and the API are not exposed on the same ports without separate controls.
Unaudited changes made through the API
Changes submitted through the API are still changes to identity data, so they need the same traceability as changes made in the user interface. Confirm that audit logging records the API user, the operation and the target object for every write. Test a sample change from each integration and check that the record appears in the audit store your compliance team reviews. Gaps here often show up only during an access review, so verify them before go-live.
Secrets stored in integration code
Passwords and tokens for the API user often end up hard-coded in scripts, CI configuration or pipeline definitions, where they are copied into repositories and logs. Keep the credential in a secrets store that your platform team controls, inject it at runtime, and restrict who can read it. Scan repositories and build logs for the credential pattern as part of the release check. Also rotate the credential immediately if a developer who had access leaves the team.
Questions teams ask before automating midPoint
What drives the effort of automating midPoint with the REST API?
The effort is driven mainly by the number of event sources, the error handling you need, the test environments available and how often you will upgrade midPoint. Each source system that sends change events adds a payload format, a mapping to midPoint objects, and a set of failure cases to handle. Error handling covers retries, dead-letter queues, and what happens when a notifyChange call targets an account that no longer exists. A test midPoint and a test target resource add setup work but reduce risk. Ask any partner for a quote that lists each event source, the error paths, the environments and the upgrade assumptions separately.
Can our internal engineers build the midPoint REST integration themselves?
Yes, if they have experience with Java-based identity systems, HTTP APIs and the midPoint object model. The REST API uses XML, JSON or YAML payloads and an authenticated user with limited permissions, so an engineer must understand how midPoint accounts, shadows and resources relate. Teams often underestimate the time needed to learn midPoint's data model and to test against a non-production instance. Check whether your engineers have built an integration against an identity API before, and whether someone on the team can own the integration after go-live.
What do we need to provide for an automation project?
You need to provide a test resource that behaves like the production target, a named API owner who decides how the integration authenticates and what it may change, and a change approval path for any new API user or authorization. You also need access to the source system that emits events, a non-production midPoint to test against, and a contact who can confirm which attributes are authoritative. Without a test resource, correlation and deprovisioning behavior can only be checked in production, which is the riskiest place to find a defect.
How long does an automation project take?
Duration depends on the scope: how many event sources exist, how complex each mapping is, how many error cases must be handled, and how many environments you need to test through. This page does not estimate a timeline because no researched figure supports one for your environment. Ask for a schedule in the written scope that ties each milestone to an event source and to a test exit criterion, and confirm which parts depend on your teams, such as test resource access and approvals.
How should we handle differences between midPoint versions?
Check the version you run before writing integration code, because endpoints and parameters can change between releases. For example, midPoint 4.11 allows the notifyChange operation to address a shadow by its identifiers, so the shadow OID is no longer required. Integrations built for older releases may still send OIDs, so test both behaviors during an upgrade. Plan upgrades across the long-term support and feature release lines, read the release notes for each step, and rerun your integration tests on the target version in a non-production environment before you upgrade production.
Does Evolveum offer support subscriptions for midPoint?
Yes. Evolveum offers Product Support subscriptions for resolving product bugs, with an 8x5 next-business-day or 24x7 service level, and Platform Subscriptions that add feature development and roadmap influence. The support page does not list prices, so request a quote from Evolveum for the tier that matches your hours and risk. Note that a support subscription covers the product from Evolveum, not the integration code your team or a partner writes for your environment.
What security controls should an API user for midPoint have?
Create a dedicated API user with only the authorizations the integration needs, store its credentials in a secrets manager, and rotate them on a schedule your security team approves. Limit network access to the midPoint endpoint, log API calls, and review who can change the user's roles. Confirm the authentication method your midPoint version supports and document it for your security review. Securing the API user is a checklist item in midPoint hardening work, so align the integration with your overall configuration.
Limits to confirm in your environment
The REST API behaves differently across midPoint versions, connectors and deployment sizes, so the examples in any integration design are starting points. The cards below list what to test in your own environment before a change feed, service account or automation goes into production.
Endpoints and parameters per version
Confirm the exact endpoints, request bodies and query parameters for the midPoint release you run, not the release you read about. The notifyChange operation changed in 4.11: it can address a shadow by its identifiers, so the shadow OID is no longer required. Check whether your integration depends on the OID form and plan a test for each upgrade step, since midPoint versions have distinct support windows.
REST API referencenotifyChange behavior per connector
A notifyChange call hands a change hint to midPoint, but what happens next depends on the resource, its connector and its synchronization configuration. Test each target system with a known account: confirm that the change is picked up, that the correct shadow is matched, and that a missing or mismatched identifier fails with a clear error rather than a silent no-op. Do not assume that behavior on an LDAP resource matches a SCIM or database resource.
Throughput under peak change volume
Event-driven calls can arrive in bursts, for example after a bulk HR update or a directory cleanup. Load test the integration at your realistic peak, measuring request latency, queued work, task thread usage and database load on the shared repository. Confirm how many concurrent calls your deployment accepts before errors or delays appear, and agree on a retry and back-off strategy with the team that owns the sending system.
Authentication against your policy
Check that the authentication method used by the integration account meets your password, credential rotation, MFA and network exposure policies. Confirm which authentication mechanisms your midPoint version offers for REST clients, how credentials are stored and rotated, and whether the service account can be restricted to the operations it needs. Record the decision with your security team before go-live.
API changes in audit records
Verify how API-driven changes appear in the audit trail before you rely on it for an investigation or an access review. Confirm which identity the audit entry records for an API call, whether the requester and the originating system are distinguishable, and how long those records are kept under your retention settings. Run a test change through the API and trace it end to end in your audit database.
Where the API sits next to SSO and identity lifecycle work
midPoint is not an SSO server, so the REST API does not sign people in. Evolveum states that midPoint is an identity management system rather than an access management or SSO server, and it does not implement the server side of OAuth2, OpenID Connect or SAML. Scripts, integrations and event senders call the API as midPoint user accounts, authenticated with the credentials and authentication methods your midPoint deployment is configured to accept. End-user sign-in to midPoint's own web interface can be delegated to an external SSO service if you use one, but that setup does not change how automation authenticates. Before you build anything, decide which midPoint accounts will be API callers, confirm which authentication methods your version supports for them, and record who owns each account. Confirm the details against the Evolveum FAQ and the REST API reference for your release.
Keep the identity lifecycle logic in midPoint, not in the caller. Joiner, mover and leaver processing (what happens when an HR record changes, how accounts are correlated, and how entitlements are added, changed or removed) belongs to the lifecycle topic, where object templates, mappings and resource configuration define the outcome. The REST API is one way to start that work. An HR export job, a ticketing hook or a source system can post a change, and midPoint then runs its configured logic. Treat the caller as a trigger that must be authorized and audited like any other actor, and avoid copying lifecycle rules into external scripts, because two sources of truth drift apart. Decide early which system is authoritative for each attribute, and test one joiner, mover and leaver case end to end before you connect event sources.
Plan the SSO and lifecycle boundaries together, since they share the same accounts and trust decisions. Your SSO provider holds human credentials and multi-factor settings, midPoint holds the identity records and entitlements, and the API caller holds a service credential with limited rights. A compromised service account that can change assignments has more impact than a compromised reader, so scope its role to the object types and operations the integration needs. Document which system to check when a user cannot sign in, which system to check when access is wrong, and who can revoke an API credential. These answers shape the rest of the topic, including the notifyChange pattern and how API users are secured.
How DeployOpen scopes and supports API automation
The sequence turns an automation idea into a written scope, a tested integration running in your infrastructure, and documentation your team can operate. Each step ends with a check you can review before the next one starts.
Agree the written scope and success criteria
DeployOpen and your team define which systems the API automation touches, which events trigger a call (for example, an upstream change that should reach midPoint), who owns the integration, and what counts as done. The scope, deliverables and timeline are agreed in writing before work starts. You know this step is complete when both parties have signed off on the scope document and the acceptance criteria are specific enough to test against.
Confirm the midPoint version and API reference
The team records the exact midPoint version in your environment and checks the REST API reference for that release, because operations and addressing options differ between versions. For example, midPoint 4.11 lets notifyChange address a shadow by its identifiers rather than requiring the shadow OID, so the same integration design may need different handling on older releases. Confirm the version against your support plan and the release notes before any code is written. The check is complete when the target version and endpoint behavior are written into the design record.
Design authentication and the API user
DeployOpen designs a dedicated midPoint user for the integration with the narrowest authorizations that the defined operations need, plus the credential handling for the calling service. The design records how secrets are stored, rotated and revoked, and which network paths can reach the endpoint. You know this step is complete when the design lists each permitted operation against each account and the owner has approved it.
Build the integration in your infrastructure
DeployOpen implements the calls, event handling and error handling inside the environment you control, using your identity, network and secrets services. Requests are logged with enough context to trace an event through to the midPoint change. You know this step is complete when the integration runs from your deployment pipeline and the code is in your version control.
Test against non-production resources
Testing runs against a non-production midPoint and non-production target resources so that failed or repeated calls cannot change live accounts. The test set covers normal events, duplicate or out-of-order events, invalid identifiers, permission failures and an authorization check for the API user. You know this step is complete when every test case has a recorded result and the failures have been fixed and retested.
Document the integration and hand over operations
DeployOpen delivers documentation covering the endpoints used, the API user and its authorizations, the event flow, the failure and retry behavior, and the steps to rotate credentials or roll back. Your operations team is walked through the runbook and the monitoring points that show the integration is healthy. You know this step is complete when your team can rerun the test cases and explain each alert without DeployOpen present.
Support upgrades through an optional retainer
Ongoing support, including retesting the integration when midPoint is upgraded, is available as a retainer and is quoted separately from the initial scope. Upgrades matter here because the supported versions and the API behavior change across the long-term support and feature releases. You know the retainer is in place when the retesting scope, response expectations and upgrade triggers are written into the agreement.

