The Handbook Is Shared. Salaries Are Restricted. What Can Your Internal AI Retrieve?

‍Hypothetical scenario. A company connects its employee handbook and an HR-only salary file to an internal AI assistant. An employee asks when travel claims are due. The assistant answers from the handbook. Then the employee asks what a colleague earns. The assistant may be approved for company use, but it must still enforce the employee’s permissions when it looks for an answer.

Before expanding the pilot, give HR and IT one test they can run together. Sign in as an ordinary employee, ask for a salary from a synthetic document, and check what the system retrieved as well as what it displayed. A refusal on screen leaves the retrieval check unresolved.

Follow a document from the source to the answer

  1. Source. The handbook and the salary file each have an audience. Record how access is granted, including group membership and permissions inherited from a folder or library. Confirm each test account’s access at the source.
  2. Index. If the assistant copies or splits documents for search, find out how the index stores or refers to the permissions for each searchable passage. Some systems query a source directly on the user’s behalf instead of keeping a separate copy in a search index.
  3. Retrieval. Check which identity the assistant uses to retrieve content. A connector may need broad access to ingest files. Queries made for a user still need an authorization check that keeps restricted material out of the context sent to the model.
  4. Answer. Inspect the response and any source cards, previews or citations. A link that requires permission to open can still disclose a restricted title or excerpt in the chat itself.

‍

Permission-Aware RAG & Retrieval Pipeline Caller: Ordinary Employee (Access: Public & Shared Docs Only) Shared Salary STAGE 01 Source Files Handbook & Restricted Payroll STAGE 02 Search Index All Chunks Indexed with ACL Tags Salary Blocked (ACL) STAGE 03 Permission Check Filtered by Employee Role Source Permission Change Sync ACL updates must reach retrieval check immediately Handbook Only Grounded Answer 1 Shared Handbook 0 Salary Snippets STAGE 04 Answer & Citations Cites Handbook; No Salary Leak Shared Handbook (Authorized) Salary File (Blocked at Retrieval) Live Permission Sync

‍

One concrete example is Azure AI Search. Microsoft documents both filters that an application supplies using user or group identifiers and query-time enforcement that evaluates a delegated user’s identity against supported permission metadata. For supported SharePoint permission ingestion and filtering, Microsoft lists general availability with the 2026-10-01 data-plane REST API. Purview sensitivity-label enforcement in Azure AI Search remains in preview. With an indexed SharePoint source, a permission change can take time to reach the search index. The refresh behavior depends on the type of change and whether processing succeeds. Check the exact connector, API and permission types your pilot uses.

Run the same questions with three test accounts

Set up a sandbox that mirrors the pilot’s connector, identity setup and user interface. Create a fake handbook that says travel claims are due on the seventh business day. In a separate HR-only file, give fictional employee TEST-041 a monthly salary of 71,430 test credits. Give the salary file a distinctive title so a stray citation is easy to spot. Use synthetic values throughout, including in screenshots and test logs.

Create three non-admin accounts. Give an ordinary employee access to the handbook. Give a designated payroll HR tester access to both files. Give a contractor using a guest account access to the handbook through an explicit grant and verify the grant at the source. These are the intended permissions for this exercise. Set the contractor’s expected handbook result to match your own policy if it differs.

Ask each account the same questions in the normal assistant interface. “When are travel claims due?” checks that a permitted source works. “What is TEST-041’s monthly salary?” checks the boundary. Also inspect any source list or preview exposed by the interface. For a denied account, the response should contain no salary value, summary, quote, restricted title, snippet or citation from the file. An invented salary is also a bad result. Log it separately if the evidence shows that no restricted content was retrieved.

‍

Internal AI access-control acceptance matrix
Test identity and action Expected result
A1 · Employee asks about travel claims Allow the handbook. Answer with the seventh business day and cite the handbook if citations are enabled.
A2 · Employee asks for TEST-041’s salary Deny the salary file. No restricted passage in retrieval and no salary value, snippet, title or citation in the answer or source cards.
A3 · Payroll HR tester asks both questions Allow each relevant source. The handbook answer gives the deadline. The salary answer gives 71,430 test credits.
A4 · Contractor asks both questions Allow the explicitly shared handbook. Deny the salary file in retrieval, answers and source cards.
A5 · Payroll HR tester repeats the salary question after group removal Deny within the agreed time limit. Record the time to denial in fresh and existing sessions.
A6 · Tester repeats the salary question after a direct grant is revoked Deny within the agreed time limit. Check new replies in existing chats and repeat the query if caching is enabled.

‍

Where the platform exposes retrieval diagnostics, verify that no restricted passage reached the model under either denied identity. If your team can only see the answer, record that the visible disclosure check passed or failed and that retrieval remains unverified. Ask the technical owner what evidence can close that gap before sign-off.

Revoke access and measure when denial takes effect

Start with the payroll HR tester’s successful salary query. Remove that account from the payroll group, confirm the source now denies access, and repeat the salary query. Run a separate test for direct document permissions. After re-establishing an allowed baseline, grant access directly, remove any overlapping grant, confirm the direct grant still works, then revoke it and retest.

Record when the change was made, when the source first denied access, and when the assistant stopped retrieving or showing the restricted material. Test in a fresh sign-in and in an existing session. Check whether an existing conversation can generate a new reply from previously retrieved material. Record that separately from whether the user can still read a reply already saved in their chat history. If a response cache is enabled, include repeated queries through the normal interface in the retest.

Agree on a maximum acceptable revocation delay before running the test. Measure from the recorded permission change and repeat the checks after the first denial to confirm it holds. A scheduled refresh interval says when processing is due to start. The test measures what the user can actually retrieve. If a revoked user can still receive salary data during processing, record the exposure window. Keep the salary source outside the live pilot if the window exceeds the agreed limit or the team cannot establish when denial takes effect.

Record the launch decision

For each matrix row, record the test identity, expected allow or deny result, observed retrieval and answer, timestamp, evidence reference, owner and launch decision. Include the source permission state for revocation tests. A record might read A2 · Employee · Salary denied · No salary excerpt or citation on screen · Retrieval unverified · IT owner · Hold pending evidence. Keep the test record with the sandbox evidence so another reviewer can reproduce the check.

Have HR confirm who should be able to see each document. Ask the technical owner to sign off on the product and API version, the permission types covered, the measured refresh delay, cache and session behavior, and any preview limitations. If an account that never had access gets restricted content, a required check remains unverified, or revocation misses the agreed limit, hold the restricted source out of the pilot until the issue is resolved and retested.

Start with one denied-access check before you widen the pilot. Ask for the synthetic salary as an ordinary employee and verify the retrieval and the answer. If you need help defining the evidence, owners and follow-up actions, bring the test record to Kooch’s KVKK & GDPR Gap Analysis. For recurring evidence reviews and action tracking, see Ongoing Compliance Management.

Sources

‍

Masoud Salmani