
We hear one request almost every week: “When my users go through an AI agent, I want them to see less than they’d see on their own.” Same person, same data, tighter access, just because an agent is in the loop.
It sounds sensible, and the risk behind it is real. But it rests on an assumption nobody questions: that you control access by deciding, ahead of time, what each person is allowed to see. For decades that was the only option. It isn’t anymore.
AI hands access control something it has never had: the full context of every request, at the moment it’s made. That makes room for an idea that would have sounded unworkable a few years ago. Don’t trim access back for agents. Give people almost nothing by default, and let rules grant more, one question at a time.
If that sounds backwards, buckle up. By the end, scoping agents down should look like the strange choice.
Why the agent path is riskier
In each example below, the person was allowed to see the data. The trouble came from routing it through an agent.
1. The data leaves the platform you govern. When you run a query, the results stay in the warehouse. When an agent runs it, the results go into the conversation and on to a model provider, where they can be logged and kept under someone else’s policies. Samsung banned generative AI tools in 2023 after engineers pasted internal source code into ChatGPT. They were allowed to read that code, but not to send it out of the company. In 2025 a US court ordered OpenAI to preserve ChatGPT output logs it would otherwise have deleted.
2. Anyone who can put text in front of the agent can steer it. In a demonstration against Supabase’s MCP server, an attacker opened a support ticket containing hidden instructions to read a private table and paste its contents into the ticket. Later, a developer asked their agent to review open tickets. The agent followed the instructions, using the developer’s database access, and the attacker read the results in the ticket thread. The developer had access to that table and the attacker didn’t, but the agent bridged the two. A person running SQL would never have done this. Simon Willison calls this setup the lethal trifecta: private data, untrusted input and a way to send data out.
3. Agents use all the access you have. Most people can reach far more data than they ever look at. That was harmless because nobody browses everything. Microsoft 365 Copilot only shows users what they already have permission to see, but it searches all of it. In a Gartner survey, 40% of organizations delayed their Copilot rollouts by three months or more over oversharing.
So the request is reasonable. The question is what to do about it.
Scoping agents DOWN assumes a user who isn’t there
“Agents see less than humans” only works if there is a human path to fall back on. It pictures an analyst who has direct access to the warehouse and runs SQL, with the agent as a convenience on top.
Most of the people agents are being built for don’t work that way. A sales lead, a claims adjuster or a store manager has never opened a SQL editor and never will. For them, the agent is how they get to data at all.
For those users, a broad grant for humans plus a cutback for agents just means a narrow grant that nobody designed on purpose. Their real access is whatever is left after two rough rules collide. Nobody can say why a given question was answered or refused, and when a refusal is wrong, nobody knows which rule to change.
Flip it: small birthright, grants at the moment of the question
Start every user with very little standing access. Sensitive data is protected by default: tables without grants, masking policies on sensitive columns, row filters on sensitive rows. When a question can’t be answered without getting past one of those protections, the agent requests it. A deterministic policy engine checks the request against rules written about the question, and approves or denies. An approval lifts that one protection for that one request, and it is logged.
Deterministic matters. The model can describe what it wants and why, but the decision comes from rules a person wrote and can audit, not from the model judging itself.
Why scoping UP works better
1. You were never going to get birthright right. Birthright access is a guess about every question every person will ever ask. Nobody can make that guess well, so every grant ends up too wide or too narrow. Agents make this worse: once asking is easy, people ask far more varied questions. Cutting agent access back starts from that same bad guess.
2. Birthright is decided with minimal context. When you set standing access, all you know is a few user attributes: department, region, title, maybe cost center. “Sales, EMEA” tells you very little about whether this person should see this customer’s birth date today.
3. Agent scope-down is just as blind. The rule “this is an agent, so remove columns X and Y” knows only that an agent is involved. It can’t tell a fraud investigation from idle curiosity, or a revenue total from a dump of every customer row. So it ends up either too permissive to matter or too strict to be useful.
4. Request-time rules have the context, so they are easier to write. At request time a rule can see the stated intent, the exact query, the columns and rows involved, and what the data contains. That changes what a policy looks like. You don’t map every person to every dataset. You describe the kinds of questions that are legitimate for each kind of data: “churn analysis may use account tenure and plan, not contact details.” A short list of question types holds up much better than a growing pile of per-user grants.
5. Decisions stop being all or nothing. Static access answers one question: can this person ever see this column? Request-time approval answers a narrower one: can they see it for this query? A masked diagnosis column can be unmasked for a count of patients by diagnosis and region, and stay masked for a list of individual patients. An unusual request can go to a data owner for review instead of failing quietly. Most useful business questions sit in that middle ground.
6. You can’t reliably tell when it’s an agent. Scoping down only works if the platform knows an agent is asking. Often it doesn’t. Anyone with database credentials can wire them into their own agent in an afternoon, and to the warehouse it looks like that user is running queries. Those homegrown agents carry the same risks: results still go out to a model provider, and the agent can still be steered by what it reads. The Supabase attack above was exactly that, a developer’s own agent using the developer’s own access. A policy that depends on spotting agents misses the ones nobody registered. Scoping up doesn’t need to know. Everyone starts with minimal access, and every request past it gets the same check, whether a person or an agent made it.
What the rules look like
The policies on the data don’t change. Every sensitive table, column and row stays protected by a missing grant, a mask or a row filter. A rule decides only whether one specific request may get past one specific protection. Each rule describes a kind of question, not a person, and each depends on context that birthright access never has.
The first two rows are the same user asking about the same column. The shape of the question changes the answer, which a static grant can’t do. The third depends on a fact no birthright attribute captures: who is working which case today.
Every decision is logged with the intent, the query and the rule that fired. The log becomes the feedback loop: frequent denials for legitimate work show you which rule to add next.
Fair objections
“Can’t the agent just lie about its intent?” No. The user’s single request drives both the SQL the agent writes and the access request it makes. So the policy engine checks that the query matches the stated goal. Claiming “regional diabetes counts” while running a row-level patient pull is a mismatch it catches. There is no way to get one intent approved while pursuing another.
“Won’t this add latency and friction?” Policy checks are fast next to a model call. The friction this model removes is bigger: access tickets for data someone needs once, and over-grants made to avoid filing them.
“Doesn’t prompt injection still get through?” The injection can still happen. The data access can’t. Think back to the Supabase attack. The developer asked the agent to review support tickets. A hidden instruction in one ticket made it also read a private table. With broad standing access, that extra query just runs. With scoping up, it needs its own approval, checked against what the user actually asked for. “Review open tickets” doesn’t justify reading a credentials table, so the request is denied. An injected instruction gets nothing the user’s original question doesn’t already justify.
The point
Agents didn’t create the access-control problem. They exposed it. Birthright access was always a rough guess, and it held up only because people rarely used all of it. Cutting agents back from that guess only adds a second guess. Start small, write rules about questions instead of people, and decide at the moment you know the most.
Sources
- Samsung bans staff's AI use after spotting ChatGPT data leak, Bloomberg
- OpenAI forced to preserve ChatGPT chats, Malwarebytes
- Supabase MCP can leak your entire SQL database, General Analysis
- Supabase MCP and the lethal trifecta, Simon Willison
- Microsoft 365 Copilot rollouts slowed by data security concerns, Computerworld