Machine Learning pathway increased my salary by 40%
Enterprise Integration, APIs and Interoperability
An agent is only as capable as the systems it can reach, and only as safe as the entitlements it carries while reaching them. Integration is where HR automation is won or lost — not in the model, but in the semantics of a field, the ordering of an event and the identity on whose behalf the call is made.
This chapter covers integration architecture for an agentic HR estate: request/response, events, batch and change data capture, and when each is genuinely the right answer. It works through event semantics — ordering, duplication, the fiction of exactly-once — and then identity propagation, because a delegated call that loses the employee's identity makes every downstream control decorative. It sets out field-level entitlement design, the interoperability standards that make agents portable across platforms, and the reliability practices that keep a distributed HR estate reconcilable when three systems disagree about the same person.
What this covers
- Who this is for
- Integration architects, HR technology platform teams, API owners and security architects responsible for how agentic capability reaches HCM, payroll, ATS, learning and service systems.
- What it assumes
- Chapters 01–10. Some exposure to REST APIs, authentication or integration platforms helps, but the field-level and identity arguments are explained in plain terms.
- What you will be able to do
- Select an integration pattern with a stated rationale, design event handling that tolerates duplication and disorder, specify delegated identity, and define field-level access rules for agent calls.
- Reading time
- About 26 minutes, including the knowledge check and question bank.
Why HR integration is harder than it looks
An HR technology estate is a set of systems that each believe they own the truth about a person. The HCM owns employment; payroll owns pay; the ATS owns candidates; learning owns completion; the service platform owns tickets; facilities owns access. Each has its own identifier, its own effective-dating model and its own definition of a mundane word like 'start date' — contractual, payroll-effective or first working day.
Agents make this visible because they ask questions across systems that no single report was designed to answer. An eligibility question may need employment status, grade, jurisdiction, a policy effective on a date and a certification that lives in a fourth system. Each hop introduces a semantic mismatch that a human would resolve by experience and a machine resolves only if the mapping is written down.
Effective dating deserves particular attention. HR data is temporal: someone was a manager last month and is not now. An agent that retrieves the current record and applies a policy that was in force three months ago produces a defensible-looking wrong answer. Integration design must carry as-of semantics through the whole path, not apply them at one end.
- Each system believes it owns the person; identifiers and definitions differ.
- Agents surface cross-system questions no report was designed to answer.
- Write the semantic mapping for every field an agent depends on.
- Carry as-of and effective-date semantics end to end, not at one hop.
- Distinguish contractual, payroll and working start dates explicitly.
Choosing an integration pattern
Request/response suits an agent asking a question at a moment in time: what is this person's grade today, does this policy apply, is this certification valid. It is simple, synchronous and easy to authorise per call. Its weakness is coupling: the agent waits, and a slow or unavailable system becomes an agent failure unless timeouts and cached fallbacks are explicit.
Events suit state change: a worker was hired, a position changed, a document was uploaded. The orchestrator subscribes and reacts without polling, which reduces load and latency. The cost is complexity — ordered delivery is not guaranteed, duplicates occur, and consumers must be idempotent. Batch remains the right answer for high-volume reconciliation where consistency matters more than latency: payroll inputs, access reviews, compliance reporting.
Change data capture sits between events and batch: reading a database's change log to derive events without asking the source team to build them. It is powerful for legacy systems with no event surface, and it is brittle against schema change, so treat the derived event contract as owned by you and test it whenever the source schema moves.
- Request/response
- Synchronous query at a point in time. Simple and authorisable; needs timeouts and fallbacks.
- Event-driven
- React to state changes. Lower load and latency; requires idempotency and tolerance of disorder.
- Batch
- Scheduled bulk transfer. Right for reconciliation and reporting where latency is secondary.
- Change data capture
- Derive events from a database log. Useful for legacy sources; brittle against schema change.
- Façade
- A narrow owned service exposing exactly the operations agents need over a dated interface.
Event semantics: ordering, duplication and exactly-once
Exactly-once delivery is a property of processing, not of transport. Most brokers offer at-least-once, so consumers see duplicates and must deduplicate on a stable event identifier. Systems that assume single delivery create duplicate onboarding tasks, duplicate welcome emails and occasionally duplicate payroll instructions — all of which look like data quality problems until someone reads the consumer logic.
Ordering is conditional. Even where a partition guarantees order, a retry, a dead-letter replay or an out-of-band manual correction can reorder effects. Design consumers to be order-tolerant: compare event timestamps and sequence numbers, ignore stale updates, and treat an older event arriving late as a no-op rather than a reversal.
Event schemas are contracts and need versioning. Add fields compatibly, never repurpose an existing one, and keep a registry so consumers know what they are receiving. When a producer changes meaning silently, every downstream agent inherits the change without a release — which is the integration equivalent of a prompt edited in a console.
- Assume at-least-once delivery; deduplicate on a stable event identifier.
- Make consumers order-tolerant: ignore stale updates rather than applying them.
- Version event schemas additively; never repurpose a field.
- Maintain a schema registry so consumers know what they receive.
- Treat late events as no-ops unless a business rule says otherwise.
Identity propagation and delegated authorisation
An agent acting for an employee must carry that employee's identity to every downstream system, and the downstream system must enforce its own rules against it. The alternative — a service account with broad rights and entitlement logic only in the orchestrator — means the control exists in exactly one place, and any path that bypasses that place is ungoverned.
The mechanism is delegated authorisation: on-behalf-of tokens, token exchange or scoped credentials minted per request with the acting subject, the audience and a short lifetime. Where a legacy system cannot accept delegated tokens, the compromise is an attributed service account with the acting identity in the payload and in the audit log, documented as a compensating control rather than presented as equivalent.
Agent identity is distinct from user identity and needs its own lifecycle. Each agent should have a registered identity with an owner, a purpose, a permission set, an expiry and a review cadence. Orphaned agent identities with live credentials are one of the more common findings in security reviews of automation estates, because nothing in the normal joiner-mover-leaver process covers them.
- Carry the acting employee identity to every downstream call.
- Enforce entitlement at the system of record as well as the orchestrator.
- Use on-behalf-of tokens or token exchange with short lifetimes and audiences.
- Register each agent as an identity with owner, purpose, permissions and expiry.
- Review agent identities on the same cadence as human privileged access.
Field-level entitlement design
Coarse authorisation — this agent may read employee records — is inadequate for HR because the sensitivity inside a record varies enormously. A manager may see a grade and a location but not a salary band reason, a medical note, a grievance record or a bank account. Field-level classification is the mechanism: label every field by sensitivity, define who may see which class in which context, and enforce it in the data access layer rather than in prompt instructions.
Attribute-based rules are usually the practical expression: subject role, relationship to the record subject, jurisdiction, case assignment and purpose. Purpose matters especially — a payroll query and a wellbeing enquiry may touch the same record for different reasons, and the second must not widen access to the first. Where purpose cannot be enforced technically, it must at least be logged and reviewed.
Masking and aggregation are the escape valves that keep agents useful without exposing raw values. An agent may answer 'your salary is in band 4' without reading the exact figure, or confirm that a document exists without reading its clinical content. Design these representations deliberately; a redaction applied late in the pipeline after the model has read the data is not a control.
- Classify every field by sensitivity; enforce by class, not by record.
- Use attribute rules: role, relationship, jurisdiction, assignment and purpose.
- Log purpose where it cannot be technically enforced, and review it.
- Offer masked or aggregated representations so agents stay useful.
- Redact before the model reads data, never after.
Standards that make agent integration portable
Four standards carry most of the weight in HR interoperability. SCIM provides a schema and protocol for user and group provisioning, which is how onboarding and offboarding reach downstream applications. OpenAPI describes HTTP interfaces so tools can be generated and validated rather than hand-wrapped. OData is common in HCM platforms for queryable entity models. HR-XML and its successors persist in payroll and benefits integrations where message schemas were standardised years ago.
For agents, standards matter less for elegance than for portability and reviewability. A tool defined from an OpenAPI description can be validated, permissioned and versioned once and consumed by several runtimes. A SCIM-based provisioning path means onboarding logic is a sequence of standard operations rather than bespoke per-application scripts. The result is a smaller, more auditable tool catalogue.
Standards also impose honesty. If a vendor claims SCIM support, the test is whether the operations you need — create, update, deactivate, group membership — are actually implemented and behave consistently. Partial support is common, and discovering that during onboarding season is expensive.
- SCIM for provisioning and deprovisioning across applications.
- OpenAPI descriptions as the source for tool generation and validation.
- OData and HR-XML remain relevant in HCM query and payroll messaging.
- Standards reduce bespoke wrappers and make the tool catalogue auditable.
- Verify claimed standard support with the operations you actually need.
Reliability, reconciliation and the multi-system truth problem
In a distributed estate, three systems will disagree about the same person, and the question is how quickly and visibly that is detected. Reconciliation is the answer: a scheduled comparison of expected state against actual state across systems, with classified differences — timing differences, mapping errors, genuine conflicts — routed to owners.
Rate limits and backpressure are practical constraints that shape design. HCM platforms commonly throttle API access, and an agent estate that fans out queries can exhaust limits during peak periods, degrading the human-facing integrations that share them. Use caching for slow-changing reference data, request budgets per agent, and queue non-urgent work rather than competing with interactive traffic.
Replay and repair are the operational capabilities that make integration survivable. When a downstream system rejects a batch of changes, the orchestrator must be able to re-deliver with idempotency preserved, and to report exactly which cases were affected. Without replay, repairs are performed by hand and the evidence trail ends where the incident began.
- Reconcile expected versus actual state across systems on a schedule.
- Classify differences as timing, mapping or genuine conflict; route to owners.
- Cache slow-changing reference data and set per-agent request budgets.
- Separate interactive from batch traffic to protect shared rate limits.
- Provide replay with preserved idempotency and an affected-case report.
Legacy systems, façades and the exit path
Much of the estate will never expose a clean API, and agents should not be pointed directly at dated interfaces. The façade pattern wraps the system in a narrow service that exposes exactly the operations the business needs, with validation, idempotency and delegated identity, and hides the interface's peculiarities. The façade becomes the place where a future system swap happens without touching the orchestration.
Façades also constrain blast radius. A façade with five operations can be reviewed, tested and monitored; the underlying system may have hundreds of endpoints with inconsistent semantics. The narrow surface is the governance artefact, and it is what lets a security team approve integration in days rather than quarters.
Design the exit at the same time as the entrance. If the façade is owned by your team and the contract is written in business terms, replacing the underlying system is a façade implementation change. If agents call the vendor's endpoints directly, the vendor's data model becomes your architecture, and every future change is negotiated.
- Wrap dated systems in narrow façades owned by your team.
- Expose only the operations the business needs, with validation and idempotency.
- Keep the façade contract in business terms so it survives a system swap.
- A small reviewed surface is approved faster and monitored better.
- Never let a vendor's data model become your architecture.
A worked example: integrated onboarding across six systems
The illustration is an ordinary hire: an offer accepted, a start date agreed, documents collected, a payroll record created, access provisioned, equipment ordered and a first-week schedule issued. Six systems, four teams and a statutory right-to-work check with a deadline.
The design uses events for state change and request/response for decisions. Acceptance emits a hire event that the orchestrator consumes idempotently; identity resolution creates one case with the hire identifier and each system's identifier mapped in the façade. Document collection writes to private storage with access limited to the case owner, and extraction confidence routes low-confidence fields to review. Access provisioning calls SCIM operations through a façade with the acting hire as subject and a per-application permission set, so a failure at one application does not block the others.
Reconciliation runs daily during the first month of each hire: HCM status against payroll presence against access entitlement against equipment order state. Differences are classified and owned, and the case does not close until the right-to-work check has an evidenced outcome and the payroll record exists. The evidence needed for an audit is produced as a by-product of the workflow, not assembled afterwards.
Integration anti-patterns
Point-to-point sprawl is the oldest: every pair of systems connected directly, so the estate becomes a mesh nobody can change. Direct agent-to-vendor-endpoint calls repeat the mistake with a model attached. The shared service account removes attribution and entitlement simultaneously, and entitlement enforced only in the orchestrator leaves any bypass path ungoverned.
Polling everything is an anti-pattern that frequently looks like diligence. It exhausts rate limits, generates load without purpose and fails to notice events that do not change a polled field. Blind retries without idempotency produce duplicates; unversioned events produce silent downstream behaviour change; and no reconciliation means the estate's disagreements are discovered by employees rather than by monitoring.
- Point-to-point sprawl: change becomes impossible to reason about.
- Agents calling vendor endpoints directly: the vendor's model becomes your architecture.
- Shared service accounts: no attribution, no entitlement enforcement.
- Entitlement only in the orchestrator: bypass paths are ungoverned.
- Polling as a substitute for events, exhausting limits without purpose.
- Blind retries, unversioned events, absent reconciliation.
The golden worker record and identifier discipline
Every integration design eventually confronts the same question: which identifier is the person? The pragmatic answer is one golden worker identifier issued by the system of record, with an explicit mapping table to every other system's identifier and to historical identifiers for rehires and mergers.
Mapping tables are unglamorous and decisive. They are what allow an agent to follow a relationship rather than guessing from a name, and they are what make reconciliation possible, because differences can be compared per person rather than per record set. They also make subject access answerable, since the mapping enumerates where data about a person lives.
Identifier errors are quiet and expensive. A merged record attributes one employee's training to another; a rehire treated as a new person loses continuous service; a contractor and an employee with identical names create a duplicate. None of these raises an exception at the point of capture, and all of them surface later as wrong decisions.
The discipline is to resolve deterministically, fail closed on ambiguity and never let a model adjudicate identity when a consequential action depends on it. A model can suggest a candidate match for a human to confirm; it cannot be the authority that two records are the same person.
- One golden identifier from the system of record; mapping table for all others.
- Preserve historical identifiers for rehires, mergers and acquisitions.
- Resolve deterministically and fail closed on ambiguity.
- Never allow a model to adjudicate identity for consequential actions.
- Use the mapping to answer subject access and to reconcile per person.
Key takeaways
Choose patterns by the question being asked: request/response for point-in-time decisions, events for state change, batch for reconciliation. Design consumers for duplication and disorder, carry delegated identity end to end, and enforce entitlement in the system of record as well as the orchestrator.
Chapter 12 assembles everything so far into a platform design: the reference architecture, registries, policy layer, evaluation harness and the build sequence for an enterprise multi-agent HR platform.
- Match the pattern to the question; do not standardise on one transport.
- Assume at-least-once delivery and order-tolerance in every consumer.
- Propagate the acting identity and enforce entitlement at the source.
- Classify fields and redact before the model reads them.
- Reconcile across systems on a schedule, with classified differences and owners.
- Wrap legacy in narrow façades you own; design the exit at the entrance.
5 questions to test the model
Why is exactly-once delivery a misleading requirement?
What does delegated authorisation require for an agent acting for an employee?
Why is record-level authorisation insufficient in HR?
What is the main reason to route agent calls through an owned façade?
Which practice detects that three systems disagree about the same person?
Questions this page answers
Should we standardise on events for everything?
How do we handle a vendor that rate-limits aggressively?
What is the minimum viable identity model?
Who should own field classification?
How do we test entitlement enforcement end to end?
What about agents needing data from systems with no API?
How long should delegated tokens live?
What belongs in an event contract?
How do we avoid over-exposing data through tool outputs?
What is the role of a data virtualisation layer?
How do we reconcile without a huge nightly job?
Is polling ever acceptable?
How do we handle a system that returns inconsistent results to identical queries?
What should the tool catalogue expose for a legacy HR system?
How do SCIM and agent provisioning interact?
How much caching is safe for entitlement decisions?
What is the most common integration failure in HR programmes?
Do we need an enterprise service bus?
How do we evidence integration controls to an auditor?
What comes next in the course?
What does Request/response mean in Enterprise Integration, APIs and Interoperability (Choosing an integration pattern)?
What does Event-driven mean in Enterprise Integration, APIs and Interoperability (Choosing an integration pattern)?
What does Batch mean in Enterprise Integration, APIs and Interoperability (Choosing an integration pattern)?
What does Change data capture mean in Enterprise Integration, APIs and Interoperability (Choosing an integration pattern)?
What does Façade mean in Enterprise Integration, APIs and Interoperability (Choosing an integration pattern)?
What does Why HR integration is harder than it looks explain about Enterprise Integration, APIs and Interoperability?
What does Choosing an integration pattern explain about Enterprise Integration, APIs and Interoperability?
What does Event semantics: ordering, duplication and exactly-once explain about Enterprise Integration, APIs and Interoperability?
What does Identity propagation and delegated authorisation explain about Enterprise Integration, APIs and Interoperability?
What does Field-level entitlement design explain about Enterprise Integration, APIs and Interoperability?
What does Standards that make agent integration portable explain about Enterprise Integration, APIs and Interoperability?
What does Reliability, reconciliation and the multi-system truth problem explain about Enterprise Integration, APIs and Interoperability?
What does Legacy systems, façades and the exit path explain about Enterprise Integration, APIs and Interoperability?
What does A worked example: integrated onboarding across six systems explain about Enterprise Integration, APIs and Interoperability?
What does Integration anti-patterns explain about Enterprise Integration, APIs and Interoperability?
What does The golden worker record and identifier discipline explain about Enterprise Integration, APIs and Interoperability?
What does Key takeaways explain about Enterprise Integration, APIs and Interoperability?
Which risks or limitations apply to Reliability, reconciliation and the multi-system truth problem in Enterprise Integration, APIs and Interoperability?
Which risks or limitations apply to A worked example: integrated onboarding across six systems in Enterprise Integration, APIs and Interoperability?
Which risks or limitations apply to Integration anti-patterns in Enterprise Integration, APIs and Interoperability?
Sources and standards
- RFC 6749 / RFC 8693 — OAuth 2.0 and token exchange
Basis for delegated authorisation and on-behalf-of flows between services.
- SCIM 2.0 — System for Cross-domain Identity Management (RFC 7643/7644)
Standard schema and protocol for provisioning and deprovisioning.
- OpenAPI Specification 3.1
Machine-readable interface descriptions usable for tool generation and validation.
- ISO/IEC 27001:2022 — Annex A access control
Control expectations for identity lifecycle and privileged access.
- NIST SP 800-162 — Guide to Attribute Based Access Control
Formal basis for attribute and purpose-based entitlement design.
- OWASP API Security Top 10
Broken object and property level authorisation risks directly applicable to agent calls.
- Enterprise Integration Patterns
Enduring catalogue of messaging and routing patterns.
- GDPR — data minimisation and access rights
Basis for field minimisation and subject access in integrated estates.
Continue through the chapters
Next: the platform design that assembles orchestration, identity, policy, evaluation and observability into one governed capability.
Continue this lesson with a subscription
Multi-Agentic AI HR Tech Automations is part of the paid catalogue. You have read the free preview. A subscription opens the rest of this lesson, the classroom slides and the assessment questions.
- The full lesson for this topic and every other catalogue topic
- Every classroom slide deck and worked example
- All assessments, with a verifiable certificate on completion
The Free-To-Learn library stays open to everyone and is not affected by this.
