Insights

AI Agent Governance, Security and Risk

How Should AI Agents Get Identity and Least-Privilege Access?

Akshit KandiDecember 6, 2026 5 min read

Short answer

Give every AI agent its own identity rather than a shared admin or integration user, then grant only the objects, fields, records and actions its use case needs. Decide whether it acts as itself or on behalf of a signed-in user, scope credentials for external tools, log under that identity and review access quarterly.

  • →One agent, one identity, one purpose-built permission set.
  • →Decide explicitly whether the agent acts as itself or as the user.
  • →Build permissions up from zero; never clone an admin profile.
  • →Review agent access on the same cycle as human access.

Identity is the least glamorous part of an agent project and the one that decides how bad a bad day can be. If the agent runs as a shared integration user with the System Administrator profile, any mistake, bug or successful prompt injection has the whole org as its blast radius. If it runs as a dedicated identity with a narrow permission set, the same mistake is contained to the records and fields the use case needed anyway.

Least privilege for agents

Granting an AI agent only the minimum data access and actions required for its defined purpose, under an identity that belongs to that agent alone, so its access can be reviewed, logged and revoked independently.

Should an agent act as itself or as the user?

This is the first design decision, and it should be explicit. Customer-facing service agents typically run as their own agent user, because there is no employee in the conversation. Employee-facing assistants often run in the context of the signed-in user, so they can only see what that person can see. Check how your specific Agentforce agent type and Claude integration behave, because the default matters.

PatternBest whenWatch out for
Agent acts as itselfCustomer-facing, scheduled or background workAgent identity becomes a high-value target
Agent acts as the userEmployee assistants, personal productivityInherits over-broad human access
HybridUser context to read, agent identity to writeMore complex to log and explain

Acting as the user sounds safest, and often is, but it exposes a hidden problem: many employees have more access than they should. An assistant that can search everything a sales manager can see will surface records nobody realized were visible. Run a sharing review before rolling out user-context agents widely.

How do you build a least-privilege permission set in Salesforce?

  1. 01

    Start from the Charter

    List the objects, fields and actions the agent needs. Anything not on the list is denied.

  2. 02

    Use a minimal base

    Assign the agent user the most restrictive profile or license your agent type allows.

  3. 03

    Build a dedicated permission set

    Add object and field permissions one by one. Never clone an admin or power-user set.

  4. 04

    Restrict records

    Use sharing rules and record access so the agent sees only relevant records, not View All.

  5. 05

    Gate actions

    Grant access only to the flows, Apex classes and actions the agent invokes.

  6. 06

    Test denial

    In a sandbox, confirm the agent cannot reach fields and records outside scope.

Two permissions deserve special suspicion: “View All Data” and “Modify All Data.” If an agent design requires either, the design is wrong. The same goes for API access on identities that do not need it and for broad object-level “View All” grants added to make a demo work.

How do you scope identity for Claude and MCP tools?

When Claude reaches Salesforce, Snowflake or other systems through MCP servers or APIs, each connection authenticates with some credential. Give each agent its own credentials, scoped to what it needs: a Salesforce connected app with limited OAuth scopes and a dedicated user, a read-only Snowflake role limited to the relevant schemas, a service account for files that can see one folder rather than the whole drive. Store secrets in a vault, rotate them, and never embed them in prompts or agent instructions.

Where Claude is used by employees with connectors, the connector typically acts with the employee’s own access through OAuth. That makes user access hygiene part of agent security. Our guide to governing employee use of Claude covers connector approval.

What does a well-scoped agent identity look like?

Consider an illustrative order-status service agent. A well-scoped identity for it looks like this. It has its own agent user, named for the agent, with no other use. Its permission set grants read on Order and Order Item, read on a few Contact fields needed for verification, and create on Case for handoffs. It has no access to Opportunity, Lead, Contract or any custom object holding financial or health data. Sharing limits it to orders linked to the verified customer in the conversation, enforced in the action, not the prompt. It can invoke three actions: verify customer, get order status, create handoff case. Its logs record every action under its own name, so an auditor can see exactly what it did and nothing else is mixed in.

