CloudFixies mascot logo CloudFixies.
← All articles
AI Agents

Permission-aware agents in the enterprise

An agent that ignores the user’s permissions is a data leak with a friendly UI. Here’s how to build one that respects the tenant.

Published by CloudFixies · 20 January 2026

The rule

Every retrieval an agent makes must be executed <em>as the user</em>, not as a service principal with elevated access. This is the difference between a helpful copilot and a compliance nightmare.

How to actually do it

The one test worth running

Pick two real users with different access rights. Ask the agent the same question from both accounts. If the answers overlap in ways they shouldn’t, you have a bug — not an edge case.

◆ Takeaway

Delegated tokens, RLS, and a two-user cross-check. If the agent cannot say whose identity ran the query, it is not ready.

Action-capable vs answer-only agents →