CRM Analytics Dataset Equivalence Post-Installation Instructions
We appreciate your interest in the CRM Analytics Dataset Equivalence app, and we hope it provides much value and improves development life for you and your team. Maximum effort was put forth to minimize your setup effort. However, there are still some steps we'll need to ask you to complete that are required by the Salesforce security infrastructure to ensure the safety of your organization's data. If you need any technical assistance, please contact Think North Group, and we'll be happy to help you. Here's what we'll do.
​
-
Create the authorization protocol needed for you to access your own CRM Analytics data from within your Salesforce instance.
-
Add the authorization protocol to the permission set and assign it to users.
-
Grant access to CRM Analytics assets by creating a Public Group of users. You could grant the users access individually, but using the Public Group should be easier to maintain.
-
Instruct each user to authenticate themselves with the authorization protocol created earlier. This ensures that users can only access the CRM Analytics datasets they already have access to through CRM Analytics.
Row-level security is also enforced, and access to all rows is needed to check for full equivalence between datasets. Most users are expected to be CRM Analytics Developers, Admins, and Upper Management, who usually already have access to all rows in the datasets they're working with, so this shouldn't cause a change from normal most of the time. But please ensure that users have access to all rows in the datasets they're checking for equivalence.
-
Create Authorization Protocol
-
Find the URL for Your Org
-
In Setup, enter "My Domain" in the "Quick Find" box and select "My Domain".
-
In the "My Domain Details" section, find the "Current My Domain URL", copy the URL, and paste it somewhere temporarily.
-
-
Create a Connected App
-
In Setup, type "App Manager" in the "Quick Find" box and select "App Manager".
-
Click "New Connected App".
-
In the "Connected App Name" field, enter "Dataset Equivalence Checker Authorization".
-
In the API Name field, enter "DatasetEquivalenceCheckerAuthorization".
-
In the "Contact Email" field, enter the email address of the person who should be notified of any authorization issues. An authorization code that we'll need will be sent to this email address in a later step.
-
Select the checkbox labeled "Enable OAuth Settings".
-
In the "Callback URL" field, enter "https://" followed by the URL you copied earlier followed by "/services/authcallback/DatasetEquivalenceCheckerAuth". For example, if your current my domain URL is "orgdomain.my.salesforce.com", enter "https://orgdomain.my.salesforce.com/services/authcallback/DatasetEquivalenceCheckerAuth".
-
In the "Select OAuth Scopes section, select each of the following scopes and click "Add" for each one, "Access Analytics REST API resources (wave_api)", "Perform requests at any time (refresh_token, offline_access)", and "Manage user data via APIs (api)" (This last permission is only used to authenticate your users once each to allow them to use the connection. User data is not modified during app use).
-
Ensure the following checkboxes are selected, "Require Secret for Web Server Flow", "Require Secret for Refresh Token Flow", "Enable Client Credentials Flow" (and click "OK" when prompted), and "Enable Authorization Code and Credentials Flow".
-
Click "Save".
-
Click "Continue".
-
The page for the new Connected App should show. In the "API (Enable OAuth Settings)" section, select the button labeled "Manage Consumer Details".
-
Enter the verification code that's sent to the email address you entered earlier for notifications.
-
Copy and paste the "Consumer Key" and Consumer Secret" temporarily for use in a later step.
-
Click "Cancel".
-
Click "Switch to Lightning Experience" and navigate back to Setup.
-
-
Create Auth. Provider
-
In Setup, type "Auth. Providers" in the "Quick Find" box and select "Auth. Providers".
-
Click "New".
-
In the "Provider Type" picklist, select "Salesforce".
-
In the "Name" field, enter "Dataset Equivalence Checker Auth".
-
In the URL Suffix field, enter "DatasetEquivalenceCheckerAuth".
-
In the "Consumer Key" field, enter the consumer key you copied earlier.
-
In the "Consumer Secret" field, enter the consumer secret you copied earlier.
-
Click "Save".
-
-
Create Named and External Credentials
-
In Setup, enter "Named Credentials" in the "Quick Find" box and select "Named Credentials".
-
Select "External Credentials".
-
Click "New".
-
In the "Label" field, enter "Dataset Equivalence Checker Auth Ext".
-
In the "Name" field, enter "DatasetEquivalenceCheckerAuthExt".
-
In the "Authentication Protocol" picklist, select "OAuth 2.0".
-
In the "Authentication Flow Type" field, ensure that "Browser Flow" is selected.
-
In the "Scope" field, enter "api wave_api refresh_token".
-
In the "Authentication Provider" field, select "Dataset Equivalence Checker Auth".
-
Click "Save".
-
The new External Credential page should show. In the "Principals" section, click "New".
-
In the "Parameter Name" section, enter "TNG__DatasetEquivalenceCheckerUser".
-
In the Identity Type picklist, select "Per User Principal".
-
Keep the rest as defaults and click "Save".
-
Navigate back to the "Named Credentials" screen by clicking "Named Credentials".
-
Select "Named Credentials".
-
Click "New".
-
In the "Label" field, enter "Dataset Equivalence Checker Auth".
-
In the "Name" field, enter "DatasetEquivalenceCheckerAuth".
-
In the URL field, enter "https://" followed by the My Domain URL you copied earlier. For example, if your current My Domain URL is "orgdomain.my.salesforce.com", enter "https://orgdomain.my.salesforce.com".
-
Ensure the "Enabled for Callouts" button is selected.
-
In the "Authentication" section, in the "External Credential" picklist, select "Dataset Equivalence Checker Auth Ext".
-
In the "Callout Options" section, ensure the following checkboxes are selected, "Generate Authorization Header", "Allow Formulas in HTTP Header", and "Allow Formulas in HTTP Body".
-
In the "Managed Package Access" section, in the "Allowed Namespaces for Callouts" field, enter "TNG".
-
Click "Save".
-
-
-
Add Authentication Protocol Components to Permission Set & Assign It to Users
-
Add Authorization Protocol to Permission Set
-
In Setup, enter "Permission Sets" in the "Quick Find" box and select "Permission Sets".
-
Next to the "Dataset Equivalence Checker User Permission Set" permission set, click "Clone".
-
In the "Label" field, enter "Dataset Equivalence Checker User".
-
In the "API Name" field, enter "DatasetEquivalenceCheckerUser".
-
Select the "Dataset Equivalence Checker User" permission set.
-
In the "Apps" section, select "Assigned Connected Apps".
-
Click "Edit".
-
In the "Installed Connected Apps" section, select "Dataset Equivalence Checker Authorization" and click "Add".
-
Click "Save".
-
Next to "Assigned Connected Apps", in the drop-down menu, select "External Credential Principal Access".
-
In the "Available External Credential Principals" section, select "DatasetEquivalenceCheckerAuthExt - TNG__DatasetEquivalenceCheckerUser" and click "Add".
-
Click "Save".
-
-
Assign Permission Sets to Users
-
In Setup, enter "Permission Sets" in the "Quick Find" box and select "Permission Sets".
-
Select the "Dataset Equivalence Checker User" permission set.
-
Click "Manage Assignments".
-
Click "Add Assignments"
-
Select the users to assign the permission set to.
-
Click "Next".
-
Optionally, set an expiration date.
-
Click "Assign".
-
Click "Done".
-
-
-
Grant access to CRM Analytics Assets
-
Create a Public Group (Optional but Recommended)
-
In Setup, type "Public Groups" in the "Quick Find" and select "Public Groups".
-
Click "New"
-
In the "Label" field, enter "Dataset Equivalence Checker Users".
-
In the "Group Name" field, enter "DatasetEquivalenceCheckerUsers".
-
In the "Search" picklist, select "Users".
-
Add any users from the "Available Members" list and click "Add" for each of them.
-
Click "Save".
-
-
Grant Access to CRM Analytics Dashboards used in the app.
-
Click the App Launcher and select "Analytics Studio".
-
In the search box, enter "Dataset Equivalence Checker" and select the app named "Dataset Equivalence Checker".
-
Click the share icon.
-
If you created a Public Group:
-
In the bottom-left picklist, select "Group".
-
In the search box, enter "Dataset Equivalence Checker Users" and select the Public Group called "Dataset Equivalence Checker Users".
-
Ensure the "Viewer" level of access is selected. (No higher level of access should ever be granted.)
-
Click "Add".
-
-
If you did not create a Public Group:
-
In the bottom-left picklist, select "User"
-
For each user, type their name, select them, ensure the "Viewer" level of access is selected (no higher level of access should ever be granted), and click "Add".
-
-
-
Click "Save" and exit the window.
-
-
-
Instructions for each user to authenticate the authorization method. They only need to do this once.
-
Click your Avatar icon in the top-right corner of the Salesforce page and click "Settings".
-
In the left sidebar, click "External Credentials".
-
In the "Dataset Equivalence Checker Auth" tile, click "Allow Access".
-
Enter your Salesforce login credentials.
-
Click "Allow".
-
Each user can now access the app from the app launcher.
Enjoy!