Skip to content

Retrieval that is quietly wrong · 3 of 4

The leaver who can still search

Step 1 · The pattern

An assistant over the company's documents

Employees ask the assistant, which searches an index built from the company's documents and answers from what it finds. Each chunk carries a copy of who could read the document. (All numbers are illustrative.)

  • a question
  • answered within access

In short

The leaver who can still search: how it works and how it breaks

An internal AI assistant searches an index built from company documents. That index is a copy, and a copy does not automatically respect the original's permissions. If permissions are not attached to every chunk, nothing filters what chunks a user retrieves. If they are copied as a snapshot, they go stale: Microsoft's documentation for Azure AI Search says some access lists are indexed snapshots refreshed roughly daily, and that permission refresh does not provide immediate revocation. Someone who leaves, changes team or loses access to a project can keep asking the assistant about documents they can no longer open, until the next refresh. Attach permissions to every chunk, and where the search service supports it, trim results at query time using the end user's own identity; fetch from the source system when freshness matters; and test revocation explicitly.

What this simulation simplifies

  • Permission refresh is daily here; real systems vary, and some sources support near-immediate checks.
  • One revoked user stands for joiners, movers and leavers alike.

How this comes up in interviews

"Design an internal AI assistant over company documents. How do you make sure it respects permissions?"

Then they ask

  1. Where are permissions checked?
  2. What happens when someone loses access?
  3. What about chunks?

A strong answer covers

  • The index is a copy; copied permissions go stale.
  • Permissions on every chunk; trim at query time with the user's identity.
  • Fetch from the source when freshness matters.
  • Test revocation end to end.
  • Check before retrieval: summaries leak content too.

Points to cover, not a script. Say them in your own words and tie them to a system you have worked on.

On one page: the track cheat sheet.

Last reviewed: Official documentation

Diagrams are our own simulations: the timings, rates and counts in them are illustrative, not measurements. Captions are original wording.