Cert++
Close

Agentforce security and data access

Key Takeaway

The key security question for any agent is which user's access it uses. An Employee agent runs as the logged-in user, while a Service agent usually runs as a dedicated agent user.

Agentforce agents read and change Salesforce data, so they follow the same access controls people do. The Einstein Trust Layer adds protections such as zero data retention and prompt injection defense.

Whose access an agent uses

AI agents respect standard Salesforce access controls, such as:

  • Licenses
  • Permissions
  • Field-level security
  • Sharing settings

The agent type, the channel and whether credential-based user verification is turned on decide whose user record supplies that access.

Agent typeWho it's forRuns asWhat governs its access
Employee agentInternal users in Lightning Experience, the Salesforce mobile app, Slack or an Experience Cloud site, not unauthenticated external customersThe logged-in userThat user's profile, permission sets, field-level security, sharing rules and role
Service agentExternal customers and partners on enhanced Messaging channelsUsually a dedicated agent user (EinsteinServiceAgent User)That user's profile, permissions, field-level security and sharing rules
Lead Nurturing agentLeads, prospects and customers, through automated outbound emailA dedicated EinsteinSDRAgent UserThat user's profile, permissions, field-level security and sharing rules

With an Employee agent, you don't need to scope queries and actions to the user's own data, because the agent already runs as that user.

The enhanced Messaging channels that Service agents use support both authenticated and unauthenticated users. Because these channels aren't limited to logged-in users, a Service agent usually can't use the end user's user record, so it runs as the agent user instead.

Agent setup creates the EinsteinSDRAgent User and assigns it system-level permissions.

Platform Administrator Study Guide

Checklist progress

0/324Learned

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Platform Administrator studiers. 757 members and growing.