How to Give AI Agents Access to Data with Least Privilege, Approvals and Budgets
To give AI agents access to data safely, give each agent its own identity, allow only the tools its task needs, start from metadata before row data, put human approval on writes and high-impact actions, cap its budget, and log every call. The setup takes seven steps, and each one limits what a wrong or manipulated output from the model can do with your data.
An AI agent turns model output into actions, so AI agent data access needs tighter limits than a human user gets. OWASP names the failure excessive agency: too many tools, too many permissions, too much autonomy. Fix it in seven steps: own identity per agent, tools listed per task with read before write, metadata before row data, approval gates on writes, budgets and limits, a log of every call and regular access reviews. MCP authorization secures the connection to a server, while the tool and data scope stays your job.
Why is AI agent data access different from user access?
Because an agent decides at run time which tools to call, based on text it reads. A person with access to a table chooses each query. An agentic AI system chooses its next step from the model's output, and that output can be wrong, ambiguous or steered by an instruction hidden in a document or tool result. Whatever the agent is allowed to do, a manipulated output can make it do. The building blocks of AI agent access control are defined in our glossary; this guide is about setting them up.
The OWASP Top 10 for LLM Applications 2025 calls this LLM06 Excessive Agency and traces it to three root causes: excessive functionality, excessive permissions and excessive autonomy. Its main remedies are to minimize the tools an agent has, apply least privilege and require human approval for high-impact actions.
The OWASP Top 10 for Agentic Applications 2026, released on December 9, 2025 with input from more than 100 experts, adds two entries that map directly to data access:
- ASI02 Tool Misuse and Exploitation: an agent uses a legitimate tool in a harmful way, for example a broad query or a write it was never meant to make.
- ASI03 Identity and Privilege Abuse: agents reuse, escalate or leak the credentials and access they inherited.
Scale makes this urgent. In the 2026 Gartner CIO and Technology Executive Survey, only 17% of organizations have deployed AI agents so far, while more than 60% expect to do so within the next two years. Each agent that goes live needs a permission decision someone actually made.
The request path of a governed AI agent
Every tool call should pass the same checks before it touches data. The agent asks for a tool, a permission check answers Deny, Allow or Approval required, an approval gate holds high-impact calls for a person, the tool runs with scoped data, and the audit log records the outcome, including denied and rejected calls. Budgets wrap the whole run.
How to give AI agents access to data in seven steps
Work through the steps in order for every new agent. Each one comes with what good looks like, so you can check an existing agent against it as well.
Give each agent its own identity, never a person's credentials
An agent that runs on someone's password, API key or personal token is invisible in logs, cannot be scoped to its task and cannot be stopped without locking the person out. That is the inherited-credential pattern behind ASI03. Register the agent as a non-human identity with a named owner. When it acts on behalf of a user, use delegated, short-lived tokens that never exceed that user's permissions.
What good looks like
One identity per agent, a named owner, short-lived tokens, and no personal credentials anywhere in its configuration.
Start from the task and list the tools it needs, read before write
Write the task in one sentence, then list the tools that sentence requires. Everything else is excessive functionality. Grant read tools first and add a write tool only when the task cannot finish without it. A tool that does many things, such as "run any SQL", is a write tool in disguise; replace it with narrow ones.
What good looks like
A short tool list per agent, every tool labeled read or write, and no general-purpose tools.
Scope data, metadata first and row data only when the task needs it
Many agent tasks, such as drafting a definition, finding the right table or explaining lineage, need only metadata: names, descriptions, owners and relationships. Give row data only to the agents whose task is computing over it, and only for the datasets named in the task. Use the data catalog to decide what is sensitive. Its data classification marks assets that hold personal data or other restricted classes, and data ownership tells you who has to agree before an agent reads them.
What good looks like
Metadata access by default, row data per named dataset, sensitive classes masked or denied, and the owner's approval on record.
Put approval gates on write and high-impact tools
For each write tool, decide whether the agent may call it freely or must wait for a person. Publishing a definition, changing a classification, granting access, sharing data and deleting anything should pause the run until the right person approves. This is human-in-the-loop control at the level of a single call; our comparison of human in the loop vs human on the loop covers who should hold which role.
What good looks like
Every write tool set to Allow or Approval required on purpose, a named approver, and approvals visible in the log.
Set budgets and limits for tokens, iterations, spend and run time
An agent stuck in a loop or steered into repeating a task burns money and calls the same tools over and over. OWASP lists this as Unbounded Consumption (LLM10). Cap tokens per run, the number of iterations, the spend per run, day or month, and the run time. The run should stop when it hits a ceiling, not ask for more.
What good looks like
Hard ceilings per agent, a stop at the ceiling, and an alert to the owner when a run stops early.
Log every call and review the log
Record which agent called which tool, with which parameters and data assets, who approved it and what came back, including denied and rejected calls. Logs only help when someone reads them, so schedule an audit trail review and look for tools that are never used, repeated denials and approvals granted without reading.
What good looks like
A complete run history per agent, a log of configuration changes, and a recurring review with findings acted on.
Review and expire access regularly
Agent permissions drift the way human ones do: a tool added for a one-off test stays, an owner changes teams, a pilot agent keeps running after the pilot. Give every agent a review date, remove tools the log shows are unused, and switch off agents whose owner has left. This is ongoing AI agent governance, and it also surfaces shadow AI that never went through steps 1 to 6.
What good looks like
A review date on every agent, unused tools removed, and orphaned agents disabled within days.
AI agent permissions by tool type
Set the default by what a tool can change, then loosen it only with evidence from the run history. The table is a starting point for least privilege AI agents.
| Tool type | Examples | Default setting | When to loosen |
|---|---|---|---|
| Read metadata | Search the catalog, read definitions, owners and lineage | Allow | Already open, keep it logged |
| Write metadata | Draft a glossary term, propose a classification | Approval required | Allow drafts once reviews show few corrections, keep approval for publishing |
| Read data | Query rows from a named dataset | Allow per dataset | Only for datasets the task names, sensitive classes masked |
| Change access | Grant, revoke or share access | Deny | Rarely, and then always Approval required |
| Delete | Remove records, assets or files | Deny | Keep denied, let a person delete |
What it means for you: an agent that only reads metadata can be useful on day one with little risk. Most of the effort belongs to the few tools that write, read sensitive rows or change access.
Checking MCP authorization on agent servers
MCP authorization decides whether a client may call a server, and it leaves the tool and data scope to you. Many agents reach data through the Model Context Protocol. The MCP authorization specification (2026-07-28 revision) builds on OAuth 2.1 and OAuth authorization server metadata (RFC 8414), and requires MCP servers to publish OAuth 2.0 Protected Resource Metadata (RFC 9728) so clients can find the right authorization server.
Two details matter for MCP authorization in practice. The specification is optional, so check that every remote server you connect implements it. And it applies to HTTP transports, so local servers need their credentials handled another way, ideally scoped to the agent and not to the developer who installed them. Steps 2 to 6 still apply on top: an authorized connection to a server with fifty tools is excessive functionality unless the agent is limited to the few it needs. For catalog-backed servers specifically, see what AI agents gain from an MCP server on a data catalog.
How the seven steps map to Dawiso Agent Studio
The seven steps are general practice, drawn from the OWASP guidance above, and most of them are built into Dawiso Agent Studio. Where a step stays a team process, the table says so.
| Step | In Dawiso Agent Studio |
|---|---|
| 1. Own identity per agent | Each agent is its own versioned spec with its own permissions, budget and triggers. Model API keys and secrets are managed by admins. |
| 2. Tools per task, read before write | Every tool is set to Deny, Allow or Approval required, and read and write tools are labeled, so write access is a deliberate choice. |
| 3. Metadata first | Agents work on the metadata in Dawiso: glossary terms, classifications, data products. The Integration Runtime runs inside your network and sends metadata only. |
| 4. Approval gates | With Approval required, the run pauses until an admin approves the call. Finished work goes to the responsible owner, who approves it or sends it back. |
| 5. Budgets and limits | Budgets per run, day or month, plus token, iteration and run-time limits. The run stops at the ceiling. |
| 6. Log every call | Every run keeps its history, and the audit log shows who changed what and when. |
| 7. Review and expire access | Versioned specs and the audit log show what changed since the last review. The review itself stays a team process. |
A worked example of a least privilege AI agent
For an agent that proposes PII classifications in a catalog, the seven steps come down to a short configuration. An admin starts from the PII classification template in the marketplace and sets permissions per tool, where each tool is labeled read or write:
- The template's read tools, for example for searching assets: Allow.
- Its write tool, which stores the proposal: Approval required, so the run pauses until an admin approves the call.
- Tools the task does not need: Deny.
The admin sets a budget per run and per month, plus token, iteration and run-time limits, and the run stops at the ceiling. The agent's work goes to the responsible owner for approval. Agent specs are versioned, and the audit log records who changed what and when. Dawiso does not train or fine-tune AI models on customer content.
FAQ
How do you give an AI agent access to data safely?
What is excessive agency in AI agents?
Should an AI agent use a user's credentials?
Does MCP handle authorization for AI agents?
Which AI agent actions should need human approval?
Sources
- OWASP GenAI Security Project - LLM06:2025 Excessive Agency, OWASP Top 10 for LLM Applications 2025
- OWASP GenAI Security Project - OWASP Top 10 for Agentic Applications for 2026 (December 9, 2025)
- Model Context Protocol - Authorization specification, 2026-07-28 revision
- Gartner - What the 2026 Hype Cycle for Agentic AI Reveals (April 15, 2026)
See it in action
Run AI agents under your own permissions and budgets
See how Dawiso Agent Studio sets Deny, Allow or Approval required per tool, caps budgets per agent and keeps an audit log of every change.