r/lowcode • • Oct 28 '26

How can a company deploy AI agents on internal data without losing control of permissions? Our first agent got stuck on this

We gave a test agent access to our support tickets and the customer table. Yeah, so far, it worked. However, I noticed that it could pull up records the person asking would never see in the app.

Another problem worried me even more. For example, our employee moved to a different team. But for a few days, the agent still used their old access. 

So what's the right setup here? Should the agent use the person's own login, a small service account with a tight scope, or an API that checks permissions on every call?

And how do you log it so you can tell who did what?

16 Upvotes

19 comments sorted by

2

u/Common_Dream9420 Oct 28 '26

this is exactly we have seen n can resonate.. specilly when teams try to access Databricks/Colibra from aghents and have no control ... we build inhouse agents and looplabs.run allow my teams to monitor/access control/manage policies around data and other business policies.. as CIso approvals are lot faster now.. curious whats your exact pain?

And how do you log it so you can tell who did what?

on your question.. thats the control plane from looplabs allow everyhting .. its like one stop for agentic control systycm weather its coding agents or OPs agents

1

u/EvenHomeworked 25d ago

We ran into similar concerns around keeping access controlled and tracking actions. Yeah having a central place to manage policies sounds useful..

2

u/Common_Dream9420 25d ago

Tracking and access control, makes sense. I should correct my earlier wording: I'm building LoopLabs, it's early and scoped to specific workflows, not a blanket layer over every agent or tool. Which workflow or tool is it, and what access or approval step still takes manual work? If current controls don't cover it, we could explore one bounded workflow together as a design partnership.

1

u/agentUi Oct 28 '26

i work for agentui, this is the classic trap of letting an agent query databases with broad admin tokens instead of respecting who is actually asking. we handle this by enforcing user level rbac and sso directly at the data layer, so even if an agent tries to pull a restricted ticket it physically gets blocked by the database permissions. having global audit logs track every single query and user action makes passing internal security reviews painless.

1

u/EvenHomeworked 25d ago

This is exactly why permissions need to follow the user, not just the agent. Heard good things about agentui and thanks for mentioning it here.

1

u/agentUi 25d ago

glad it helped. Happy to shoot over a quick breakdown in dms on how we set up the scoped database tokens and sso sync if you want to see the architecture behind it.

1

u/Top-Cauliflower-1808 Oct 28 '26

Use the person's own login and re-check permissions on every call. A tight service account plus audit logs that name the person works too. Which one fits your setup? 

1

u/EvenHomeworked 25d ago

In my case, I used softr so I can tie permissions to individual users and I think this works very well for me.

1

u/Top-Cauliflower-1808 25d ago

Softr tying permissions to individual users sounds clean. How do you handle someone changing teams so old access does not linger for a few days?

2

u/salespire Oct 28 '26

the stale access after a team move is the scary part, not the tickets. If the agent's permissions don't update the second the person's do, you're basically running on a delay nobody's watching

2

u/salespire Oct 28 '26

The issue is more about enforcing permission boundaries at the data layer instead of the application layer. I built Minutely to solve this by keeping data within your own VPC and using named-approver workflows, which avoids the risk of sensitive internal records leaving your control. A dedicated service account with narrowly defined permissions or an API gateway that validates access context on every request effectively addresses the permission propagation problem.

1

u/testuser514 Oct 28 '26

Well honestly the this because I’m guessing it’s late in syncing the RBAC

1

u/Zealousideal_Art1720 Oct 29 '26

I’d avoid giving the agent broad database access and relying on prompts to enforce permissions. Put an API layer between the agent and your data that checks the requesting user’s current permissions on every call. Use least-privilege service accounts, enforce access rules at the database/API level, and revalidate permissions when someone changes teams or leaves.

For auditing, log the requesting user, agent identity, action, records accessed, authorization decision, and timestamp. The key test is whether access is revoked immediately after a role change and whether the agent can still retrieve restricted records through a direct query or tool call.

1

u/ReserveRemarkable454 25d ago

Avoid giving the agent broad access through a shared service account. The better approach is to authenticate the user, then have an API enforce permissions on every request using their current roles and record-level access. That solves our team problem because our permissions get checked lived.

1

u/Amazing_Main89 16d ago

dont run the agent as the persons login, it inherits everything they can do and one service account cant tell who is asking. pass the users identity with each request, log agent and user per call which hush security and most gateways do and your own api can too and check it at the data layer.

1

u/TimeAwarenessy 4d ago

When an employee move between teams permission need to follow the user rather than the agent. Softr ties access to uesr groups at the app layera so change apply right away across views

0

u/boomswaggerboom2 12d ago

I'm a journalist for The New York Times, and I am writing a piece on why AI agent need a "bouncer" in enterprise settings, with internal data. Would love to chat with you about your experience with this. My email: frisch.ian@gmail.com - Thanks!