Salesforce
Integrating Salesforce with ThreatDefence allows you to securely ingest audit, user, and application activity into the ThreatDefence platform for centralized monitoring and incident response. The following steps guide you through configuring authentication, creating an integration user, and providing the necessary API credentials.
Step 1. Configure Authentication for Username–Password Flow
Log in to Salesforce as a System Administrator.
Navigate to the Setup page.
Open OAuth and OpenID Connect Settings.
Enable the option Allow OAuth Username–Password Flows.
Step 2. Create a Dedicated Integration User
In Setup, search for Users in the Quick Find box.
Click New User.
Complete the user creation form with the required details (name, email, profile/role).
Save changes.

If license limits prevent creating a new user, you may reuse an existing user with sufficient permissions. Salesforce will send a password reset email to the user. Keep the username and new password securely.

Step 3. Create a New Connected App
In Setup, search for Apps.
Go to App Manager → New Connected App (top-right corner).


Complete the required fields (you may use any valid email).

Enable OAuth and configure the following scopes:

Save changes.
Step 4. Relax IP Restrictions in OAuth Policy
Wait a few minutes for changes to propagate.
In Setup, search for Apps → Connected Apps → Manage Connected Apps.
Locate the Connected App you created and click its name.

Select Edit Policies.
In the OAuth Policies section, set Enforce IP restrictions to Relax IP restrictions.
Save changes.

Step 5. Obtain the App’s Client ID and Client Secret
In Setup, go to Apps → App Manager.
Find the Connected App you created for ThreatDefence integration.
From the row menu (dropdown on the right), select View.

In the API section, click Manage Consumer Details (requires a verification code sent to the admin email).

On the Consumer Details page, copy the following values:
Consumer Key (Client ID)
Consumer Secret (Client Secret)

Step 6. Obtain Your Salesforce Domain
In Setup, search for Domain.
Go to Company Settings → My Domain.
In the My Domain Details section, copy the Current My Domain URL.

Final Step. Provide Credentials to ThreatDefence
Share the following values with your ThreatDefence representative at [email protected]:
Username — Salesforce integration user account username
Password — password for the integration user
Client ID — Consumer Key from the Connected App
Client Secret — Consumer Secret from the Connected App
Domain URL — Current My Domain URL from My Domain settings
ThreatDefence will configure ingestion using these d
Last updated