MCP and Headless 360 Let Agents From Outside In, as a User
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
Module 5 of 6 in the chapter Beyond the Record: Agents, chapter 20 of Securing Salesforce: Sharing and Visibility. Each module stands on its own.
The question this module answers: An AI app outside Salesforce can now call Salesforce directly. Whose access does it use, and how do you keep it to what the job needs?
Every capability, for any authenticated caller
Section titled “Every capability, for any authenticated caller”Until now, this chapter’s agents lived inside Salesforce. The newest ones don’t. Salesforce’s Summer ‘26 release made it a headline: “Headless 360 makes every major Salesforce capability available as an API, Model Context Protocol (MCP) tool, or CLI command — accessible to any authenticated caller, whether that’s an app, a human, or an autonomous AI agent” (The Salesforce Developer’s Guide to the Summer ‘26 Release (opens in a new tab), Salesforce Developers blog, June 2026, checked 2026-11-26).
So a person can sit in an AI app outside Salesforce, connect it to the org, and ask it questions that it answers with Salesforce data. How that app gets in, and how it proves who it’s working for, is the Identity and Access course’s job (MCP: The Door for Tools). This module asks the sharing question: once it’s in, what can it see?
The person’s access, all of it
Section titled “The person’s access, all of it”Salesforce’s answer is clear, and it’s this course’s answer: “Every MCP tool call runs with the same permissions as the user who authorized the connection” (Security Best Practices (opens in a new tab), Hosted MCP Servers, Salesforce Developers, checked 2026-11-26). Then, in Salesforce’s own list:
- “The agent has the same object-level access (CRUD permissions) as the user.”
- “The agent respects field-level security restrictions.”
- “The agent follows record sharing rules.”
- “All actions are attributed to the named user in audit trails.”
And the line I’d teach from: “if a user cannot perform an action in the Lightning UI or over the REST API, they cannot perform it via MCP” (same page).
That’s good news if your sharing model is right. It’s the same model, and no new hole. But read it the other way round too. Whatever the person can see in the UI, the outside app can now read through an API, in bulk, for whatever the person asks it. A sales rep who can see every account in the region can ask an AI app on their laptop for every account in the region, with phone numbers, and get them. The sharing model allowed it before. Now it takes one sentence.
So the first defense isn’t new at all. It’s everything from Part 2: give each person only the records their job needs. An outside agent can’t see past it. It also never needed to.
Narrow what it can reach
Section titled “Narrow what it can reach”Salesforce says to “start with the most restrictive configuration that meets your use case, then expand access only as needed” (Security Best Practices), and offers four ways to narrow it. Each is a decision this course has already taught you to make:
- Who may connect at all. “Link External Client Apps to specific profiles and permission sets to control which users can access which MCP clients.” It’s module 3’s Agent Access idea, for outside apps: a permission set for the people whose job needs it.
- Reading, not changing. “The platform/sobject-reads server exposes only read operations, eliminating modification risks entirely.”
- One question, not every question. With Named Queries, administrators “define specific SOQL queries as reusable APIs, providing controlled data access without exposing the full query surface.” The app can ask that question, and only that one.
- Your own tools. “Use Apex Invocable Actions, REST endpoints, or Flows to implement precise business logic and conditional access rules beyond what standard permissions can express.” That’s module 4 again: a custom tool has a run context, and it can read past the person if you let it. Same keywords, same modes, same inventory.
And one choice Salesforce makes for you: servers “are disabled by default and require explicit administrative action to enable” (same page). Turning one on is a design decision. Write down which server, for which permission set, and why.
See what it did
Section titled “See what it did”Because every call runs as a named person, Salesforce writes it down like any other API call: “agent actions appear in standard Salesforce API logs with full user attribution. You can identify MCP traffic by filtering for records where API_CLIENT_CATEGORY = SALESFORCE_HOSTED_MCP” (Security Best Practices).
Give that filter a row in chapter 19’s monitoring plan: who’s connecting from outside, how much they pull, and who reads it. And remember chapter 19 module 4: data an outside app pulls through the API has left Salesforce by an exit, and the API exits are the ones you watch yourself.
What an architect decides here
Section titled “What an architect decides here”- Whether outside agents may connect at all, and which MCP servers are turned on.
- Which permission set may use each external client app.
- For each use case, the narrowest tool: read-only, a Named Query, or a custom tool with a known run context.
- Whether each person’s record access is still right, now that an outside app can ask for all of it at once.
- The monitoring row for MCP traffic: the filter, the threshold and the reader.
Beyond the exam: what AI changes. This is the change. The org used to be reached through screens Salesforce built, at the speed a person reads. Now any authenticated app can ask for any capability, as fast as it can ask. The sharing model didn’t change. How much of it anyone can use at once did.
Explore
Section titled “Explore”- Security Best Practices (opens in a new tab), Hosted MCP Servers, Salesforce Developers (checked 2026-11-26)
- The Salesforce Developer’s Guide to the Summer ‘26 Release (opens in a new tab), Salesforce Developers blog (checked 2026-11-26)
- For the door: MCP: The Door for Tools, Securing Salesforce: Identity and Access
