Skip to content
Contact us
Insights

ACL-aware retrieval keeps enterprise RAG within permissions

  • DateNovember 24, 2026
  • CategoryArchitecture

Retrieval-augmented generation is the most common pattern for enterprise agents. A question is embedded, similar chunks are retrieved from a vector index, and the model answers on that basis. The pattern works well for answer quality. It has a structural weakness for security: embeddings forget permissions.

When a document is indexed, it is split into chunks and each chunk is turned into a vector. The access list, which defines who may read the document, stays behind in the source system unless it is deliberately carried along. The agent then finds chunks that are semantically relevant, regardless of whether the requesting person is allowed to see them. The result is predictable. An agent quotes from board papers or salary data because the content matched the question. The question is not whether the RAG knows the answer, but whether it may show it to this person.

ACL-aware retrieval addresses this in five steps.

Step one, carry ACLs at ingestion: for every chunk, the allowed groups and users are stored as metadata alongside the vector. Group names are resolved through the identity provider, so that the index uses the same identifiers as the tokens presented at query time.

Step two, pass the requester's identity through: the agent queries the index on behalf of the person, using token exchange, rather than under its own broad identity. The person's group memberships come from the validated token, never from the prompt. Anything a user or a document can write into the prompt can be manipulated.

Step three, filter before ranking: the permission filter is applied inside the index as a pre-filter, so that only permitted chunks are considered. In a typical configuration, the retrieval step asks for a larger candidate set, for example the top fifty, restricted to chunks whose allowed groups intersect with the groups in the token. A re-ranker then selects the best few for the model. A post-filter applied after ranking is a common mistake. It can return empty or skewed result sets, because the top candidates were chosen before permissions were considered.

Step four, sync permission changes: when access is revoked in the source system, the change must reach the index quickly. Define a maximum lag as a service level objective and measure it. Without this, the index remains a window into content that a person was recently removed from.

Step five, check citations too: source references shown to the user are subject to the same access list. Only show citations from documents the requester can access, and resolve links through the source system's own authorisation.

The pattern has limits and trade-offs. Large group lists strain metadata filters, and some indexes slow down considerably when a filter contains hundreds of values. Nested groups require resolution, which costs time at ingestion or at query time. One practical option is to combine separate indexes per confidentiality level with filters inside each index, so that the most sensitive content is physically separated and filters stay manageable. Another limit concerns source systems with complex permission models, such as item-level exceptions or inherited rights. Mapping these faithfully into chunk metadata requires careful work and testing, and some systems may not be suitable for indexing at all.

A further consideration is that the model itself can leak information across a conversation. If a session mixes content retrieved for different people, or caches responses across users, the access model breaks again. Session and cache boundaries must follow the same identity.

For an architecture team, the next steps are concrete. Inventory the sources that feed your indexes and record how each one expresses permissions. Decide where group resolution happens and how nested groups are handled. Configure retrieval to accept identity only from the token and to apply pre-filters. Define the permission sync SLO and build a measurement for it. Add test cases in which users with different rights ask the same question, and verify that answers and citations differ accordingly.

The takeaway for the board: permissions are enforced at retrieval time, not only at ingestion and never in the prompt.

cloudstrata builds and operates AI platforms for enterprises. AI Foundry is our managed runtime for AI agents, with knowledge retrieval as one of its building blocks alongside multi-tenant workspaces, routing of models and tools, evaluation hooks, usage and cost metering, audit trails and central governance. If permission-aware retrieval is on your agenda, you can request a technical introductory conversation via cloudstrata.io/contact.

CONTACT

Let's talk about your project

Describe your use case. You get a concrete next step — not a sales pitch.

We reply within one business day.

Follow Cloudstrata on LinkedIn and Instagram to stay up to date with our work and openings.

Details used only to respond. Data privacy

ACL-aware retrieval keeps enterprise RAG within permissions | cloudstrata