How to Handle AI-to-Human Handoffs During Workflow Exceptions
When an AI workflow hits a case it cannot safely finish, it must hand that case to a person without losing the…
When an employee leaves, you do not automatically sever every tie to your AI-assisted business workflows by turning off their sign-in. A workflow connects steps like sending a request to an AI service, updating a record, and routing a result for human approval. That workflow may still use the departing employee's credentials, assign open tasks to them, or list them as its only owner.
As a manager or administrator, you need to cut off the employee's access and remove their identity from every automated step. To finish the handoff, you must revoke their accounts and tokens, which are the digital credentials a user or service uses to access another system. You also need to reassign their open work, replace any shared credentials they could reach, save the relevant logs, and test each affected workflow.
Before you cut off access, map out every place where the employee's identity appears. Start with your central sign-in provider, then check the AI, automation, ticketing, document, and data tools your business uses. In each system, look for direct accounts, group memberships, and personal access tokens. Check which apps the employee authorized, which workflows they own, and which automated connections sign in under their name.
Next, check the work waiting on them. Look for open approvals, assigned cases, and scheduled or paused workflow runs that expect a human response. You should also track down any service accounts the employee created or managed. Software uses a service account to talk to another service, so that account can keep running long after its creator leaves. Write down what depends on each service account and who can manage it before you change or delete anything.
Keep a handoff log of the affected workflows, open items, owners, connections, and credential IDs, without copying any actual secret values into the file. Whoever finishes the offboarding can use that list to compare the starting setup against the final state.
Start by disabling the employee's central account. If your identity provider allows it, revoke their refresh tokens and end their active sessions. After that, remove their direct accounts in connected services and revoke any app-specific authorizations or credentials. When you disable a central account, connected apps do not always close existing sessions right away. How quickly a session ends depends on the token type and how each app checks for identity changes. Microsoft’s guidance on revoking user access covers these limits and advises administrators to deprovision apps separately when those apps do not react automatically to identity-provider changes.
Check each service's own settings for access keys, app authorizations, and other credentials. When you revoke one token, other credentials tied to the employee can still stay active. For example, GitHub’s documentation notes that if you revoke a fine-grained personal access token, GitHub does not revoke SSH keys created with that token.
Before you delete a credential that a live workflow uses, find every service or workflow that relies on it and set up a replacement under a business-controlled identity. OpenAI, for example, tells API organization administrators to check whether a departing member's active API keys are in use before removing that member, because removing them can cut off API access through those keys. That specific rule applies to OpenAI, but the same caution helps elsewhere. When a departure is planned, check what depends on a credential before you revoke it. When you face an urgent security departure, revoke the employee's access right away and have an administrator fix the broken workflow dependencies at the same time.
Move pending approvals, customer cases, and other human-review tasks to named, authorized people. If a platform does not let an administrator reassign an item directly, follow its documented workaround, such as canceling the approval and recreating it while keeping its history intact.
When a pending request sits with someone who has left, it becomes an orphaned approval. The workflow can stay stuck waiting for a response that never arrives. In Power Automate, a recipient can reassign an approval they received, while a requester has to cancel the request and update the flow's assigned approver. Check how your own tools handle pending tasks instead of assuming the system will reroute them when you remove an account. This step ties directly into routing AI-drafted documents for human approval, where the approval assignment keeps the workflow moving.
A workflow's owner manages its settings, while a connection is the sign-in link the workflow uses to reach another service. When you assign a new owner, the platform does not necessarily update those connections. If a flow still signs in through the departing employee's connection, it can fail even after another person becomes an owner. Microsoft documents this failure for Power Automate flows and advises administrators to update any credentials tied to a departing owner.
Assign an active owner first, then inspect every connection the workflow uses. Replace any connection authenticated as the departing employee with an approved business-controlled identity, and test each action that relies on it. Some platforms do not let you change a workflow's owner in place; you may have to export and import the workflow or make a new copy under the new owner. Check your platform's ownership rules before you remove the old owner's account. For more on keeping automations running through configuration updates, see maintaining AI workflows during system changes.
A shared secret is a credential, such as an API key or client secret, that a workflow or service uses to authenticate. Rotate a shared secret if the departing employee knew it, controlled it, or could retrieve it. Before you replace it, list every workflow that uses that secret. Deploy the new credential, test each workflow that reads it, and then disable and remove the old one. Google Cloud’s Secret Manager rotation guidance outlines this staged sequence.
Skip rotating credentials that the employee had no way to reach. If you swap out secrets without coordinating the update, you can break several automations at once. For every service account that stays active, review its permissions, administrators, keys, and known uses. Assign a business owner to each surviving account and restrict its permissions to what its workflows actually need.
Save records of the account, permission, ownership, and credential changes you made, following your business's retention policy. Audit logs record administrative actions, while workflow run histories and failure monitors show whether each workflow actually finished. Because those two sources answer different questions, you need both. Microsoft notes that Power Platform administrative logs do not replace the monitoring tools you use to inspect flow runs and action-level failures. Check the relevant Power Automate activity logs and run-monitoring tools, and verify your retention settings before you delete any associated resources.
Once the changes are in place, confirm that the former employee no longer appears as an owner, approver, or member, and holds no active tokens. Check your queues for unresolved items, then run or watch each affected workflow under its replacement connection. Inspect failed runs as closely as successful ones. Finally, review the service accounts and integrations from your initial inventory, because an undocumented dependency may never show up on a workflow's ownership screen.
Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.
Take a look at vroni.com