Is it safe to let Claude into your Salesforce org? As safe as the user it signs in as.
Yes, when three things hold before the first session: Claude signs in as a Salesforce user whose access you would give a contractor, a person approves every write, and the first weeks run in a sandbox. Salesforce applies that user’s permissions to every MCP call. Nothing on the Salesforce side decides which org a Claude Code session reaches; that part is yours.
Below: the three ways Claude reaches an org, what each can change, six tests to run in a sandbox, what stops a write to production, where the audit trail sits, and what data leaves the org.
If someone else administers your Salesforce, send them this page and ask for the answers to the six tests in writing.
Anthropic’s Claude Code documentation and Claude Help, Trailhead, Salesforce’s announcement of 26 August 2026, the Object Reference and the Salesforce CLI documentation, read on 3 December 2026. Reviewed 3 December 2026.
Is it safe to let Claude Code or the Salesforce MCP connector into your org?
It is as safe as the Salesforce user behind it. Salesforce hosted MCP servers authenticate each user and, in Trailhead’s words, field level security, object permissions and sharing rules “apply to every tool call”. Claude reaches what that person reaches. Claude Code running the Salesforce CLI is different: it acts as whoever logged in on that machine, often an administrator, and Salesforce asks nobody before it writes.
| Route | Signs in as | What asks before a write | Main risk |
|---|---|---|---|
| Salesforce in Claude plugin, beta for organizations Salesforce approves, in Claude chat and Cowork | Each user’s own Salesforce account | By default Claude asks the user to approve each proposed change | A user who can edit too much passes that to Claude |
| A Salesforce hosted MCP server, such as Headless 360, from Claude or Claude Code | The user who signed in through OAuth | Servers are off until an admin enables them; Claude’s tool approval settings | Its tools can create and update records and manage users and permission sets |
| Claude Code running the Salesforce CLI | Whoever logged the CLI in, for every org stored on that machine | Claude Code’s permission rules and hooks; nothing in Salesforce | A stored production login and an administrator user |
Salesforce’s announcement of 26 August 2026 says the plugin routes actions through Salesforce “to help ensure business rules are always enforced when an action is taken”. A Claude Code session running the CLI does not go through the plugin, so that routing does not cover it.
How to connect each route is on the Claude and Salesforce page; this page is only about whether to let it in and how to check.
What can Claude change in a Salesforce org?
Exactly what its user can change, and through the Headless 360 MCP server that includes Setup. Trailhead says the server lets an agent “query, create, and update records, manage users and permission sets, and set up named credentials”. So an administrator’s login hands Claude user management, while a sales user’s login hands it that user’s own records and nothing in Setup.
The server has four tools, Trailhead says: Discover finds the actions, Describe returns an action’s specification, Dispatch runs it, and Dispatch (Read-Only) runs read only actions. Salesforce’s hosted servers are “disabled by default and can be enabled by an administrator”, and their tool sets cannot be modified. An administrator can build a custom server that groups only the tools one team needs.
That gives two levers before the first question is typed. The user decides which records and fields; the tools decide which kinds of action. A first week with Dispatch blocked and Dispatch (Read-Only) allowed is described with the other approval settings on the Claude and Salesforce page.
Which Salesforce user should Claude run as?
A named person’s own user, with the narrowest profile that does the job, and never a shared administrator. Claude Help says the plugin “signs in as each user’s own Salesforce account”, and Trailhead says hosted MCP servers “enforce per-user authentication”. Whatever that user may do, Claude may do. A shared admin login gives Claude the whole org, Setup included.
Four checks on that user before anyone connects:
- List what the user can edit. Objects and fields through the profile, permission sets and field level security. That list is Claude’s write access. Reading it per user is what a permissions audit does.
- Find the fields that record a decision. An approval flag, a discount, a stage, an owner. A user who can edit one directly can let Claude skip the process behind it. Why stage changes on a live org need care is on changing opportunity stages.
- Move screen only rules into the data. Salesforce Ben’s guide to required fields notes that page layout requirements “do not apply to API integrations”. Make the rules that must hold validation rules.
- Clear the machine for Claude Code. On every computer that runs it,
sf org listlists “all orgs you’ve created or authenticated to”. Log out of production withsf org logoutunless Claude Code is meant to reach it.
How do you test Claude in a sandbox before production?
Run six tests in a sandbox, signed in as the exact user Claude will use in production, and write each result down before production is connected. The tests answer six questions: what Claude can read, what it can write, whether a person is asked first, whether production is out of reach, what the audit trail records, and whether the record really changed.
| # | Test | How | Passes when |
|---|---|---|---|
| 1 | A hidden field | Ask Claude for a field that field level security hides from this user | Claude cannot return it |
| 2 | A forbidden write | Ask Claude to update an object the user can only read | Salesforce refuses the write |
| 3 | Approval | Ask for one harmless update | Claude asks before writing, and nothing changes if you decline |
| 4 | Production out of reach | Run sf org list on the Claude Code machine, then ask Claude Code to query the production alias | No production org is listed, or the command is refused |
| 5 | The trail | After a write, open the record’s Last Modified By and field history; after a Setup change, query Setup Audit Trail | You can see which user the change is recorded under, and you know what your history will show in production |
| 6 | Read back | Query the changed record from the org itself | The value matches what Claude reported |
Test 6 matters most. A reply that says “done” is Claude’s account of the work, not the org’s. Check the record, and check the fields next to it that should not have moved. Why a change that saved cleanly can still break something else is on changes break other things.
What stops Claude Code from writing to production?
Settings and hooks that Claude Code enforces, not instructions to the model. Anthropic’s documentation says permission rules “are enforced by Claude Code, not by the model”, and that text in CLAUDE.md shapes what Claude tries without changing those rules. Three controls hold: a deny rule, a PreToolUse hook that refuses the command, and a machine with no production login stored.
What Anthropic documents about each:
- Rules are checked deny first. “Rules are evaluated in order: deny, then ask, then allow.” A deny rule for a whole tool, such as
"mcp__*", removes every MCP tool from Claude’s reach. - A hook can refuse any command. A PreToolUse hook that exits with code 2 blocks the tool call, and its message goes back to Claude. Anthropic says a blocking hook takes precedence over allow rules.
- A Bash rule reads the text, not the program. Anthropic says such a rule “isn’t a security boundary around the program”:
/bin/rmorsh -ccan pass a rule written forrm. For limits that do not depend on text, it points to sandboxing. - Know the mode. Anthropic’s security page says auto mode is the built in starting mode for interactive terminal sessions, with a separate classifier reviewing actions instead of you. Bypass permissions mode skips prompts. An administrator can disable both through managed settings.
- A hook sees only the tools it matches. A hook written for Bash never sees a write made through an MCP server. Anthropic’s hooks reference names MCP tools
mcp_, so the hook needs a matcher for those tools too, or the MCP server needs a deny rule, as in item 1. To match every tool of one server, the matcher needs_ <server>_ _ <tool> .*after the server prefix.
My own Salesforce org, where this business’s leads and estimates live, is built and maintained with Claude Code. A hook reads the target org from each Salesforce CLI command and refuses a write to any org not on the project’s list. Every Salesforce CLI command names its org, so nothing goes to whatever the folder’s default happens to be, and a project folder with no list is read only. It reads command lines, so it does not see MCP calls. Before a change the components are retrieved from the org, so nobody else’s work is overwritten, and after it the result is read back from the org and a regression runs. The refusal message, recorded on 23 November 2026, is shown on the Claude and Salesforce page.
Where is the audit trail of what Claude did?
Check it yourself in the sandbox, in two places. In Salesforce, field history on tracked fields and Setup Audit Trail, which holds Setup changes “for at least the last 180 days”, including permission set changes the MCP server can make. On the machine that ran Claude Code, session transcripts kept in plain text under ~/. for 30 days by default.
One query lists last week’s Setup changes and who made them:
SELECT CreatedDate, CreatedBy.Name, Action, Display, CreatedByContext
FROM SetupAuditTrail
WHERE CreatedDate = LAST_N_DAYS:7
ORDER BY CreatedDate DESCRun it in the sandbox after test 5 and note which user and context each Claude change shows; then run it after each pilot week. A change nobody remembers asking for is the first thing to discuss. For teams, Anthropic’s security page suggests monitoring Claude Code use through OpenTelemetry metrics, and says all operations in its cloud sessions are logged.
What data leaves the org, and does Anthropic train on it?
What Claude reads from the org becomes part of the conversation sent to Anthropic’s API; Claude Code sends “all user prompts and model outputs”, encrypted in transit, according to Anthropic’s data usage page. Under commercial terms (Team, Enterprise, API) Anthropic “does not train generative models using code or prompts sent to Claude Code” unless the customer opts in, and keeps data for 30 days as standard. Free, Pro, Max and Ultra accounts follow each user’s training setting.
| Account | Training on your data | Retention, per Anthropic |
|---|---|---|
| Team, Enterprise, API | No, unless the customer opts in | 30 days standard; zero data retention for qualified Claude for Enterprise accounts |
| Free, Pro, Max, Ultra | Only if the user allows it | 5 years if allowed, 30 days if not |
For client or donor data, that table is the argument for a company plan instead of a personal one. How a company on Salesforce sets up a Team plan is on the Team plan checklist.
What can still go wrong after all of this?
Four things no setting removes. Text inside a record or a ticket can try to steer Claude, which Anthropic calls prompt injection. A person can approve a write without reading it. A rule that matches command text misses the same command written another way. And Anthropic reviews directory connectors against listing criteria but, its documentation says, “does not security-audit or manage any MCP server”.
The answers are the same habits as above: a narrow user, a person who reads each change before approving it, and a read back from the org. Anthropic’s own advice for untrusted content is to review suggested commands before approval and to avoid piping untrusted content straight to Claude. What an AI agent can expose in an org nobody has reviewed for years is on what Agentforce exposes in an existing org; the same applies to Claude.
What does it cost to have Claude set up with these limits?
Four fixed scopes start at €1,360 for 16 hours: one pilot group of up to five people on up to two profiles, connected by your admin, with its permissions read field by field and every write set to ask a person first. The scopes, what each includes and the larger options are on the Claude and Salesforce page.
If your admins or developers already run Claude Code against your orgs, the scope built for this page is Claude Code with a production guard. It refuses writes to production unless a person allows that one command, sets limits by role, and comes with an install package checked on up to five machines. The four scopes take 16 to 40 hours each; the price of each is on the Claude and Salesforce page.
If the question is the data Claude would answer from, the data quality check costs €650: one working day, delivered within three working days, read only. Every price is on one page.
What do admins ask about Claude and Salesforce security?
QCan Claude see records the user cannot see?
No. Salesforce hosted MCP servers apply the user’s field level security, object permissions and sharing rules to every tool call, and Claude Help says the plugin sees only what the user’s existing Salesforce permissions allow.
QCan Claude be kept read only in the first week?
Yes, on two levels. On a hosted MCP server, allow Dispatch (Read-Only) and block Dispatch; in Claude Code, a deny rule removes the tools that write. The user’s own permissions still apply underneath both.
QDoes a hook on Bash also guard the MCP server?
No. A hook sees only the tools its matcher names, and MCP tools are named mcp__ followed by the server and the tool. Match them in the hook or deny them.
QIs the Headless 360 MCP server generally available?
Trailhead lists it as a beta, at launch offering dozens of operations mostly for admin Setup tasks. Treat it as a beta in a production org: read only first, a person approving every write.
QShould Claude Code deploy to production?
Only a change that already passed in a sandbox and was read back there, and only after a person approved that exact deployment.
Switch Claude on with limits a person controls
A Claude pilot with permission limits, from €1,360 for 16 hours: one pilot group of up to five people on up to two profiles, permissions read field by field, every write set to ask a person first.
Serhii Skrypnyk, Senior Salesforce Administrator, Salesforce certified, on the platform since 2018. Reviewed 3 December 2026.
