AI Infrastructure & Runtime

AI Employees and Enterprise Data

Data access is a permission problem before it is a retrieval problem, and the arithmetic a vector store cannot do.

By Hitank Shah • 8 min read • Updated 2026-11-08

Direct Answer (Quick Summary)

AI employees need enterprise data through scoped, auditable connectors rather than a shared dump. Read access should default to read-only, be limited to named systems and records, and log every query. Aggregations must be computed in the database, not reconstructed from retrieved document chunks.

Key Takeaways

  • Retrieval returns text chunks. It cannot sum, join, or count, so any arithmetic must happen in the source system.
  • Default to read-only connections. Grant write access per action class after the output has earned trust, not before.
  • Scope at row level, not table level, so one employee cannot read another team's records by guessing an identifier.
  • Every retrieved fact needs provenance: source system, record id and timestamp, or it cannot be verified later.
  • Pin the handful of queries a role actually needs as a scoped view instead of granting the underlying database.
  • A vector store is a knowledge layer. It is not a substitute for structured access when the answer is a number.

AI employees reach enterprise data through scoped, auditable connectors rather than a shared dump. Read access defaults to read-only, is limited to named systems and records, and every query is logged. Aggregations are computed in the source system, never reconstructed from retrieved document chunks. Get this layer wrong and every other part of the platform — the model, the memory, the approval gate — inherits the problem.

Data access is a permission problem before it is a retrieval problem

Most teams start here by asking which model to use. That is the wrong first question. The first question is: what is this employee allowed to see? Because an AI employee with a model that is slightly too weak will produce worse output, but an AI employee with an over-broad data grant produces a security incident. The capability gap degrades. The permission gap does not.

Four layers sit between the employee and the data, and each one is a place to constrain.

  1. The source system. The system of record. Whatever it already enforces about who can see what still applies — your AI employee should not be a more privileged account than the human who owns the role.
  2. The connector. How the employee authenticates. What MCP is and why it matters for AI employees covers the mechanics, but the governance point is that the connector is where you attach an identity, and identity is where you attach a scope.
  3. The scope. The rows, tables, folders and date ranges this employee may touch. This is the layer people skip.
  4. Provenance. For every fact that reaches the output, the system it came from, the record id, and when it was read. Without provenance you cannot verify a claim or debug a wrong one.

A classification that decides access mode

Data classExamplesAccess modeWhy
Reference documentsPolicies, runbooks, handbooks, contractsScoped read, retrieved in contextProse; chunks answer prose questions well
Structured recordsCRM accounts, policy records, invoicesScoped read via a view or APIAnswers are aggregates; compute them in the source
Event streamsRenewal notices, ticket updates, webhooksTrigger plus scoped write-backDefines the recurring trigger for the role
CredentialsAPI keys, tokens, OAuth grantsNever retrievedBelongs in the connector, not in context
Everything elseThe rest of the warehouseNot connectedScope creep waiting to happen

That last row is the one to enforce. If a data class is not in this table, the default is no connection. That default is what keeps how AI employees access company knowledge from turning into a compliance incident six months later.

The arithmetic problem

This is the failure everybody hits eventually. An employee retrieves a chunk of a quarterly report that says revenue was up, then three customer emails that mention large accounts, then a summary memo it wrote last month. It now has a confident, well-formatted answer to a question it cannot actually answer.

Retrieval returns text. Text does not carry the semantics required to sum, join, group, deduplicate or count. A chunk saying revenue was up is a characterisation, not a figure, and a model reading it will produce a number the way a person reading a review produces a memory of the place. The number will be plausible and wrong, and in a finance or renewal context that is a real problem.

The rule that resolves it: anything numeric is computed in the source system, and the returned value is read back verbatim. The employee asks the database, the database answers, and the number in the report is the number the database returned. If a tool returns an aggregate, the employee uses it and does not re-derive it from prose.

