Can an AI Assistant Retrieve a Document Its User Is Not Allowed to Read?

A company carefully restricts a project folder, then copies its contents into a shared AI knowledge index. The assistant can now find relevant passages quickly. But relevance does not establish that the person asking is authorized to read them.
Retrieval-based AI needs an access boundary before restricted content reaches the model. Asking the model to avoid revealing secrets after it receives them is not a substitute for enforcing the source permissions.
Preserve access meaning through ingestion
The OWASP RAG security guidance discusses carrying access-control metadata from source documents to their derived chunks and enforcing access at retrieval time. It also warns that permission changes and derived caches need attention.
Treat a chunk as part of a protected source, not as anonymous text that becomes public because it was embedded. Record the source identifier and the authorization information needed by the retrieval system.
If the source permission model cannot be represented reliably, do not assume a broad shared index is an acceptable shortcut. Narrow the supported corpus or redesign the integration.
Identify the requester independently of the prompt
The application should obtain the authenticated actor and relevant authorization context through trusted mechanisms. A message saying I am the project administrator is not proof of that role.
Define whether an assistant acts for one user, a service role or another explicitly authorized identity. Make that choice visible in the system design.
Do not let a model-generated query replace the actor's access scope. Search relevance can vary with the query; the authorization boundary should remain enforced independently.
Test an illustrative two-project case
Create synthetic documents for Project North and Project South. A test user is authorized only for North. Ask a question whose best semantic match appears in South.
The expected result is that South's content never enters the user's retrieved context. The system may return an authorized North result, say it lacks accessible evidence or follow another documented safe response.
Check the retrieval trace, not just the final answer. A model that received South's text but omitted it from its response has not demonstrated the intended access boundary.
Review changes after ingestion
Permissions can be revoked after a document is indexed. Define how those changes reach chunks, indexes and response caches, and what happens while synchronization is incomplete.
Use a test that removes access after a previously successful query. Repeat the query and a paraphrase, then check cached responses and conversation continuation under the supported design.
An old answer already shown to an authorized person cannot simply be made unseen. The practical control concerns subsequent retrieval and disclosure, with appropriate handling of retained conversation data.
Keep tenant and project boundaries explicit
Where multiple organizations share infrastructure, verify that identifiers, filters and caches are scoped to the correct organization. A reused document identifier should not collide across tenants.
Record a safe audit trail of authorization decisions and source identifiers. Avoid copying restricted passages into broad debugging logs, where they could bypass the very boundary being tested.
The retrieval test-question guide evaluates whether useful evidence can be found. Permission tests answer a separate prerequisite: whether this requester may receive that evidence at all.
Also test result titles, snippets and suggested follow-up questions. A restricted document's contents can leak through surrounding interface elements even when the main answer omits its passages.
Define failure behavior
If the authorization service is unavailable or required metadata is missing, use the documented restricted failure path. Do not silently broaden the search to keep the assistant responsive.
Explain the limitation without revealing the existence or contents of restricted documents unnecessarily. Give authorized users an appropriate support route.
Before approving the design, test allowed access, denied access, revoked access, missing metadata and cross-project queries. A strong retrieval system combines relevance with an independently enforced boundary, so a helpful answer does not depend on exposing information the requester was never entitled to receive.
Explore FutureOS
For the project's published context, read Getting started with FutureOS. Its introduction describes FutureOS as being in prelaunch. This guide presents general planning practices, not a claim that FutureOS currently provides the workflow described here.
Prepared with AI assistance. Sources checked on October 22, 2026. Examples identified as illustrative are not customer results; no independent editorial review is claimed.



Comments