When an employee leaves finance, removing their access to the finance folder should also stop the assistant from using that folder to answer their questions. Check the employee’s current rights before a passage reaches the model and again before serving anything saved from an earlier request. A refusal on screen establishes little if the model still received the restricted text.
Follow the document under the employee’s identity
Consider a hypothetical transfer from finance to operations. In finance, an employee could read a supplier negotiation brief and the general purchasing procedure. In operations, they still need the procedure to raise an order. The negotiation brief contains an unpublished concession that only finance may discuss. Both files mention the same supplier, and a perfectly ordinary purchasing question could bring both into the search results.
A connector may have permission to read both files so it can build a search index. That account’s rights describe what the connector can collect. To decide what the assistant may use, the search service needs the identity of the person asking, their current memberships and the source rules that apply to each candidate. A paragraph cut from a restricted document inherits the document’s restrictions. Keep a reference to the parent so the service can evaluate those rules even when it retrieves just one paragraph.
Ask the document owner to identify the effective permissions in the source. Removing a person from one group can leave another grant in place, for example through a shared project folder. Verify the expected result by opening the file with a test account that has the employee’s effective rights. If the source still grants access, fix or clarify that rule first. The assistant should follow the same access decision the owner expects in the original system.
Put the check before the passage enters the answer
Run the access check while assembling the material for the model. Search can use a filter that reflects the source rules, or return candidate identifiers to a trusted service that verifies access with the source. In either design, release the text only once the check succeeds. Apply the same decision to file titles, previews and citations shown in the interface. The title of a negotiation brief can itself disclose the existence of negotiations.
If the assistant relies on a copy of group memberships, ask what happens between a change in the directory and the next refresh. Record when the source first refuses access and when the assistant can confirm the change. Where current access cannot be established, withhold the item and say when a result is incomplete if that matters for the task. The OWASP Authorization Cheat Sheet gives the underlying design principles of checking permissions on each request and denying access by default.
Recheck results the assistant can reuse
A cached answer can take a shorter route than a fresh search. Yesterday the employee asked how to order from the supplier and received a summary drawn from both files. Today the same question may match an answer saved for that employee. Including the employee’s identifier in the cache key keeps colleagues apart, but it cannot detect yesterday’s change of role. Track which source items contributed to a reusable answer and check current access to all of them before reuse. If one fails, discard the answer and rebuild it from permitted material.
Separate HTTP caching from the assistant’s own stores. RFC 9111, HTTP Caching, defines the no-store directive for HTTP caches. A correctly configured response header is useful on sensitive pages. The application still has to govern stored summaries, conversation history and search previews. A header on the web response does nothing to change the records the application kept in its database.
A person may already have read or downloaded an authorised answer. Revocation cannot recall their copy. It can control what the service displays again or includes in the next model request. Decide how the system should handle an old conversation containing restricted passages. If it cannot reliably separate them, clear the affected context before continuing and explain why the conversation must restart, without naming the restricted content.
Run a revocation test with a positive control
- Prepare safe fixtures. Use a fictional negotiation brief with a distinctive concession and a general purchasing procedure available to both roles. As the finance test user, ask about ordering. Confirm in the restricted test trace that the assistant used the brief, then save the conversation and warm the answer cache.
- Change the source permission. Move the test account to operations. Verify that it can still read the procedure and that the source denies the brief. Record the time and effective identity so a delay in the directory can be distinguished from a delay in the assistant.
- Exercise the ordinary paths. Repeat the question in the existing conversation and in a fresh session. Check the previously saved answer, the citation preview and the next request to the model. Look for the restricted item’s identifier as well as its distinctive detail. A plausible, polite answer can conceal a failed retrieval check.
- Require both outcomes. The procedure must remain usable and the brief must disappear from newly served material. A system that returns nothing for everyone also fails. If an old answer reappears, trace it to its store, correct the reuse rule and repeat the test with the cache warm again.
Key takeaways
- Apply the source’s current permissions under the identity of the employee asking the question.
- Treat cached answers and old conversations as additional places where access can persist.
- Test both the information an employee loses and the information they still need to do their job.
If you are reviewing an assistant’s access controls, get in touch to discuss a revocation test.
Drafted with AI assistance and reviewed by the TEMERON editorial team.