waterfalls photography

Enable Salesforce - Claude MCP Write Access

Salesforce Security Audit & Guardrails for AI-Driven Record Management

Skills used

  • Salesforce Architecture, Security Model & Permission Management

  • AI Integration, Model Context Protocol (MCP)

  • Salesforce Automation, Validation Rules & Flows

  • Data Governance, Risk Assessment & Testing

  • RevOps Strategy, Technical Implementation

My Role & Business Impact

I led a major Salesforce security audit and guardrails implementation to prepare the CRM environment for write access through Claude using the Model Context Protocol (MCP).

While connecting an AI assistant to Salesforce is relatively straightforward, allowing it to create and update records introduces a different set of considerations. An AI assistant connected through MCP operates with the permissions of the signed-in Salesforce user. This means that existing access rights, sharing settings, validation rules and automations become particularly important. The goal was to make AI-driven record management possible without introducing security gaps or bypassing established business processes.

The project focused on:

  1. Salesforce Security & Access Audit

    • Reviewed existing profiles, permission sets, field-level security and record-sharing settings.

    • Identified excessive permissions and potential exposure of sensitive CRM data.

    • Designed a more restrictive permission model based on least privilege.

  2. Business Process Guardrails

    • Reviewed validation rules and record lifecycle restrictions to prevent unauthorized changes.

    • Established controls around opportunity stages, closed records, record ownership and required fields.

    • Ensured that critical business processes could not be bypassed through API-based updates.

  3. Automation & Data Integrity

    • Reviewed Salesforce Flows, triggers, assignment rules and third-party integrations for potential side effects.

    • Addressed duplicate management and potential conflicts between UI-based and API-based record creation.

    • Considered how AI-generated changes should interact with existing notifications and approval processes.

  4. Controlled AI Access

    • Defined a dedicated permission model for users connecting through Claude.

    • Restricted the available operations to the required create and update capabilities, excluding record deletion.

    • Established clear boundaries around bulk changes, approvals and Salesforce configuration.


The result is a more controlled Salesforce environment where AI assistants can work with CRM records while remaining subject to the same platform-level security and business rules as regular users.

Actions Taken

Objective

Prepare Salesforce for Claude MCP write access by auditing the existing security model, addressing potential vulnerabilities and implementing platform-level controls for AI-assisted record creation and updates.

Salesforce Permission & Access Model
  • Reviewed the existing Salesforce profiles and permission assignments.

  • Designed a minimal base profile with additional permissions granted through dedicated permission sets.

  • Separated permissions by functional area, including Accounts, Contacts, Leads, Opportunities and Activities.

  • Introduced permission set groups to manage access based on user roles.

  • Restricted connector access through a dedicated sign-in permission.

  • Reviewed sensitive fields and removed unnecessary access to commercially or personally sensitive information.

Record Sharing & Visibility
  • Reviewed Organization-Wide Defaults (OWD) across relevant Salesforce objects.

  • Evaluated the impact of existing sharing rules and broad record visibility.

  • Identified areas where users could access or modify records beyond their actual business requirements.

  • Reviewed the impact of permission sets containing View All or Modify All permissions.

  • Considered the effect of sharing model changes on existing integrations and connected systems.

Validation Rules & Business Guardrails

Implemented and reviewed platform-level validation controls to ensure that API-based changes follow the same business rules as regular Salesforce updates.

  • Key areas included:

    • Restricting opportunity stage transitions based on user permissions and record types.

    • Preventing closed opportunities from being reopened without authorization.

    • Enforcing required fields and prerequisites before advancing records.

    • Preventing unauthorized changes to record ownership and parent relationships.

    • Restricting changes to fields that should remain fixed after record creation.

    • Providing clear error messages when an operation violates a business rule.

Automation & Duplicate Management

Reviewed existing Salesforce automation to identify potential side effects of AI-generated record changes.

  • Audited Salesforce Flows, triggers and assignment rules.

  • Reviewed notification and external synchronization processes.

  • Added considerations for excluding test records from business-facing automations.

  • Reviewed third-party duplicate management tools and their compatibility with API-based writes.

  • Evaluated native Salesforce matching and duplicate rules as an alternative for controlling record creation.

Auditability & Change Tracking

Defined an approach for tracking and verifying changes made through AI-assisted operations.

  • Reviewed Salesforce field history tracking limitations.

  • Identified important fields requiring additional audit coverage.

  • Considered Flow-based change logging for more detailed tracking.

  • Established read-back verification as part of the testing process, querying records after updates rather than relying solely on API success responses.

Testing & Controlled Rollout

Designed a testing and rollout approach focused on validating the Salesforce permission model rather than simply testing whether Claude could execute API calls.

  • Built a dedicated test approach using non-admin Salesforce users.

  • Prepared test records covering different ownership scenarios, record types and opportunity stages.

  • Tested both permitted and blocked operations.

  • Verified that updates were actually reflected in Salesforce.

  • Defined restrictions around record deletion, bulk changes, approvals and Salesforce configuration.

Prepared a phased rollout with a pilot group, monitoring period and rollback plan.

Final Summary

This project addresses one of the less obvious challenges of introducing AI into an established CRM environment: making sure that an AI assistant cannot do more damage, or access more information, than the user behind it.

Rather than relying on AI instructions to prevent unwanted actions, the approach puts the responsibility on Salesforce itself. Permissions, sharing settings, validation rules and automation provide the actual controls.

The result is a structured foundation for introducing Claude as a working assistant in Salesforce, with write access governed by the organization's existing security model and business requirements.

waterfalls photography

Contact

Connect

daniel.szaloczi@gmail.com

+36705801887

© 2024. All rights reserved.