Procedure: wiring enterprise data to an employee

  1. Write down the questions the role needs to answer. Not tables. Questions. Ten real questions is enough to scope a first role.
  2. Map each question to a system. Questions that map to prose get retrieval. Questions that map to numbers get a structured query.
  3. Start with one read-only connector. No writes at all until the output is trusted. This is the standard order and it is not negotiable, because it matches how to control what AI employees can access.
  4. Scope at the row level. One team's employee must not be able to read another team's records by guessing an id. Prefer a database view over table grants for exactly this reason.
  5. Pin the hot queries as a named view. If the same four tables are queried on every run, make those four tables a view the employee can read. Fewer moving parts, easier audit, easier to revoke.
  6. Log every read. System, query, rows returned, employee, timestamp. If you want the reasoning behind it, how to track AI decisions depends on this existing first.
  7. Require provenance in the output format. Every fact in a deliverable carries its source record id. Facts that cannot cite a source do not appear in the output.
  8. Add write access per action class, last. One class, reviewed, then the next. See AI employee permissions explained.

Worked example: a monthly close

A finance employee owns one outcome: produce a reconciliation pack each cycle. The questions it must answer are few and known.

  • Which ledger lines had no matching bank line?
  • Which bank lines had no matching ledger line?
  • Which matches were above a tolerance threshold?
  • Which exceptions carry a reason code?

All four are aggregates. None should ever be answered from retrieved prose. The implementation is a read-only view over the ledger and bank export, a deterministic match, and an exception list. The employee writes the narrative around the results and drafts the emails, but it does not compute the totals — it reads them back from the match run.

The failure mode in this exact design: someone adds a knowledge base of prior close packs so the employee can reference last quarter. Now it can produce a beautifully formatted pack whose header total came from a document rather than the data, and nobody catches it because the document was real. The mitigation is step seven. If a number cannot cite a source record id, it does not ship.

That is the same discipline described in knowledge systems for AI employees and why context matters for AI employees — context is a routing decision between prose and structure, not a volume of text.

Failure mode: the shared dump

The most common data mistake is connecting the employee to a wide read role because it was faster to set up than a view. Everything appears to work for several weeks. Then an output contains a figure from a table nobody realised was in scope, an auditor asks where the number came from, and nobody can answer because the query was generated, not written. Wide read roles also make revocation hard: you are no longer sure what the employee touched.

How to apply this

Take the first role you want to hire. Write its ten questions, sort them into prose and numbers, and connect only the systems those questions need — read-only, row-scoped, with provenance in the output format. The storage and runtime side of this is covered in building an AI employee runtime; the discipline above is what makes that runtime safe to point at real data.

Sources and further reading

Frequently Asked Questions

Can AI employees query our production database directly?

Not the database itself — a scoped view or a read-only role built for the role's known queries. Granting an AI employee a direct connection to production tables removes the last place you can express intent, and it makes revocation guesswork. Build a view with the exact columns the role needs, log reads against it, and keep write access off entirely at first.

Why does an AI employee get a number wrong when the data is right there?

Because it retrieved prose rather than querying the source. A document chunk saying revenue was up is a characterisation, not a figure, and a model will turn it into a confident number. The fix is structural: compute aggregates in the database, return the value, and have the employee read it back verbatim instead of deriving it.

How much of our company data should an AI employee be able to see?

Only what its named role needs, scoped at row level, starting read-only. Write the role's real questions first and connect only the systems those questions touch. Anything not required by a question should not be connected at all, because an unused grant is still an incident waiting for a prompt injection.

Do we need a vector database for AI employees to use our documents?

For prose-heavy reference material such as policies, runbooks and contracts, yes, some form of retrieval is what makes those documents usable. But retrieval is the knowledge layer only. Structured questions still need structured access, and a vector store cannot compute joins, counts or sums no matter how it is tuned.

How do we know which data an AI employee actually read?

Log every read at the connector: system, query, rows returned, employee, timestamp. Without that log, provenance in the output is a claim rather than a fact, and you cannot answer an audit question or debug a wrong figure. It is also the input to per-employee cost attribution, since most unexpected spend traces back to one employee pulling far more context than expected.

Related reading