How to Give AI Agents Customer Data Access Without Breaking Permissions

Fit-Western-2099 · reddit · 2026-11-25

A Reddit developer asked how to govern AI agent data access in production: their B2B SaaS is adding an assistant that lets customers query their own data, but the prototype is essentially an LLM writing SQL directly against the database, which they're not comfortable rolling out to a few hundred tenants.

The core question: how do you constrain what the agent can see and query? They ask whether a semantic layer, MCP, or something else is the right approach — a classic permissions/safety engineering problem for agent deployment.

Original post →

More from coding & agent

coding & agent channel →