By Greg Nowak. Last updated 2026-11-20.
An internal AI assistant becomes more useful when it can search across the business. That also makes permissions harder to ignore. Staff handbooks, management notes and client folders may sit behind one search box, but they still have different audiences.
Before expanding a pilot, ask your team to demonstrate why each retrieved passage was available to the person asking. A reassuring answer on screen is insufficient evidence: the assistant might have received confidential material and simply left it out.
Retrieval-augmented generation, or RAG, brings searched content into an AI answer. A useful permissions review follows that content from its source, through indexing and retrieval, into conversations people can save or share.
Agree the business rule before choosing a filter
Start with a few concrete examples. Can a contractor search every project for their client, or only assigned projects? Should an account manager see commercial terms as well as delivery notes? Who decides when a shared document crosses a client boundary?
Write the rules with the people who own the information. For an agency, a rule might require both membership of the correct client workspace and permission to read the individual document. A department label alone may be too broad.
Then separate login from authorization. Login establishes identity; authorization establishes what that identity may retrieve. The server must resolve permitted access from trusted records. A workspace selected in the browser is a request to validate, not proof of membership.
If identity or access cannot be established, stop the search. An empty group list, failed permissions lookup or missing client identifier must never trigger an unrestricted fallback.
Keep permissions attached when documents become passages
Search systems commonly split documents into smaller passages. Check that every searchable passage retains its source identifier, relevant access metadata and client boundary. Repeat the inspection after replacing documents, changing the extraction process or rebuilding the index.
Also check who can set those permission fields. Ordinary document text or an uploaded file must not be able to declare itself available to everyone. Keep unresolved material unavailable until its access has been established.
Microsoft’s current document-level access guidance distinguishes application-managed string filters from native permission enforcement. Several native capabilities, including SharePoint ACL filtering and supported storage permissions, are generally available with REST API 2026-10-01; Purview sensitivity-label enforcement remains in preview. It also requires generated chunks to retain permission metadata and source context. Check the capability and API version your deployment actually uses.
Enforce access before content reaches the model
The application should select the permitted search scope and construct restrictions from verified access information. Review every retrieval route, including follow-up searches and fallback tools. One correctly filtered endpoint does not protect a second route that searches everything.
For an OpenAI integration, file search supports metadata restrictions through filters. That provides a mechanism; your integration must connect it to business permissions. Selecting a vector_store_ids value or accepting a client identifier from the request does not establish that the caller is entitled to that scope.
Configuration deserves the same attention as code. Elastic documents that omitting the document-security query disables that restriction for the relevant indices permission entry. Its document permissions combine across roles using OR, so an additional unrestricted role can widen access. Inspect the effective permissions used during retrieval.
OWASP recommends least privilege and restricted data sources, and warns that system-prompt restrictions can be bypassed. Instructions asking an assistant to keep information confidential cannot replace enforced access checks.
Ask for evidence from the actual application
Create clearly marked fictional documents with known permissions. Write expected results before testing, and include authorized users: a broken search returning nothing to everyone must not count as a pass.
| Scenario | Expected behavior | Evidence |
|---|---|---|
| Two teams ask the same question | Each retrieves only permitted material. | Retrieved document and passage identifiers. |
| A contractor searches across clients | Other clients’ content stays unavailable. | Verified scope and retrieval results. |
| Someone changes the requested client identifier | Unauthorized scope is rejected before retrieval. | Server authorization decision. |
| Permission metadata is missing | The content remains unavailable. | Indexing outcome and subsequent searches. |
| A user receives another role | Combined grants match the approved access rule. | Effective permissions and retrieved identifiers. |
| Access is removed | Retrieval stops within the agreed window. | Removal, refresh and test timestamps. |
Run these through the real application endpoint, using ordinary questions and explicit requests for restricted documents. Inspect retrieved passages rather than relying on the wording of the final answer.
For OpenAI file search, request include: ["file_search_call.results"] to inspect results; they are not returned by default. Keep diagnostic access restricted and record only the evidence needed for the review.
How quickly does removed access take effect?
Retrieve an allowed test document, remove access at the authoritative source, and repeat the request until retrieval stops. Test document permission changes, group membership changes and failed refresh jobs separately.
Microsoft’s guidance explains that permission freshness varies by mechanism: indexed ACLs, group resolution and resource authorization have different refresh or caching behavior. Native permission filtering does not promise immediate revocation or a corpus-wide freshness guarantee. Agree an acceptable window with the business and measure the deployed system against it.
Include saved answers, caches, exports and conversation history. Decide who may reopen or share them after access changes, and whether follow-up questions may reuse previously retrieved content. Removing access cannot recall information someone has already read, but retained copies still need an explicit policy.
Make the review a concrete piece of work
A useful engagement should produce an access map, agreed rules, a walkthrough of the retrieval path and acceptance tests with recorded results. Each gap should have an owner and a proposed fix. That gives operations leads and agency teams something concrete to approve before rollout.
Greg can help review the current integration, implement permission propagation and retrieval restrictions, and establish a maintainable revocation process. If your assistant is moving beyond its first pilot, get in touch with Greg to discuss a focused permissions review. Bring the sources it searches, the user groups involved and the boundaries you need to demonstrate.
Related on GrN.dk
- AI automations need a spend dashboard before the first runaway bill
- AI Meeting Notes: Who Owns the Work After the Call?
- Claude vs ChatGPT: One Comic Prompt, Two Very Different Results
Need help with this kind of work?
Discuss an AI search permissions review Get in touch with Greg.