Lesson 25 of 41 · All lessons
Salesforce Agentforce Specialist
0 of 41 complete
1Exam Overview
  1. 1.1Agentforce Specialist Complete Exam Overview
2Prompt Engineering20%
  1. 2.1When to Use Prompt Builder
  2. 2.2Prompt Template Access Controls
  3. 2.3Field Generation and Flex Prompt Template Types
  4. 2.4Grounding Techniques for Prompt Templates
  5. 2.5Creating, Activating, and Executing Prompt Templates
  6. 2.6Best Practices for Writing Effective Prompts
  7. 2.7Trust Layer Security and Privacy Features
  8. 2.8Managing and Preventing Specific Models from Being Accessed
3Data 360 Fundamentals20%
  1. 3.1Agentforce Data Library
  2. 3.2Data 360 Concepts for Agentforce
  3. 3.3Chunking
  4. 3.4Indexing
  5. 3.5Retrievers
  6. 3.6Choosing a Grounding Approach for a Scenario
4AI Agents35%
  1. 4.1How an Agentforce Agent Works
  2. 4.2Agent Building Blocks and Agent Script
  3. 4.3Hybrid Reasoning and Deterministic Behavior
  4. 4.4Agentforce Builder: Canvas and Script Views
  5. 4.5Filters, Variables, and Template Expressions
  6. 4.6Standard and Custom Topics
  7. 4.7Standard and Custom Agent Actions
  8. 4.8Configure Topics, Instructions, and Actions for a Use Case
  9. 4.9Connecting Agents to Digital Experience, Email, Voice, and Slack
  10. 4.10Agent Security Context and Action Execution
  11. 4.11Choosing Between Employee and Service Agents
  12. 4.12When to Use Agent API
5Testing, Deployment, and Maintenance10%
  1. 5.1Testing Agents with Testing Center
  2. 5.2Understanding Testing Center Evaluations
  3. 5.3Deploying Agents from Sandbox to Production
  4. 5.4Deploying Prompt Templates Between Environments
  5. 5.5Reviewing Agent Behavior After Changes
6Governance and Observability10%
  1. 6.1Managing and Monitoring Agents
  2. 6.2Agent Analytics and Performance Signals
  3. 6.3Identifying Opportunities to Optimize Agent Behavior
  4. 6.4Using Observations to Guide Improvements
7Multi-Agent Orchestration5%
  1. 7.1Choosing a Multi-Agent Architecture
  2. 7.2Orchestrators and Connected Subagents
  3. 7.3Handoff and Supervisor Modes
  4. 7.4Model Context Protocol (MCP)
  5. 7.5Agent-to-Agent (A2A) Communication

Section 4 · AI Agents · 35% of exam

4.10 Agent Security Context and Action Execution

3 min read Updated Nov 16, 2026

Exam objective

Explain how an agent’s security context affects data access and action execution, and identify controls that must be reviewed for a use case.

Identify who the agent acts as

An agent’s security context determines the user identity and permissions that apply when it accesses Salesforce data or performs an action. Employee agents are designed for internal employees and run in the logged-in user context. They respect that user’s applicable licenses and Salesforce access framework, and administrators can assign access to specific profiles or users. Service agents use an Agent User context for customer interactions. The Agent User is a Salesforce integration user with the permissions needed by the agent. These contexts are not interchangeable. In a scenario, first identify the agent type and the actual runtime user before deciding whether a record or action should be available.

Least privilege for service agents

A service agent should receive only the permissions required for its approved tasks. Salesforce’s guided setup can create an Agent User with minimal access, after which an administrator grants the additional access the agent needs. Review object permissions, field-level security, sharing, licenses, and access to the underlying Flow, Apex class, prompt template, or external service. An action that is available in the agent configuration may still fail if its running user lacks access. Conversely, an overly privileged Agent User can expose data or allow unintended updates. Design permissions around the action’s true business need and recheck them when the agent’s responsibilities change.

Context and action execution

The same action can behave differently depending on the identity, permissions, and execution settings involved. For employee agents, the logged-in user context helps keep access aligned with each employee’s existing rights. For service agents, the Agent User must be configured so it can perform customer-service tasks without broad administrative authority. Also inspect how the underlying Flow or Apex executes, what records it queries, and which values it accepts from the model. A correct topic selection does not bypass platform security. Filters can limit when an action is offered, but permissions and data access controls still need to enforce what the execution identity may do.

Protect sensitive journeys

For actions that disclose personal details or change an account, use an appropriate identity-verification step and make sensitive actions available only after verification. Salesforce recommends filters for requiring authentication before subagents or actions that perform user tasks in customer channels. The verification value should come from a reliable process and be mapped consistently, rather than inferred from a casual user statement. Limit exposed actions, validate inputs, avoid returning unnecessary fields, and test unauthenticated, unauthorized, and cross-customer requests. Review logs and traces without exposing sensitive content unnecessarily. Security must be built into the agent, channel, permissions, and action implementation together.

TIP: If the question asks why an action can or cannot access a record, identify the runtime context first: logged-in employee or configured Agent User, then check the permissions and underlying action.

A filter can restrict agent behavior, but it does not replace Salesforce object, field, record, license, or action-level access controls.

Extra concept: The Service Agent’s setup and runtime Agent User context should be tested with the same permission profile expected in production.

Official references:

  • Create an Agent from an Agentforce Employee Agent Template https://help.salesforce.com/s/articleView?id=ai.agent_employee_agent_setup.htm&language=en_US&type=5
  • Create an Agent from an Agentforce Service Agent Template https://help.salesforce.com/s/articleView?id=sf.service_agent_setup.htm&language=en_US&type=5
  • Trust and Agentforce https://help.salesforce.com/s/articleView?id=copilot_trust.htm&language=en_US&type=5

Key takeaways

  • Employee agents run in the logged-in user context; Service agents use an Agent User context.
  • Least privilege and underlying Flow or Apex permissions affect whether actions can execute.
  • Use identity verification, filters, and platform security together for sensitive customer actions.

Check your knowledge

Answer exam-style AI Agents questions with answers and explanations.

Practice AI Agents
Finished this lesson? Mark it complete to track your progress.

Ready for the real exam?

Take the timed Salesforce Agentforce Specialist simulator: same number of questions, same time limit.

Get Complete Access