Skip to main content

How to Give AI Agents Access to Data with Least Privilege, Approvals and Budgets

Samuel Nagy
Samuel Nagy
VP of Strategic Growth

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.

TL;DR

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.

AI agent request path AI agent request path Every tool call passes the same checks before it touches data Budgets on every run: tokens, iterations, spend, run time AI agent Own identity and owner, asks for a tool Permission check Deny, Allow or Approval required per tool Approval gate A person approves write and high- impact calls Tool Reads or writes scoped data, metadata first Denied call never runs Rejected call goes back Audit log Which agent called which tool, with which data, who approved, what came back
Click to enlarge

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.

1

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.

2

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.

3

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.

4

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.

5

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.

6

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.

7

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 typeExamplesDefault settingWhen to loosen
Read metadataSearch the catalog, read definitions, owners and lineageAllowAlready open, keep it logged
Write metadataDraft a glossary term, propose a classificationApproval requiredAllow drafts once reviews show few corrections, keep approval for publishing
Read dataQuery rows from a named datasetAllow per datasetOnly for datasets the task names, sensitive classes masked
Change accessGrant, revoke or share accessDenyRarely, and then always Approval required
DeleteRemove records, assets or filesDenyKeep 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.

StepIn Dawiso Agent Studio
1. Own identity per agentEach 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 writeEvery 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 firstAgents work on the metadata in Dawiso: glossary terms, classifications, data products. The Integration Runtime runs inside your network and sends metadata only.
4. Approval gatesWith 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 limitsBudgets per run, day or month, plus token, iteration and run-time limits. The run stops at the ceiling.
6. Log every callEvery run keeps its history, and the audit log shows who changed what and when.
7. Review and expire accessVersioned 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?
Give the agent its own identity, list the tools its task needs and allow read tools before write tools, scope data to metadata first and to row data only where the task requires it, put approval on write and high-impact tools, set budgets for tokens, iterations, spend and run time, log every tool call, and review and expire access on a schedule. Each step narrows what a wrong or manipulated output can do.
What is excessive agency in AI agents?
Excessive agency is LLM06 in the OWASP Top 10 for LLM Applications 2025. It describes damaging actions an LLM-based system takes in response to unexpected, ambiguous or manipulated output. OWASP names three root causes, excessive functionality, excessive permissions and excessive autonomy, and recommends minimizing extensions, applying least privilege and requiring human approval for high-impact actions.
Should an AI agent use a user's credentials?
No. An agent that runs on a person's password, API key or personal token cannot be told apart from that person in logs, cannot be scoped to its task, and cannot be switched off without locking the person out. Give each agent its own identity with a named owner. When it acts for a user, use delegated, short-lived tokens limited to that user's permissions and the agent's tools.
Does MCP handle authorization for AI agents?
Partly. The Model Context Protocol authorization specification (2026-07-28 revision) builds on OAuth 2.1 and requires MCP servers to publish OAuth 2.0 Protected Resource Metadata. It is optional and applies to HTTP transports. It answers whether a client may call a server, while which tools an agent may use and which data those tools return stay your decision, set in the agent configuration and the data platform.
Which AI agent actions should need human approval?
Any action that is hard to undo or reaches beyond the agent's own task. Typical examples are publishing a definition or classification, changing access rights, sharing data outside a team, sending messages and deleting anything. Reads of metadata rarely need approval. Start strict and relax a gate only when the run history shows the agent gets that action right.

Sources

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.

A cookie a day keeps bad UX away.

We use cookies to personalize content, ads and to analyze our traffic. We also share information about your use of our site with our advertising and analytics partners who may combine it with other information that you've provided to them or that they've collected from your use of their services. By clicking "Accept All", you allow us to use cookies for analytics and ads via Google Tag Manager. You can also customize cookies.

Customize Consent Preferences

We use cookies to personalize content, ads and to analyze our traffic. We also share information about your use of our site with our advertising and analytics partners. Privacy Policy

Necessary cookies allow core website functionality such as user login and account management. The website cannot be used properly without strictly necessary cookies.

Functionality cookies are used to remember visitor information on the website, eg. language, timezone, enhanced content.

Analytics cookies are used to see how visitors use the website, eg. analytics cookies. Those cookies cannot be used to directly identify a certain visitor.

We use Microsoft Clarity to see how you use our website (including heatmaps and session replays) so we can improve it. By using our site, you agree that we and Microsoft can collect and use this data. See our Privacy Policy for details.

Advertisement cookies are used to identify visitors between different websites, eg. content partners, banner networks. Those cookies may be used by companies to build a profile of visitor interests or show relevant ads on other websites.