Reviewed and updated November 13, 2026.
In short: A permission-aware AI assistant enforces the requesting user's tenant, group and object permissions before any protected content enters model context, even when a broad service account can search the index. The same checks must cover caches, conversation memory, citations, logs and traces, with stale access metadata producing a denial.
A knowledge assistant needs to return only evidence the requesting user may read. Index access is not the same as document access. If a broad service account can search every record, the application must still enforce the user's tenant, group and object permissions before protected content enters model context.
This article focuses on retrieval and derived information. Agent identity and delegation covers whose authority is used for execution. Both boundaries need enforcement outside generated text.
Keep source identifiers, tenant boundaries, access metadata and permission versions with documents and chunks. Derive the caller's identity from trusted authentication infrastructure. Filter retrieval with the policy relevant to that caller, and verify that additional search paths cannot bypass it.
Azure AI Search documents security filters and native document permission approaches. Some token-based capabilities are marked preview in the documentation checked in October 2026. Source permission changes become effective in indexed results after the documented synchronization process, so test that delay for the source and API version used.

Suppose an employee moves from a sales team to an operations team. The employee previously had access to a confidential sales plan. This is a proposed test case, not an observed deployment result.
After the change, ask for the plan by exact title, paraphrase and a remembered follow-up question. Check direct retrieval, hybrid search, reranking, cached answers and conversation memory. The assistant must not reuse an old answer merely because the same user identifier remains valid.
A proposed cache key includes tenant, effective access context, policy revision, source version and request identity where required. Invalidation rules must cover membership and document ACL changes. Alternatively, cache approved source fragments and reauthorize them before assembling an answer. Choose according to the required freshness of permission decisions.
A blocked body with a revealing citation title can still disclose information. Apply policy to source labels, previews and download links. Logs, evaluation exports and administrator review screens need their own access and retention controls. A public citation renderer must not bypass the source system's permission check.
Database enforcement is another option. PostgreSQL row security has special behavior for superusers, bypass roles and normally table owners. Test the actual application role; enabling row security while connecting with a bypass role does not establish the intended boundary.
Test another tenant's record, mixed-permission documents, nested group changes, deleted sources and failed ACL refresh. Missing or stale access metadata should produce a defined denial or unavailable state, not a broad retrieval fallback. Check writes separately: permission to read a record does not authorize modifying it.
A small approved collection with uniform access can be a simpler starting point. Per-user retrieval becomes necessary when the workflow spans distinct access groups. Neither choice removes the need to control the data sent to the model provider or stored in traces.
How do you make RAG retrieval respect user permissions? Keep source identifiers, tenant boundaries, access metadata and permission versions with documents and chunks. Derive the caller's identity from trusted authentication infrastructure, filter retrieval with the policy for that caller, and verify that other search paths cannot bypass it. Index access is not document access: if a broad service account can search every record, the application must still enforce the user's permissions before protected content reaches the model.
How should an AI assistant handle cached answers after a user's access changes? A cached answer must not be reused just because the same user identifier is still valid. One approach is a cache key that includes tenant, effective access context, policy revision, source version and request identity where required, with invalidation covering membership and document ACL changes. Another is to cache approved source fragments and reauthorize them before assembling an answer. Choose based on how fresh permission decisions must be.
Can citations in an AI assistant leak restricted information? Yes. A blocked document body paired with a revealing citation title can still disclose information. Apply policy to source labels, previews and download links, and make sure a public citation renderer cannot bypass the source system's permission check. Logs, evaluation exports and administrator review screens also need their own access and retention controls, since they can hold the same protected content.
For an assistant over governed sources, see enterprise knowledge assistants. Book a call to discuss the source ACLs, user groups and revocation behavior the application must preserve.
Optional Google Analytics stays off until you choose Accept analytics.