Skip to content
sinc-LLMBook a 15-minute call

A RAG Permission Revocation Test That Checks Cached Answers

Use two test identities to verify that revoked material disappears from retrieval, cached answers, and citation previews by your policy deadline.

On this page

By Mario Alexandre · November 27, 2026 · 3 min read

A permission revocation test passes when a formerly authorized identity can no longer retrieve, see, or reopen the restricted information after the required propagation deadline. Run the same checks on a second identity that retains access. Its results distinguish successful revocation from a broken search path.

In a synthetic drill called the Dispatch Roster Transfer, two test reviewers can ask an internal assistant for the dispatch code in a fictional roster. One reviewer leaves the team. Search correctly hides the roster from that reviewer, but a repeat question can still hit a previously cached answer. A search-only assertion would pass in that situation. The release check needs to follow the same information through the full reader experience.

Set up one change and two readers

Create an isolated test tenant with a restricted roster holding the unique fictional value ORCHID-42. Give test identities A and B the same access initially. Give both a separate public-to-the-tenant handbook containing a second, distinct test value. Keep the roster revision, handbook revision, search configuration and assistant release fixed. Ask both identities for both values before making the change. Confirm that the roster opens through a citation and warm each cache surface the normal product uses. Record the tested surfaces so the report shows what the drill covered.

At 10 a.m. UTC, revoke only A's roster entitlement and record the committed policy revision. Assume the team chose a 60-second propagation deadline for this synthetic environment. If the actual policy requires immediate enforcement, use that rule and test from the first request after revocation. Where a product contract allows propagation, log when the updated authorization becomes effective at each serving stage.

Probe issued at the deadline A after losing roster access B with unchanged access
Normal question for roster information No protected text or source metadata Roster value with entitled source
Repeat of the cached question No cached roster value Entitled answer through either valid serving path
Reopen citation or preview through the product No protected preview or content Citation resolves to the expected revision
Normal question for the shared handbook Handbook control value Handbook control value

The test covers data served by the application after the change. Keep information previously downloaded by a user outside this drill's verdict. A product that re-renders earlier conversations should also test what the server redisplays under its documented history policy.

Read the results at the right boundaries

For each probe save identity, request ID, policy revision or decision timestamp, returned source IDs, cache decision, and the rendered outcome. Use redacted fixture identifiers in telemetry. Inspect the production-equivalent query path and the product surface used to reopen sources. Azure AI Search documents document-level access models that apply caller-specific permissions during retrieval. Cache and citation paths in your application still need their own checks. Azure AI Search document-level access overview

If A's fresh answer is clean but the repeat returns the fixture value, investigate cached-response authorization and invalidation. If both reviewers lose access to the roster, the positive control fails and the run is inconclusive. If the handbook also fails, establish that the serving path works before interpreting any protected-document result. For a separate drill involving withdrawal for every reader, follow the site’s removal procedure. Verify RAG document removal

Compare the deadline timestamp on each fresh search, cached answer, citation preview and reopened source. Retain the allowed principal’s successful result on each surface as a control.

Start with one synthetic roster and replay these four probes on both identities. Require clean results by the deadline, a still-working positive control, and coverage of each serving surface listed in the report before using the drill as a release check.