Check that an AI employee loses access when its owner leaves
Run the offboarding checklist in a test environment: disable the agent identity, revoke active credentials or tokens, remove stale resource permissions and attempt the former access path again. Close the task only when downstream access is denied and evidence is recorded.
What you need
For an IT or security owner responsible for an AI workflow tied to an employee, sponsor or service identity.
- The agent identity, sponsor and connected systems.
- A test account and a harmless protected resource.
- The approved offboarding owner, revocation steps and evidence source.
Prove that offboarding removes the agent’s effective access
- List the identity, delegated access, application permissions, tokens and resource grants used by the workflow.
- Disable the test identity and revoke or invalidate active credentials through the approved process.
- Remove permissions that are no longer needed and check for alternate service credentials.
- Retry the previously allowed read in the test environment; record a denial and the time taken for access to stop.
The account is disabled, but a saved token still works
Synthetic offboarding test. The sponsor leaves at 14:00; the test resource contains no real customer data.
Scroll the table to see all columns.
| Check | Expected | Observed | Status |
|---|---|---|---|
| Agent identity disabled | New sign-in denied | Denied at 14:02 | Pass |
| Existing token revoked | Protected read denied | Read succeeds at 14:04 | Fail |
| Stale resource grant removed | No access after clean sign-in | Grant removed at 14:07 | Retest |
| Owner evidence recorded | Steps and timestamps saved | Missing token failure owner | Open |
Disabling sign-in did not stop an existing token from reading the test resource. Keep offboarding open until token revocation and downstream denial are confirmed.
What to hand over
An offboarding evidence record with identity, revocation steps, downstream access result, timestamp and unresolved dependencies.
Limitation. Some systems cache permissions or tokens; the expected revocation time depends on the identity provider and connected service, so define and test the actual window.
Next step
Bring a system map showing which identity and tools an AI workflow uses. Define who revokes access and how the team proves it stopped.
Related guides
Sources
- Microsoft Learn: least privilege and revocation tests for AI agents (accessed 24 November 2026)
- Microsoft Learn: security controls and access revocation (accessed 24 November 2026)
- Microsoft Learn: production readiness and evidence requirements (accessed 24 November 2026)