Integrate with Salesforce
Follow this step-by-step guide to allow SlashID to monitor and protect your Salesforce organization. This integration enables SlashID to track users, permissions, connected & external client apps, and security events across your Salesforce environment.
Before starting
Before starting, ensure you have:
- System Administrator privileges in your Salesforce organization
- Access to create External Client Apps in Salesforce
- Access to create Permission Sets in Salesforce
- Access to create Users in Salesforce
- Access to assign Permission Sets to Users in Salesforce
Step 1: Create a Permission Set
- Go to Setup -> search
Permission Sets-> click New - Fill in:
- Label:
SlashID Identity Protection - License:
Salesforce API Integration
- Label:
- Click Save
Step 2: Configure System Permissions on the Permission Set
Open the permission set you just created -> System Permissions -> Edit.
Then enable:
View Setup and ConfigurationManage Connected AppsView all External Client AppsView All DataRun ReportsView Reports in Public FoldersView Dashboards in Public FoldersView Roles and Roles HierarchyView Event Log filesView All UsersView All profilesMonitor LoginManage Users
Click Save
Step 3: Create the Integration User
- Go to Setup -> Users -> New User
- Fill in:
- Last name:
SlashID Identity Protection - Email: a monitored email address (recieves a verification email)
- User License:
Salesforce Integration - Profile:
Minimum Access - API Only Integrations - Other fields should auto complete
- Last name:
- Click Save
- Note the integration users Username, this will be used later.
- Take the time now to verify this user by completing the verification step via your email inbox.
Step 4: Assign the Permission Set to the User
- Go to the users detail page: Setup -> Users -> Click
SlashID Identity Protection - Find Permission Set Assignments -> Edit
- Move the
SlashID Identity Protectionpermission set to Enabled Permission Sets - Click Save
Step 5: Create External Client App
- Go to Setup -> External Client App Manager -> New External Client App
- Fill in:
- External Client App Name:
SlashID Identity Protection - Contact email: a monitored email address
- External Client App Name:
- Check:
Enable OAuthunder Open API (Enable OAuth Settings) - Fill in:
- Callback URL:
https://api.slashid.com/nhi/connections/authorize/oauth-callback
- Callback URL:
- Move the following to Selected OAuth Scopes:
Access the identity URL service (id, profile, email, address, phone)Manage user data via APIs (api)Full access (full)Perform requests at any time (refresh_token, offline_access)Access unique user identifiers (openid)
- Check:
Enable Client Credentials Flowunder Flow Enablement - Click Create
Step 6: Set the Client Credentials Flow "Run As" User
- Go to Setup -> External Client App Manager ->
SlashID Identity Protection - Under Policies tab, click Edit
- Check:
Enable Client Credentials Flowunder OAuth Policies -> OAuth Flows and External Client App Enhancements - Enter the integration users Username from Step 3.
- Click Save
Step 7: Get your Consumer Key and Consumer Secret
- Go to Setup -> External Client App Manager ->
SlashID Identity Protection - Under Settings tab, expand OAuth Settings
- Click Consumer Key and Secret
- Complete the verification flow, and you'll find the Consumer Key and Consumer Secret
Step 8: Create Your Salesforce<>SlashID Integration
- Go to the SlashID Console -> Identity Protection -> Configuration -> Data sources.
- Click Add data source
- Select Salesforce from the list of providers in the select menu
- Enter your Salesforce connection details:
| Field | Description | Example |
|---|---|---|
| Name of the connection | Arbitrary name you give to this connection | Salesforce Production |
| Authoritative status | Decide whether Salesforce identities are the primary source of truth when reconciling identities across providers | Primary or Secondary |
| Instance URL | Your Salesforce My Domain URL | https://yourcompany.my.salesforce.com |
| Login URL | Your Salesforce My Domain URL (must be the same for client credentials flow) | https://yourcompany.my.salesforce.com |
| Authentication method | Choose Client Credentials | Client Credentials |
| Consumer Key | Consumer Key from your External Client App | 3MVG9... |
| Consumer Secret | Consumer Secret from your External Client App | Your consumer secret |
- Click Connect to complete the integration.