RAG permissions acceptance: testing revocation, caches and citations
Use controlled documents and identities to test tenant isolation, revocation, caches, citations and authorization failures. Record policy versions and observation times so release decisions have repeatable evidence.
By
Tenten AI Research Team
AI Infrastructure
Published
Updated
Read time
4 min

RAG permissions acceptance needs both allowed and denied requests. Prepare controlled documents, identities and a permission matrix with the expected visible content. Then check whether search, generation and caching preserve those authorization conditions.
Build test data without real secrets
Create two test tenants and users with different permissions within one tenant. Documents can contain test-only marker strings so that unexpected content is easy to find in answers, citations and tool inputs. This is a proposed test design; extend the fixtures to cover the actual group, sharing and inheritance rules.
For each case, record the user, source resource, allowed action, policy version and expected result. Mark unresolved sharing behavior as pending instead of counting an unknown result as a pass. Authorization logic needs unit and integration tests that include denied requests and failures. OWASP authorization testing guidance
Check the complete request path
Adapt these starting cases to the application. Keep authorized queries as a control so that a system rejecting every request is not mistaken for a usable one.
| Scenario | Action | Evidence to inspect |
|---|---|---|
| Cross-tenant access | Query tenant B's test content as a user in A | Answers, candidates, citations and tool inputs contain no restricted B data |
| Changed identity parameters | Modify submitted group or resource IDs | The backend still uses trusted identity; changing parameters cannot grant access |
| Document revocation | Query successfully, then revoke document access | Record source change, index update, last visible result and first denial times |
| Parent or group change | Revoke folder or group permissions | Check inheritance and refresh behavior beyond an individual document ACL |
| Group membership removal | Leave document ACLs unchanged and remove the user from a group | Exercise existing sessions, tokens, group resolution and answer caches to verify that old membership no longer grants access |
| Answer cache | Ask as an authorized user, then repeat as an unauthorized user | Restricted answers are not shared; revocation invalidates them under the defined policy |
| Citations and previews | Ask about a restricted topic and inspect titles, links and summaries | Supporting information does not expose content the caller cannot access |
| Authorization failure | Simulate timeout, missing policy or unresolved groups | Deny access that cannot be authorized, return a useful status and record the event |
| Retrieval entry points | Exercise text, vector, hybrid and direct retrieval | Every applicable path enforces the same authorization requirements |
Cross-tenant access, stale permissions, caches and deletion propagation are RAG data paths worth testing. The application's authorization policy defines the actual pass conditions. OWASP RAG security guidance
Specify revocation timing and failure handling
A revocation test should identify its starting event, update mechanisms, maximum permitted delay and timeout behavior, including existing signed-in sessions. The delay target is a project requirement; a fixed number from an article cannot establish it. If the system cannot confirm authorization within that target, it can suspend the affected source while synchronization is repaired.
Include connector support in the acceptance record. The SharePoint indexer preview documentation reviewed on October 12, 2026, describes version-dependent ACL updates and parent-permission refresh constraints. Recheck those requirements when using another version. Microsoft SharePoint permission synchronization documentation
Keep useful, protected records
A request_id can correlate identity, policy version, access decisions, resource identifiers and errors. Restrict log access and retention. Do not copy tokens, raw confidential documents or sensitive personal data into ordinary logs just to enable replay. Use approved fixtures or a controlled investigation process when more detail is needed. OWASP logging guidance
At handoff, list passed, failed and untested scenarios alongside the environment and versions. This evidence supports release decisions for the tested scope. Rerun affected cases after adding sources, sharing rules or cache behavior.
Read the RAG document permissions design guide to review the architecture, then use the RAG knowledge service to discuss source and acceptance responsibilities.
Summarize this page with AI
Related posts

Start with one workflow.
Agree on the next step.
Leave your contact details and question type. We will follow up by email to understand the work and discuss scope.