This article explains how to configure the App Activities integration for Salesforce.
Overview
App Activities provides you with an API-based solution for out-of-band visibility of all activity made by any user in a connected SaaS application. To provide App Activities with visibility of data within an app, you need to set up an integration with the required application. Once you create the integration, if a field has changed or expired, you can edit it from the Resources >Integrations > Integrated Apps page. For more information, see What is Application Control via API with App Activities.
To configure the App Activities integration, you need to:
Configure the integration within the SaaS application
Create the API connector in the CMA
A CASB license is required for App Activities. This license includes app and data control and App Activities via API. For more about purchasing a CASB license, please contact your Cato representative.
Configuring the Salesforce Integration
To configure the Salesforce integration, set up an External Client App in Salesforce and create a connector in the CMA.
Prerequisites
License for Salesforce Shield or Event Monitoring
Step 1: Configure the Integration in your Salesforce Tenant
Create an integration user, assign the required permissions, and configure an External Client App for OAuth 2.0 client credentials.
To create a user for the integration:
Sign in to Salesforce, click the gear icon, and select Setup.
Search for Users and click New User.
Fill in the required details and configure these settings.
User License: Salesforce
Profile: Standard User
Click Save.
To assign the user the required permissions:
In Setup, search for Permission Sets and click New.
Enter a Label and API Name, then click Save.
Enable these permissions in the permission set.
View Event Log Files
Run Reports
View Dashboards in Public Folders
View Reports in Public Folders
Password Never Expires
API Enabled
API User Only
View All Data
Query All Files (“App Permissions” section)
Click Save.
Open Manage Assignments > Add Assignment and assign the permission set to the integration user.
Create the External Client App
In Setup, search for External Client App Manager and click New External Client App.
Fill in the required fields in Basic Information and set Distribution State to Local.
Expand API (Enable OAuth Settings) and select Enable OAuth.
Configure the OAuth settings.
Callback URL:
https://cc.catonetworks.com/redirect/cas/salesforce/callbackOAuth Scopes
Access the identity URL service
Manage user data via APIs
Perform requests at any time
Flow Enablement: Select Enable Client Credentials Flow
Click Create.
Open Policies > Edit and configure these settings.
Plugin Policies > Permitted Users: Select Admin approved users are pre-authorized
App Policies > Select Permission Sets: Select the permission set you created above
OAuth Flows and External Client App Enhancements: Select Enable Client Credentials Flow
Run As (Username): Enter the integration user's Salesforce username
Click Save.
Open Settings > OAuth Settings > App Settings > Consumer Key and Secret and verify your identity if prompted.
Copy and save the Consumer Key and Consumer Secret so they can be entered into the CMA.
In Salesforce Setup, go to Company Settings > My Domain.
Copy and save the Current My Domain URL so it can be entered into the CMA.
Use this URL as the Base URL, including
https://. For example,https://yourcompany.my.salesforce.com.For a sandbox, use its My Domain URL, such as
https://yourcompany--sandboxname.sandbox.my.salesforce.com.
Step 2: Create the API Connector in the CMA
After you have set up an integration with the required application, add the details in the CMA.
To create the API connector in the CMA:
From the navigation menu, click Resources > Integrations.
Click the Integrated Apps tab.
Click New.
The New Integration panel opens.
For SaaS Application, select Salesforce.
In the Capability drop-down, select App Activities.
Configure these settings.
Authentication: Select OAuth2 Client Credentials
Name: Enter a name for the integration
Description: Optionally, enter a description
Consumer Key: Enter the Consumer Key you saved in Step 1
Consumer Secret: Enter the Consumer Secret you saved in Step 1
Base URL: Enter the My Domain URL you saved in Step 1
Click Save.
In the Integrated Apps table, confirm that the connector status is Connected.
After connecting your APIs, you can track the App activities in the Cloud Apps dashboard. Data may take a few minutes to appear.
Known Limitations
All activities (Event Types in SalesForce) are fetched
Sources
ListEventLogFile - Querying event log file paths
DownloadEventLogFile - Querying log files
DownloadEventLogFile - Querying log files
DocumentInfo - Querying Document enrichments
UserInfo - Querying User enrichments
GroupInfo - Querying Group enrichments
AssetInfo - Querying Asset enrichments