Illustrative example
Salesforce Setup · Agent user: order-status-agent
User

order-status-agent

Used by

Order status agent only

Permission set

Order_Status_Agent_Access

Read

Order, Order Item, 4 Contact

Create

Case (handoffs only)

No access

Opportunity, Lead, Contract

Record scope

Verified customer, in action

Actions

Verify, get status, handoff

Last access review

Passed, Q4

The well-scoped identity described above, as an admin would see it. Illustrative.

Write that description into the Agent Charter. When someone later asks for the agent to “also handle returns,” the request becomes a visible change to the identity, reviewed and re-tiered, rather than a silent permission grant.

How often should agent access be reviewed?

Quarterly agent access review
  • Every agent identity is listed in the inventory with an owner
  • Each permission set matches the current Charter, nothing extra
  • No agent holds View All Data, Modify All Data or admin profiles
  • External credentials and OAuth scopes are still minimal and rotated
  • Retired agents have deactivated users and revoked credentials
  • Logs show actions only within the expected objects and volumes

Include agents in the same access review cycle you run for humans, typically quarterly, and record the result. SOC 2 assessors and internal auditors already test human access reviews; extending them to agents is the simplest way to produce evidence. See what auditors ask about AI agents.

Identity also matters when agents call other agents. As multi-agent designs spread, one agent may hand work to another or call it as a tool. Each agent should still act under its own identity with its own permissions, so a low-privilege agent cannot borrow the access of a high-privilege one by asking it to do the work. Log the hand-offs so investigators can follow a chain of actions back to where it started.

SkySync practice

Every agent we launch gets its own identity and a permission set built from zero against its Charter, tested for denial in a sandbox before go-live. In Agent Care we run the quarterly access review and deactivate identities for retired agents the same week.

Identity is the bottom layer of the control model in Minimum Viable Governance for AI Agents. Get it right and prompt injection, wrong actions and data exposure all become smaller problems.

Frequently asked questions

Can several agents share one integration user?

Avoid it. Shared identities mean one agent’s access is the sum of all their needs, logs mix their actions together, and you cannot revoke one without breaking the others. One identity per agent keeps access, audit and incident containment clean.

Does an Agentforce agent user need a special license?

Agentforce service agents typically run as a dedicated agent user with a specific license and permission set provided by Salesforce. Licensing details change across releases and editions, so confirm the current requirements in Salesforce documentation or with your account team.

What if the agent needs broad read access to answer questions?

Question the requirement first. Usually the agent needs specific fields from a few objects, or curated knowledge, not the whole org. If broad read really is needed, keep it read-only, mask sensitive fields, exclude regulated data and require user verification before revealing anything personal.

How do we revoke an agent’s access in an emergency?

Deactivate the agent and its user, revoke its OAuth tokens and external credentials, and disable the specific actions if you need it running in a reduced mode. Practice this before launch so the kill switch works and the people allowed to pull it know how.

Go deeper

Minimum Viable Governance for AI Agents

The one-page Agent Charter, three risk tiers and the evidence pack that let you ship agents safely without waiting for a perfect policy

  • ✓The Governance Grid: why most programs land in paper governance or committee gridlock, and how to reach the top-right quadrant
  • ✓Three risk tiers that decide how much control each agent needs, with a four-question tiering flow
  • ✓The Agent Charter: a one-page, five-field record that every agent must have before go-live
  • ✓An evidence pack mapped to NIST AI RMF, ISO/IEC 42001, the EU AI Act, SOC 2, GDPR and HIPAA at a general level
Free whitepaper

Download the whitepaper

By continuing you agree to be contacted by SkySync about this material.

More on AI Agent Governance, Security and Risk