Your Company Assistant Knows Everyone's Salary: How to Keep Internal AI Inside the Lines
An internal AI assistant can show staff files they were never allowed to open. Here is how to make it respect permissions before it goes live.

A company assistant that answers questions from your own documents is one of the most useful AI tools you can give staff. It is also one of the fastest ways to leak the payroll spreadsheet. The danger rarely comes from a clever attack. It comes from an ordinary employee typing "what does the head of sales earn?" and getting an answer, with the source document attached.
This happens because of how these systems are usually built, and you can prevent it. Do the work before launch, not after the first awkward screenshot goes round the office.
Why the assistant sees more than your staff do
Most internal assistants work by reading your file shares, intranet, email archives and HR system into a searchable index. To do that, someone connects them with an account that can read everything. That is convenient for setup, and it is the root of the problem.
If the assistant searches with that all-seeing account, it answers every question with the full company's knowledge, whoever is asking. The permissions your IT team spent years setting up on folders and systems stop counting. The intern and the CFO get the same answers.
A second, quieter problem sits underneath. Many companies have files that are technically open but were never found: a salary review saved to a shared drive, a termination letter in a team folder, a contract with "everyone" access left over from a migration. Nobody stumbled on them because nobody went looking. An assistant goes looking for a living. Oversharing that used to be harmless becomes a search result.
The rule that matters: answer as the person asking
The one design principle to insist on is this. The assistant must check the user's own permissions every time it retrieves a document, at the moment of the question. If the person asking could not open the file themselves, the assistant must not read it, quote it or summarise it for them.
This is often called permission-aware or permission-trimmed retrieval. Checking access once when documents are indexed is not enough. People change roles, leave, and get added to and removed from projects every week. The check has to be live, or at least synchronised often enough that a person moved out of HR on Monday cannot ask about HR files on Tuesday.
Ask your vendor or internal team directly: "When an employee asks a question, whose permissions decide which documents are searched?" If the answer is anything other than "that employee's, checked against the source system", the tool is not ready for sensitive data.
Clean up before you connect
Permission checks only enforce the permissions you have, so the assistant will expose any bad permissions you feed it. Before switching it on, fix the worst of the oversharing it would otherwise surface:
- Run an access review on folders that hold salaries, contracts, performance reviews, disciplinary records, medical notes and board papers. Remove "everyone" and "all staff" access where it does not belong.
- Keep some repositories out of the assistant entirely. Payroll and HR case files rarely need to be searchable through a general chat tool. A dedicated HR system with its own controls serves them better.
- Label sensitive documents so the assistant can be told to ignore that label, whatever the folder permissions say.
- Assign an owner to every source you connect. Someone has to answer for what is in it.
Expect this phase to take longer than the AI setup. That is normal, and it improves your security whether or not the assistant ever ships.
Test it the way staff will use it
Before launch, give a handful of ordinary accounts to people who will try to break it. A junior employee, a contractor and someone from a different department should ask the obvious questions: what does my manager earn, who is being let go, what are the terms of our biggest client contract, what did the last HR investigation find. Ask indirectly too, because "summarise recent changes to the compensation bands" can pull out the same facts as a direct question.
Every answer that draws on a document the tester should not see is a defect, not a quirk. Fix it at the source and test again.
Keep a record and keep checking
Log which documents the assistant used for each answer, along with who asked. If something leaks, you need to see exactly what was shown and to whom. Logs also show you patterns, such as repeated probing for salary data, that deserve a quiet conversation.
Then repeat the test every quarter and after every new data source is connected. Permissions drift. New folders get created with loose defaults. An assistant that was safe at launch can become unsafe by spring without anyone touching the AI.
The leadership decision
Treat this as a question of who carries responsibility. A named person should own what the assistant can reach, sign off on each new source, and receive the test results. Without that owner, the assistant grows by convenience, one connected folder at a time.
At Hercules A we do this groundwork with clients before the assistant goes live, because it decides whether the tool gets used with confidence or switched off after its first mistake. Whoever does it for you, make sure the assistant can only see what the person asking can see.