Salesforce connector
Use Salesforce data for Cortex Cloud.
Cortex Cloud provides three primary methods for connecting to your Salesforce instance. Your choice depends on whether you need to ingest security event logs for monitoring, use the guided wizard setup for integrated services, or deploy specific legacy content packs for niche workflows.
Product availability and licensing
Functional capabilities depend on your specific Salesforce and Cortex Cloud licensing:
This connector includes the following capabilities and sub-capabilities (if applicable):
Data Security: Scan and protect Salesforce data including files, attachments, and records. This capability is available with any active Cortex XSIAM, Cortex Cloud Posture Security, Cortex Cloud Runtime Security, or Cortex Data Security license.
Identity Posture: Maintain visibility and control over Salesforce identities, including users, groups, roles, and granular permissions. This capability is available with any active Cortex XSIAM, Cortex Cloud Posture Security, Cortex Cloud Runtime Security, or Cortex Data Security license.
Security Posture: Requires the Cloud Posture Security product license to view configuration risks in Cortex Cloud.
Saas-posture-config-remediation: Help remediate the misconfigured security settings of your SaaS application. This sub-capability is available with any active Cortex XSIAM or Cortex Cloud Posture Security license.
Cortex Cloud can ingest identity metadata, login history, audit trails, and security monitoring events from Salesforce via capabilities to help you secure user identities, monitor for real-time threats, and automate issue response. To simplify setup, a wizard enables you to select specific capabilities based on your operational needs. The wizard then automatically identifies and provisions the underlying sub-capabilities required to support these capabilities.
The following table outlines the capabilities currently available in the wizard.
Data Security
Scan and protect Salesforce data including files, attachments, and records.
Sensitive data discovery: Identify PII, PCI, or PHI stored in Salesforce objects or Chatter messages to ensure compliance.
Malware prevention: Scan file uploads and attachments in real time to prevent malicious content from spreading within the CRM.
Exposure monitoring: Detect and alert on data shared with external collaborators or inadvertently made public.
Identity Posture
Maintain visibility and control over SaaS-based identities, including users, groups, roles, and granular permissions.
Security Posture
Detect, monitor, and alert on your cloud application settings.
Identifying misconfigurations
Security health monitoring
Compliance and risk visibility
Prerequisite
Cortex Cloud tenant
RBAC permissions: Requires View/Edit permissions for Log Collections, Data Sources, and Integrations (under Configurations & Data Collections).
Content packs: Ensure the Salesforce and Base content packs are installed or updated to the latest version.
Store credentials (optional): You can configure vault credentials to securely manage and reuse authentication data across multiple sub-capabilities under Settings → Configurations → Integrations → Credentials.
Gateway permissions: Requires Account Admin or Instance Administrator permissions for configuring egress settings in the Cortex Gateway to allow communication with your Salesforce Domain URL.
Salesforce environment
Salesforce requirements depend on the capabilities you use:
How to configure the Salesforce connector
Perform the following procedures in the order that they appear, below.
Task 1. Configure the external client app in Salesforce
Salesforce is deprecating "Connected Apps"; it is recommended to use an external client app.
On the Setup page, search for App Manager and click New External Client App.
Provide a name (such as
panw_cortex_integration), and your email address (used to retrieve the Consumer Key and Consumer Secret).Under API (enable OAuth settings), select Enable OAuth.
Enter the following Callback URLs on separate lines (replacing
{tenant external URL}with your tenant name):https://{your-salesforce-domain}.my.salesforce.com/services/oauth2/callbackhttps://{tenant external URL}.paloaltonetworks.com/configuration/data-sources
Select these OAuth Scopes:
Access and manage your Chatter data (chatter_api)Manage user data via APIs (api)Perform requests at any time (refresh_token, offline_access)
Enable only these checkboxes after OAuth Scopes: Require Secret for Web Server Flow, Require Secret for Refresh Token Flow, and Enable Client Credentials Flow. For more information, see Salesforce Client Credentials Flow.
Click Save, then Continue.
Task 2. Retrieve credentials in Salesforce
Consumer Key will be used for client_id, and Consumer Secret will be used for client_secret in OAuth 2.0.
On the Setup page, search for External Client App Manager.
Find your application (the one that you defined for Cortex Cloud), click the arrow button in the last column, and select Edit Settings.
In the OAuth Settings area, click Consumer Key and Secret.
Go back to the Salesforce Verify Your Identity page, paste the code received via email in the
Verification Codebox, and click Verify. One of the following will happen:The Consumer Key and Consumer Secret will be sent to the email address that you configured earlier for the Cortex Cloud External Client App.
On the Salesforce External Client App Name page, the Consumer Details area will display the Consumer Key and Consumer Secret, and you will be able to copy them from here when required in the following procedures.
Task 3. Configure the refresh token expiration policy in Salesforce
On the Setup page, search for External Client App Manager.
Find your application (the one that you defined for Cortex Cloud), click the arrow button in the last column, and select Edit Policies.
In the OAuth Policies area:
Under Plugin Policies - Permitted Users, select All users can self-authorize.
Set the refresh token policy to Expire refresh token if not used for specific time (recommended). For example, select this option and set it for 7 days.
Task 4. Configure the OAuth 2.0 application for Salesforce
Configure OAuth 2.0 authentication to call the Salesforce API with one of the following flows:
Client credentials flow: For more information, see Configure an External Client App OAuth 2.0 Client Credentials Flow.
Web server flow: For more information, see OAuth 2.0 Web Server Flow.
Task 5. Configure egress in Cortex Gateway
An Account Admin or Instance Administrator must configure egress settings in the Cortex Gateway to allow communication with your Salesforce Domain URL. For more information, see Egress Configurations.
Log in to the Cortex Gateway with Account Admin or Instance Administrator permissions and click Permission Management.
From the side menu, select Egress Configurations.
In the TENANT dropdown, select the tenant where you are configuring the Salesforce integration.
Click +Path to initiate a new path request.
In the New Path dialog box, configure the following:
Requester: In the dropdown, select the requester from the list of users.
Flow: In the dropdown, select the appropriate data service option for a generic webhook/host out (or Salesforce if it is explicitly listed).
Click Add to create the path. Once the status of the path shows as Approved in the Egress Configuration table, Cortex Cloud can successfully authenticate and execute commands against your Salesforce environment.
Task 6. Configure the Salesforce connector in Cortex Cloud
Navigate to Settings → Data Sources & Integrations.
Click + Add new.
In the Add Data Source page, search for Salesforce.
Under Recommended, hover over the new Salesforce integration and click Add Instance to launch the Salesforce wizard. The new Salesforce connector has the description: Salesforce CRM services for identity management, automation, remediation and SaaS Posture Security.
Set up your Salesforce instance by following the wizard steps in the following tabs.
Task 7. (Optional) Edit or test existing Salesforce instance settings in Cortex Cloud
You can edit and test an existing instance after a successful initial connection between Salesforce and Cortex Cloud. Do this by clicking Test.
Important
If a “connected application” for Cortex Cloud data collection already exists, you are not required to migrate to an “External Client App”, but since Connected Applications are deprecated by Salesforce, it is recommended to migrate.
Last updated
Was this helpful?
