Buying an Enterprise AI Assistant: A Checklist for Who Can Retrieve What Before It Answers
Using a fictional distributor buying an internal document AI assistant, ask vendors how document-level permissions are enforced at retrieval, whose identity is checked and when revoked access takes effect, with Microsoft Learn as a reference, then run acceptance tests with test users and marked documents before data owners sign off.
Published by Mentrix Digital ·

Key points
- Permissions must be checked before retrieved content reaches the model. Once the model has seen it, telling it “not to mention” something is not access control. Buyers need a written answer on where checks happen and whether they use the asking user's identity or a system account.
- Access revoked at the source does not always vanish from the index immediately. Measure the actual time from revocation until the assistant stops finding the document, and write an acceptable maximum into the contract.
- An AI assistant will expose whatever the source systems already overshare. Each source's data owner reviews and approves it before it is connected, and the tests must show zero leaks of the codes planted in restricted documents.
“It uses your existing permissions” is not an answer you can accept
A fictional spare parts distributor with about 300 staff keeps its documents in SharePoint sites and a shared file drive: price and discount tables, manufacturer contracts, procedures, HR folders with appraisals and salary reviews, and board minutes. Sales and operations want an AI assistant they can ask “What is the maximum discount for tier B customers?” or “How do we handle returned defective parts?”. After the demo, the vendor says, “It uses all your existing permissions.”
During the pilot, a sales rep asks about the bonus policy and the assistant quotes a draft from an HR folder that was accidentally shared with “everyone in the company” years ago. In another case, a contractor whose engagement ended two days earlier can still find a manufacturer contract, because the index has not yet picked up the permission change. Neither case means the AI “ignored permissions”. It means “uses your existing permissions” does not say where, when or from which data permissions are checked. This is a hypothetical scenario, not client work, and this article is procurement and testing guidance, not legal advice or a security certification.
The principle to hold on to: permissions must be checked before retrieved content reaches the model. If the system hands the model documents the user may not see and then tells it not to answer, or filters the answer afterwards, the content can still escape through a summary, a citation or a reworded answer.
If the problem is that documents the user may read contradict each other, rather than permissions, acceptance testing for that is covered in the conflicting policy documents guide →
Reading Microsoft's documentation as a reference: where and when permissions are checked
The Microsoft Learn page Document-Level Access Control – Foundry IQ (Azure AI Search), last updated 23 November 2026, describes enforcing document-level permissions from ingestion through query execution. In the token-based approaches, the service reads user, group and scope claims from the user's token attached to the query in the x-ms-query-source-authorization header, compares them with the permission metadata stored alongside indexed documents, and returns only documents the user is allowed to read. The page distinguishes the Authorization header, which carries the calling application's token, from the user token used for document permissions, so an application that can call search is not necessarily a subject whose document permissions are evaluated. It also mentions elevated read for administrators.
The part buyers should read slowly is permission freshness. The page states that permission refresh does not provide immediate revocation or a corpus-wide freshness SLA. ADLS Gen2 ACLs, for example, are indexed snapshots refreshed roughly daily by default or by an explicit resync. It also says chunked documents must carry permission metadata on every protected chunk, and notes that some features are still in preview. This article uses the Microsoft page as an example of the questions to ask, not as a product recommendation; the same questions apply to every vendor, and the current documentation should be checked before deciding. The page groups approaches into five:
- Security filters: the application passes a user or group identity as a string to filter results. Suits non-Microsoft identity systems, but correctness depends on how the application builds the filter.
- POSIX-like ACLs and RBAC scopes: the user's Microsoft Entra identity is checked against ADLS Gen2 ACLs or container-level scopes; standard Blob Storage supports container scopes, not per-file ACLs.
- Microsoft Purview sensitivity labels: labels are read from the source and enforced at query time, which the page marks as preview.
- SharePoint in Microsoft 365 ACLs: the supported subset of permission metadata is stored and checked at query time.
- OneLake source permissions: query-time OneLake authorization instead of copied user and group lists, also in preview.
Procurement checklist: questions that need written answers
Send these questions to every vendor at the same time and ask for written answers that refer to the actual configuration of the system you will receive, not general marketing copy. If a vendor cannot answer one, record it as unknown rather than guessing:
- Where are permissions checked: before retrieved content reaches the model, or by filtering the answer after the model has read it? The buyer in this example accepts only the former.
- Whose identity is used: the asking user's, passed on every query, or a system account that can see everything? If the latter, how is the filter built and who reviews it?
- What level of permission each source supports: per document, per folder or per container, and which features are still in preview.
- Does permission metadata follow every chunk cut from a document, and every copy, cache and summary the system creates?
- When access is revoked or an account is closed at the source, what is the longest it takes before the assistant stops finding the document, and can a resync be triggered immediately?
- Are broad grants with named exclusions, or permissions inherited through nested groups, supported? If not, how are they handled?
- Can administrators bypass permission checks, when, and who reviews the record of each use?
- Do citations point only to documents the user can open, and when no permitted document exists does the system say it found nothing instead of guessing from the model's general knowledge?
- What do usage logs keep, for how long and who can read them? Logged questions and retrieved documents are sensitive data too.
If you want help preparing procurement questions, comparing vendor answers and setting acceptance tests before signing, see AI Strategy & Consulting →
Acceptance testing with test users and marked documents: before and after
Create test users in the organisation's real identity system, with at least four roles: a sales rep, an HR officer, an external contractor, and an employee whose access will be revoked during the test. Place test documents in every restricted area, each containing a unique code found nowhere else, such as “test code HR-7Q2”. Each test user asks 40 prepared questions, including indirect ones such as “Summarise every bonus policy you have” or “Which documents mention salary adjustments?”. Then search for the codes in the answers, the citations and the retrieval logs, not just the answer on screen.
The following example is hypothetical and shows what to expect before and after fixes. If a single code leaks, stop the rollout until the cause is found, fixed and the full set rerun:
- Sales rep asks about bonuses. Before: the answer quotes text containing an HR code. After: no HR code in the answer, citations or retrieval log, and the system says nothing was found and gives the HR contact channel.
- Retrieval. Before: the index is queried with a service account that sees every folder, and results are filtered on screen. After: every query carries the asking user's identity, and the logs show results were filtered before reaching the model.
- Chunk permissions. Before: some chunks carry no permission metadata. After: a sample of chunks from every source shows 100% carry it.
- Contractor's access revoked at 10:00, with the question repeated every 30 minutes. Before: still found two days later. After: no longer found within the agreed maximum, such as 24 hours, or immediately after a resync.
- HR folder shared with everyone at the source. Before: passed, because the AI “followed permissions”. After: logged as a source permission defect; the data owner fixes the sharing and the test is rerun.
- Pass criteria: zero code leaks across every role and question, and every cited document can actually be opened by the user who asked.
Rerun this test set whenever the model version or a data connector changes; keeping a held-out set and comparing results is covered in the model upgrade regression test guide →
Who approves what: data owners, security and the buyer
Neither the vendor nor the AI decides which sources go in. Each source has a named data owner, such as the head of HR for HR folders and the purchasing manager for manufacturer contracts. Before a source is indexed, its owner reads a report of broadly shared documents, such as those shared with the whole company or by link, fixes what should not be shared, and approves in writing. Security approves how user identity is passed, administrator rights and every exception. The buyer signs off only after seeing the full test results. Start with low-sensitivity sources, such as procedures, and add sources one at a time.
After launch, each data owner samples the logged questions and retrieved documents for their source every month. Any administrator bypass of permission checks needs a request and a second approver. If a user reports seeing something they should not, take that source offline first and investigate afterwards. AI can summarise logs to point out entries worth checking, but deciding whether something leaked, and bringing a source back online, are human decisions.
If you want an internal document AI assistant that checks permissions before retrieval, with sign-off steps for data owners, see Custom AI Solutions for Business →
Metrics and contract terms to write down
Use the metrics below both at acceptance and after launch. Values that must be zero are stop conditions, not targets to work towards. The buyer's legal team should review the wording of any contract terms before signing:
- Zero test code leaks, before launch and every time a data connector, model version or chunking method changes.
- Time for revoked access to take effect, measured and reported as the maximum, never above the ceiling written in the contract.
- Share of chunks carrying permission metadata in a monthly sample: 100%.
- Share of answers whose citations the user can actually open, and the number of answers where the system said it found nothing instead of guessing.
- Number of overshared documents found at the source, and how many the data owners have fixed.
- Number of administrator permission bypasses, each with an approved request.
- Contract terms: the vendor gives advance notice when the permission model changes or a preview feature changes status, the buyer may retest at any time, and indexes, copies and logs are deleted at termination with evidence of deletion.
If you want your identity and group systems connected so the AI assistant and the sources agree on permissions, with reports of broadly shared documents, see Automation & Business Software →
Sources
- Vendor documentation · Microsoft Learn: Document-Level Access Control – Foundry IQ (Azure AI Search) · Accessed


