Blog & Insights

How do you connect AI to your systems safely: which identity, what permissions and what logs?

Give the AI system its own identity, set its permissions in the system that holds the data, and keep a log of everything it does where it cannot change the log.

Treat the AI system as a new account that will sometimes be wrong and can be misled by what it reads. Give it its own identity, grant it the least access its task needs in the system that holds the data, and keep a log of everything it does where it cannot change the log. Put those controls in the systems around the model, because an instruction in a prompt is a request that the model may not follow.

Every AI system needs these three, including an assistant that only reads and answers. A system that also takes actions on its own needs limits on what it may do, and the section near the end says where those start. The steps are in order of priority.

1. Write down what it is for and what it may touch

Every later step depends on this. On one page, record the task, the systems it reads from, the systems it writes to, the kinds of data involved, and the person in the business who owns the outcome.

“Help the service team” is too wide to secure. “Read new support emails, look up the customer’s open orders, and draft a reply for an agent to send” tells you which access to grant. If you cannot write that page yet, the system is not ready to be connected to anything.

2. Give it its own identity

An AI system should sign in as itself. It should not use an employee’s account, a shared service account, or an administrator’s key.

With its own identity, the logs show what it did, its permissions can be fitted to its task, and you can turn it off without breaking anything else.

  • Use a credential nobody has to store, where the platform offers one. On Azure, Microsoft says managed identities eliminate the need for developers to manage credentials. Where a key is unavoidable, keep it in a vault, never in the prompt, and change it on a schedule.
  • Name an owner. Every identity that is not a person needs a person who answers for it.
  • Review it. Put the AI system’s access on the same review schedule as people’s access.
  • Check what your identity platform offers for agents. Microsoft describes Microsoft Entra Agent ID as an identity and security framework that extends Entra to AI agents, and says that extending Entra’s security features to agents requires Microsoft Agent 365. Check what your licenses include before you plan around it.

An assistant that answers a question for a person still signs in as itself, and it should reach data with that person’s permissions, so that it shows them only what they could already open. A system that runs unattended needs its own narrow access.

3. Grant the least it needs, in the system that holds the data

Set the permission in the database, the API or the application the AI system connects to. To keep it out of payroll, give it a database role that cannot read the payroll tables, because a sentence in the prompt asking it to stay out can be ignored.

  • Start with read-only access. Add write access one action at a time, when the task needs it.
  • Narrow the scope to the three tables, the one mailbox, or the records for one region.
  • Give it no right to administer anything, including its own permissions.

OWASP’s list of security risks in language-model applications calls the failure here excessive agency: more functionality, more permissions or more autonomy than the task needs. This step deals with permissions. The other two are limited by the list of actions the system can call and by a person’s approval, which are covered below.

4. Log what it did, and name who reads the log

For each run, record what came in, what the system retrieved, what the model produced, each action it took with the inputs and the result, and who approved what. Keep the log where the AI system’s own identity cannot change or delete it. Restrict who can read it, because it will contain the data the system handled, and decide how long it is kept.

Name the person who reviews the exceptions each week, and set alerts for a jump in volume, a refused call, activity outside working hours, or a run that hits its limit.

5. Know how to turn it off

Before launch, decide who can stop the system and how: by disabling its identity, revoking its key or pausing its queue. Write down what else stops when it does, and test it once.

What a system that acts on its own needs beyond this

An identity, narrow permissions and a log are enough for a system that reads and answers. A system that updates records, sends messages or moves money on its own needs three more limits: a short list of narrow actions it can call, with each call checked in code; a person’s approval before any action that is hard to undo; and a separation between the outside content it reads and the tools that can send data out. What controls should be in place before you connect an AI agent to business systems? goes through each.

The reason is that a language model takes its instructions and its content through the same channel. Text inside an email, a document or a web page can be written to look like an instruction, and the model may act on it. OWASP puts this risk, prompt injection, first on its list, and says it is unclear whether any method of preventing it is fool-proof. So plan for a model that has been misled. With steps 2 and 3 done, it can still reach only what its identity was granted.

Widen the access in steps

Start with read-only access and a person comparing the system’s results with their own. Then let it draft, and then let it take the low-risk actions on its list. Widen further when the log supports it, and name who makes that decision. Who should own AI in a mid-market company, IT or the business? covers how that is split.

Common questions

Can the AI system use the account of the person who set it up? No. It would hold everything that person can reach, and the logs would show its actions as theirs. Give it its own identity, with access fitted to the task.

Is a carefully written prompt enough to keep it inside its limits? No. A prompt guides the model and does not bind it, and text the model reads can override it. Limits have to be enforced by the systems it connects to: the permissions on its identity, the list of actions it can call, and the checks in code.

We bought the AI system from a vendor. Does this still apply? Yes. Ask the vendor which identity the product uses in your systems, what that identity can reach, which actions it can take, and where the log is. Then set the permissions on your side as narrowly as the product allows.

If you want these rules set once for every AI system the company connects, AI governance is part of Strategic IT Advisory: what AI may touch, who approves, and what gets logged.

Related service: AI & Automation

More like this, in your inbox. Subscribe for our latest thinking, resources, and events.

Get started

Want results like these?