r/devsecops • • Sep 21 '26

Identity Architecture Question

If a user has broad access in something like Salesforce or ServiceNow, but an AI agent acting for them only needs a small subset of that access for one task, where are you actually narrowing that today?
Are you enforcing it in IAM/PAM, at the agent/tool layer or inside the target application?

6 Upvotes

7 comments sorted by

View all comments

1

u/CronJobless Oct 14 '26

honest answer: mostly nowhere, and that’s the problem. the agent gets the user’s OAuth token and inherits everything they can do. the “only needs a small subset” part lives in a system prompt, which is not a control.

where it’s actually getting narrowed when people bother: in the target app. a dedicated integration user in salesforce with its own permission set, or a scoped service account in servicenow, and the agent runs as that instead of as the human. the IAM layer can’t see inside a salesforce token to know it’s being used for one object, and the agent/tool layer is the thing you’re trying to constrain, so trusting it to constrain itself is circular.

the uncomfortable part is you lose “acting on behalf of” attribution when you do that, so you end up logging the human-to-agent handoff separately and stitching it back together after. nobody’s happy with it, it’s just the least bad option until the apps ship real delegated scopes.