How to Revoke AI Agent Access After Employee Role Changes
To revoke AI agent access after an employee role change, withdraw the permissions associated with the old role wherever the agent can use them: delegated tokens, active sessions, queued jobs and retrieval permissions. Recheck work running through service accounts, and require current authorisation before paused or queued work resumes. Verify the change by attempting the previously permitted actions through each affected route.
What should an employee role change revoke?
Start with the permissions the employee is losing. A transfer might remove access to one business unit while retaining another. A departure might require all work performed on that person's behalf to stop.
Define the intended result before changing settings: which records the agent may read, which actions it may perform, and which pending work must stop.
Use this checklist to define what the revocation process must cover:
| Access surface | Required action | Verification |
|---|---|---|
| Delegated tokens | Withdraw old grants and prevent token renewal under the old role | Attempt an old-role action using an existing token |
| Active sessions | End or restrict sessions carrying old permissions | Repeat the action from an already-open session |
| Queued and running jobs | Pause affected work and check current authority before each protected step | Resume or retry a job created before the change |
| Retrieval and cached results | Refresh permission decisions and restrict previously retrieved material | Search for a record the employee can no longer access |
| Service accounts | Remove the employee's delegation or narrow the service's authority | Attempt the same action through the background service |
| Pending approvals | Recheck the requester, approver and action before execution | Attempt to use an approval issued before the change |
Keep the scope tied to the actual role change. Removing unrelated access can interrupt legitimate work without improving the intended restriction.
How should identity changes reach delegated tokens and sessions?
Treat the identity update as the start of a tracked revocation process. For each connected system, record how it receives the change, who owns failures and how completion is verified.
For delegated access, inspect both the permission grant and the credentials issued from it. Ask whether an existing token remains usable after the grant changes, whether a renewal credential can obtain another token, and whether the receiving system checks current permissions. Confirm those answers through the system's documentation and a controlled test.
Choose a revocation method that meets the required cutoff. Where immediate cancellation is unavailable, define an enforceable alternative, such as blocking the affected action at the application boundary.
For active sessions, include browser sessions, agent conversations and connections to tools. Require a fresh permission check before the next protected operation. If permissions cannot be refreshed within a session, end that session and require a new one.
Do not use a successful sign-out as proof that delegated access has ended. Test each access route separately.
What happens to queued jobs and work already running?
Require every job to identify whose authority supports it. Useful records include the initiating employee, the delegated role, the requested action and any approval attached to it.
When that employee's role changes, pause affected jobs until their authority has been reassessed.
Check permission when work starts and again immediately before a protected read, write or delivery. Include scheduled work, retries, delayed messages and jobs waiting for a person to approve them.
For a running job, define a safe stopping point. If it has already changed a business record, record that result and assess any corrective action separately. Revoking permission should not automatically reverse completed transactions.
Make transfers explicit. If another employee takes responsibility, require that person to review and authorise the remaining work under their own permissions. Preserve the original history.
Our guide to approval steps for AI agents explains where human decisions belong. For role changes, add a separate rule: an earlier approval must not bypass the current access check.
How should retrieval permissions and cached information change?
Apply the role change to both future retrieval and information already held for the task.
For new searches, check current access before returning records or document passages. Include search results, snippets, document previews and direct record links in the verification.
For cached permission decisions, invalidate affected entries or require them to match the current permission state before reuse. Avoid treating a previous successful lookup as continuing permission.
For cached content, preserve enough source information to determine who may receive it now. A proposed design should answer these questions:
- Can a previous search result be reopened after access is removed?
- Can a saved summary reveal material from a restricted document?
- Can a conversation reuse information retrieved under the old role?
- Can an export prepared earlier still be delivered?
Require renewed permission before exposing those outputs. Where source-level checks are unavailable, withhold the affected output pending review.
Set retention rules separately. Keeping a record for an authorised retention purpose should not automatically make it available to the employee or their agent.
The starting point is a clear policy for what data an AI agent should see. Revocation should enforce that policy as responsibilities change.
How should service accounts be handled?
Separate work performed on behalf of an employee from work owned by a business process.
For employee-delegated work, require the service to check the employee's current authority before acting. A valid service credential alone should not satisfy that check.
For independently authorised work, name a business owner and define the service's permitted actions. An employee leaving the team should trigger an ownership review, with a clear decision about whether the process continues.
Inspect how the employee could control the service. Review their ability to submit jobs, change instructions, retrieve results or obtain credentials. If they had access to a shared credential, include replacing it in the revocation plan.
Do not disable a shared account without identifying the work it supports. Narrow the affected delegation, and pause the service if its remaining authority cannot be established.
How do you verify that revocation worked?
Use a controlled account with the old role and create representative work before changing its access. Keep an existing session, delegated credential, queued job and cached retrieval result available for testing.
After applying the change, attempt the same actions through those existing routes.
Record the expected denial and the observed result. Check business records and delivery destinations as well as the visible response: the verification must establish whether a read, write or delivery occurred.
Use this acceptance checklist:
- Old-role records cannot be retrieved through search, direct access or saved context.
- Existing credentials cannot perform removed actions or regain the old permissions.
- Open sessions cannot continue protected operations.
- Queued jobs and retries stop before an unauthorised step.
- Prepared outputs cannot be delivered without current permission.
- Service-account routes enforce the intended restriction.
- Access retained under the new role still works.
A denial is meaningful only if the same test succeeded before revocation. Also run an allowed action after the change to distinguish correct enforcement from a general outage.
Record unresolved routes and keep affected work paused until they pass.
What are the common mistakes?
Changing only the employee's group membership. Require confirmation from every affected access surface before calling revocation complete.
Letting previously approved jobs finish automatically. Require current authority at execution, including after an approval or retry delay.
Clearing search access while retaining reusable answers. Include summaries, conversation context, prepared exports and cached results.
Treating service credentials as employee permission. Check the authority behind each request, even when the service itself is authenticated.
Testing only a fresh login. Include sessions, credentials and jobs created before the change.
Promising to erase information already delivered. Define the control boundary honestly. This process governs continued system access and future delivery; handle previously downloaded or received material through a separate information-handling process.
What questions come up most often?
Must every role change stop all agent work?
Define the affected permissions first. Pause work dependent on those permissions, then verify that work allowed under the new role can continue.
Can queued work move to another employee?
Allow transfer only through explicit reassignment and fresh authorisation. Keep the original requester and approval history visible.
Is a short token lifetime enough?
Evaluate it against the required cutoff. Test what existing tokens can do during that interval, and whether renewal or another access route preserves the removed permission.
What proves the process is complete?
Require evidence that old access fails across the affected routes, retained access works, and no paused job can resume without current authority. A completed identity update alone is insufficient.
For custom AI agents, make role changes part of the operating design: identify the authority behind each action, define how it ends and test that ending before relying on it.