The supplier task should end before its access does
A hospital contracts a specialist to maintain a patient portal integration that sends appointment updates and selected clinical documents to an external application. The supplier must be able to diagnose a failed synchronisation, but it should not retain broad authority to browse unrelated patient records after the work order closes. A typical access-review weakness is that the portal account is removed while the supplier’s service token, integration certificate or automation account remains active. Another is that the hospital disables the integration immediately, interrupting legitimate appointments, without first identifying who can safely perform the required work. Both are failures of access lifecycle design. The practical question is whether the hospital can end a specific supplier capability without losing clinical service continuity.
Use a fictional case in which an integration vendor is authorised to troubleshoot delayed messages for a single outpatient clinic. The contract allows time-limited diagnostics and mandates hospital approval for access to identifiable patient content. A support engineer may have a valid ticket but attempt a query outside that clinic’s scope because a historic tenant-wide permission still exists. The correct security outcome is not necessarily a blocked login: it is a denied patient-object operation at the receiving service, a recorded authorisation decision and an alternative diagnostic path that does not expose unrelated records. Distinguish the named vendor employee, the vendor organisation and the technical integration identity because they can each have different lifecycles.
Map the route from the ticket to the patient record
The hospital should draw the actual path: ticket approval, identity federation or local portal account, support session, API gateway, integration worker and clinical source system. Record who enforces patient context and clinic scope at each hop. A portal may show only the assigned clinic in its user interface while its API accepts a direct object reference to another clinic’s record. A queued integration job may also execute after the vendor user has signed out, using a separate service principal with older privileges. The reviewer must test these receiving-system decisions rather than treating central single sign-on as proof of application isolation. A supplier support ticket is evidence of business need, not a substitute for authorisation at every operation.
For each integration identity collect issuer, credential type, owning service, permitted action, patient data classification, technical expiry, rotation process and emergency contact. Avoid putting live secret values into the register. Some systems use static API keys tied to a vendor account, others issue short-lived bearer tokens, and others depend on client certificates. Revocation steps differ. A vendor user being deactivated may leave a certificate or cloud service account untouched. If an older integration still requires shared credentials, record it as an exception with a migration owner, logging expectations and a review date rather than describing the environment as fully least-privileged.
Verify normal diagnostics without granting blanket visibility
Create an authorised test path using synthetic appointment and document records. The support engineer should be able to see queue depth, message identifier, integration version, delivery status and scrubbed error detail for the selected clinic. The engineer should not need to enumerate patient names or retrieve clinical attachments to establish that a message was delayed. Where identifiable data is genuinely necessary, require a named hospital approver, narrow time window, explicit record set and logged reason. Separate support metadata from clinical content through application design where possible. A masked log can be sufficient to diagnose retries and failures while preserving patient confidentiality.
Use at least two negative tests in a staging copy. First, present a valid supplier identity but request a synthetic patient object owned by another clinic. The API should refuse the operation, log the attempted object and preserve the requesting service identity. Second, replay a queued diagnostic task after the supplier authorisation expires. The background worker should not silently inherit a broader standing privilege and complete the prohibited read. A rejection in the browser alone is insufficient; inspect the worker’s final action and the actual source system access decision. The tests must be approved by the hospital and should never use production patient data merely to make the scenario realistic.
Revoke access in an order that protects care delivery
At work-order closure, the clinical system owner validates whether the original defect has been resolved and whether any diagnostic queues remain. The access administrator expires the vendor’s interactive session, service token and approved temporary scope according to their separate revocation mechanisms. The integration operator confirms that ongoing appointments still move through the standard service identity, which should be owned by the hospital rather than an individual’s supplier account where feasible. A rollback procedure can be maintained for business continuity, but it must not simply restore every old supplier permission. If an emergency clinical change requires temporary access, issue a fresh bounded grant with contemporaneous approval instead of reopening a dormant shared credential.
A revocation proof includes more than a screenshot of a disabled account. Record token invalidation time, certificate or key status, session termination, effective API permissions, outstanding job queue and the result of a denied synthetic request. Where credentials cannot be revoked immediately because of a legacy platform, the risk owner must document compensating controls and an explicit cutoff. The supplier’s contract should identify who can attest to deletion of locally stored logs and exports, and what evidence the hospital can reasonably inspect. A vendor statement that access has ended is useful assurance, but independent application-side logs and tests are stronger evidence.
Investigate a disputed session without assuming guilt
Suppose an alert reports supplier access after the scheduled maintenance window. A plausible explanation is that an authorised background reconciliation job ran late; another is that a token has been reused outside the permitted workflow. Correlate the ticket, identity event, API request identifier, source record access and job run. Determine whether sensitive data was actually returned or whether a denied attempt occurred. The investigation should separate an unexpected connection from a confirmed disclosure. A legitimate maintenance extension may be valid if the right hospital owner approved it and the new scope was recorded. An unapproved extension requires suspension and review, even if the vendor performed useful work.
Preserve the earliest relevant identity and application events before changing configurations, but do not keep a dangerous privilege active solely to collect more logs. Incident command should decide when to disable a token, isolate an integration or move to manual clinical workflows. The health service may need specialist privacy, legal or regulatory assessment depending on the facts; the operational team should not casually assert that an incident is reportable without a qualified determination. Communications to patients or partners must reflect verified scope and uncertainty. A narrow, documented investigation avoids both underreacting to evidence of misuse and overreacting to a normal asynchronous retry.
Design continuity and auditability together
A supplier access policy should state what happens when the portal or integration is unavailable. The clinical owner specifies manual appointment reconciliation and patient safety escalation; the IT owner identifies monitoring and alternative delivery routes; the supplier provides authenticated emergency contacts. Test a controlled interruption in non-production to show that staff can tell which messages were received, queued, retried and failed. A successful test includes resumption without duplicates and a clinician-approved review of any delayed message. Simply restoring the API connection does not prove that patients received the correct instruction. Keep a clear separation between the hospital’s clinical records and the vendor’s operational telemetry.
The ongoing measure is the count of supplier grants linked to live work, the number that expired on time, the number of outstanding service identities lacking a named owner, and the time required to prove a negative access decision. Review these measures after vendor staff turnover, contract renewal, integration changes and new clinical data flows. The hospital should be able to state for each supplier: which clinical tasks remain permitted, through which identity, for how long, and under whose approval. Consistent revocation means the hospital can demonstrate that patient access ended at the resource boundary without accidentally ending necessary care delivery.
Sources and further reading
How Next Defence supports this work
Next Defence can work with the healthcare vendor manager to verify the specific exposure, help implement the proposed control (link employment status to privileged grants and verify downstream removal) and document a repeatable test using vendor roster, clinic scope, identity sync delays and portal audit records. Engagement scope and outcomes depend on the organisation’s systems and agreed testing authority.