Study guide
תוכן זה אינו זמין עדיין בשפה שלך.
Study guide for chapter 20 of the Securing Salesforce: Sharing and Visibility course. Read the six modules first; this page helps you check what stuck.
About this study guide. It’s built only from this course’s own content and the published Salesforce exam guide’s list of objectives. It is never based on real exam questions, and it doesn’t claim to know what’s on the exam. If you’ve taken the exam, please don’t send me questions from it: the certification agreement forbids sharing them, and memorizing answers is the wrong way to become an architect anyway.
This chapter has no exam objective of its own: the exam guide aligns to Winter ‘23, before agents. But agents use the exam’s mechanisms, and three points below support the objectives they touch: org-wide defaults (REC-1), the role hierarchy (REC-2), and sharing in Apex and flows (OBJ-5). The rest is beyond the exam, and it’s what you’ll meet in real orgs first.
For the Exam
Section titled “For the Exam”Tick them off as you go. Each one links to where it’s taught.
Who an agent runs as
- I know an employee agent runs as the logged-in user, a Lead Nurturing agent and a service agent run as their own agent user, and a service agent on a site with credential-based user verification runs as the logged-in site user. (Who each agent runs as)
- I know every one of them is governed by the same things: profile, permissions, field-level security and sharing rules, so whatever its user can read, the agent can say, and page layouts don’t count. (Whatever its user can read)
The agent user (supports REC-1, REC-2)
- I know Salesforce creates the agent user with the Einstein Agent license and profile, minimal access, and permission sets I add to from the agent’s actions. (The user nobody logs in as)
- I know the agent user needs a role for record access, placed low, with nothing under it. (A role of its own)
- I know the internal org-wide defaults apply to the agent user, even when the agent talks to customers, and the external defaults don’t. (The surprise)
- I know never to make a System Administrator an agent’s running user. (Never a System Administrator)
Who may use it, and who manages it
- I know Agent Access gives employee agents by permission set or profile, and that on a site Salesforce says to use a permission set, not the shared profile. (Employee agents)
- I know a service agent has no Agent Access list: the channel decides who reaches it. (The channel is the gate)
- I know Manage AI Agents or Customize Application builds and manages every employee agent. (Who manages them all)
Actions and run context (supports OBJ-5)
- I know agent actions are flows, Apex and prompt templates, and that when an action runs a flow, both the flow’s run context and the agent’s execution context apply. (Flows)
- I know an Apex action’s sharing keyword decides its records and user mode decides its objects and fields, and that a narrow elevation returns an answer, not records. (Apex)
- I know prompt template grounding retrieves data based on the permissions of the user executing the prompt. (Prompt templates)
Agents from outside
- I know every hosted MCP tool call runs with the permissions of the user who authorized the connection: objects, field-level security and sharing. (The person’s access)
- I know the ways to narrow it: external client apps linked to permission sets, a read-only server, Named Queries and custom tools, and that servers are off by default. (Narrow what it can reach)
One customer at a time
- I know context variables don’t control data access: a service agent’s customer can reach everything its agent user can, unless the actions say otherwise. (Knowing who it is)
- I know the pattern: store the VerifiedCustomerId, scope every action’s query to it, and filter actions to verified customers. (Scope every action)
- I know to test the positive, the negative and the null through the agent, and again after every action change. (The test plan)
Beyond the Exam
Section titled “Beyond the Exam”The exam is the floor, not the ceiling. These are the habits from this chapter that an architect needs, whether or not a question ever asks about them.
- Write down who each agent runs as, next to its name.
- Ask every question an agent might be asked, not only the ones in the demo, against its user’s access.
- Read the internal defaults as if a customer could ask about every record they open.
- Give each agent its own agent user, built from read-only subsystem permission sets.
- Grant agents by permission set, and never turn one on in a shared site profile.
- Keep a short, named list of who can manage every agent.
- Inventory every action’s run context, and which agents call it.
- Treat an outside app as the person, in bulk, and narrow its tools.
- Never trust a context variable as a boundary; scope the query.
Words to Know
Section titled “Words to Know”| Term | In one line |
|---|---|
| Employee agent | An agent for people inside the company, running as the logged-in user |
| Service agent | An agent for customers and partners, running as its agent user or the site user |
| Lead Nurturing agent | An agent that emails prospects, running as its own agent user |
| Agent user | The internal user a service agent runs as: EinsteinServiceAgent User |
| Agent Access | The permission set or profile setting that lets users use an employee agent |
| Manage AI Agents | The permission to build and manage employee agents |
| Agent action | A flow, an Apex class or a prompt template the agent calls |
| Grounding | Pulling Salesforce data into a prompt, as the user running it |
| MCP | The Model Context Protocol: an open standard for connecting AI apps to tools |
| Headless 360 | Salesforce capabilities as APIs, MCP tools and CLI commands for any authenticated caller |
| Named Query | An admin-defined SOQL query exposed as one reusable API |
| Context variable | Who the agent is talking to; it doesn’t control access |
| VerifiedCustomerId | The variable that holds the verified customer, for scoping actions |
Check Yourself
Section titled “Check Yourself”Short scenarios in the style of the course. Decide your answer before you open it.
1. A team hides the Salary field from the agent's users with a page layout. Can the employee agent still mention salaries?
Yes, if its user’s field-level security allows the field. An agent works through actions and the API, not your page layout. Remove access with field-level security. Reread Whatever its user can read.
2. Accounts are Public Read Only internally and Private externally. A service agent goes live on the customer site. What can it read?
Every account. It runs as the agent user, an internal user, so the internal default applies. Tighten the internal default or narrow what its actions return. Reread The surprise.
3. To get the demo working, the developer made the agent user a System Administrator. What do you say?
Salesforce’s architects call that out: it creates an agent “whose effective scope is the entire org.” Give it only what its actions need, and remove what it never uses. Reread Never a System Administrator.
4. An employee agent on a partner site is enabled on the site's profile, shared by 4,000 partner users. Only 40 should have it. What do you change?
Enable it on a permission set and assign that to the 40, as Salesforce advises for sites. Reread On a site.
5. A flow built as an agent action runs in system context without sharing "so it never fails." What's the risk?
It reads every record, past the agent user’s access, and the agent repeats what it returns. Run it in User Context—Enforces User Permissions, and elevate only one step that returns an answer. Reread Flows.
6. A sales rep connects an AI app on their laptop through MCP. Can it see more than the rep can?
No: every tool call runs with the rep’s permissions. But it can ask for all of it at once. Narrow it with a read-only server or Named Queries, and check the rep’s access is right. Reread The person’s access.
7. A service agent stores the customer's contact ID from the chat session and uses it to say hello by name. Is the customer limited to their own cases?
No. Context variables don’t control access. Verify the customer, store the VerifiedCustomerId, and scope every action’s query to it. Reread Scope every action.
8. The team added a new action to the service agent last week. Do the access tests need to run again?
Yes. A new action is a new place the customer filter can be missing. Run the positive, the negative and the null through the agent again. Reread The test plan.
Explore
Section titled “Explore”- Salesforce Certified Platform Sharing and Visibility Architect Exam Guide (opens in a new tab), Salesforce Help (checked 2026-11-26)
The official list of objectives and their weights. Always check the current version before you book an exam.
