Salesforce DSR integration

Automate privacy request handling by integrating MineOS with Salesforce.

✓ Preview✓ Delete✓ Anonymize✓ Get a copy

Missing an action you need, or an integration we don't support yet? Contact your Customer Success Manager.

This integration automates privacy requests for Salesforce. MineOS finds the records that match the requester's email address, then lets you preview, delete, anonymize or copy them.

This article covers two Salesforce products, each with its own integration types:

ProductWhat it coversWhere to read
Salesforce (Sales Cloud and Service Cloud)Lead, Contact and Account recordsThe sections below
Salesforce Commerce Cloud (SFCC)Shopper customer accounts in your online storeSalesforce Commerce Cloud

To scan Salesforce for personal data, see Salesforce data classification integration.

How It Works

  • Preview: before MineOS deletes or copies anything, you can preview the data it found for the requester.
  • Delete: MineOS uses Salesforce's search endpoint to find every record that matches the requester's email address, and deletes those records and their associated records. User records are skipped and never deleted.
  • Anonymize: MineOS finds the records that match the requester's email address and redacts the basic fields that contain personal data, such as Name, FirstName, LastName, FullName, Phone, PhoneNumber, MobilePhone, Email, EmailAddress, Street, City and Website.
  • Custom Anonymization: you choose which fields to anonymize on Lead, Contact and Account records, including your own custom fields.
  • Get a copy: MineOS sends the requester a copy of the User, Lead and Contact records found for their email address.

Choose the right integration type

Integration typeWhat it does
Salesforce - DeleteDeletes the requester's records. Recommended.
Salesforce - AnonymizeRedacts personal data in the standard fields listed above.
Salesforce - Custom AnonymizationRedacts the standard and custom fields you configure.
Salesforce - Custom Anonymization (Sandbox)The same, for testing in a sandbox account first.
SFCC OCAPI - DSRFor Salesforce Commerce Cloud. Deletes or copies the shopper's customer account. See Salesforce Commerce Cloud.

Before You Start

MineOS needs API access to your Salesforce org to find and process the requester's records. You can grant it in one of two ways:

Option 1: Dedicated integration userOption 2: Connect with your own account
How MineOS actsAs a dedicated user that only MineOS usesAs the person who clicks Connect
Audit trailChanges appear under the integration userChanges appear under that person's name
If the person leavesThe integration keeps workingThe integration stops working
AccessOnly the objects and fields you grantEverything the person can access
Setup effortAbout 15 minutes in Salesforce SetupOne click

We recommend Option 1.

Option 1: Dedicated integration user (recommended)

You need to be a Salesforce admin to complete these steps.

  1. Create the user. In Salesforce, go to Setup → Users → New User. Set User License to Salesforce Integration and Profile to Minimum Access - API Only Integrations. Use a name that's easy to recognize, such as MineOS Integration.
  2. Assign the permission set license. On the user's record, assign the Salesforce API Integration permission set license.
  3. Create a permission set and assign it to the user. Enable:
    • API Enabled
    • View and Edit Converted Leads
    • Read, Edit and Delete on Lead, Contact and Account, and Delete on any related objects whose records should be deleted with them
    • Field-level access on every field MineOS should read or anonymize, including custom fields
  4. Create an External Client App. Go to Setup → External Client App Manager → New External Client App, and:
    • Enable OAuth and add the Manage user data via APIs (api) scope.
    • Enable the Client Credentials Flow.
    • On the Policies tab, set Run As to the integration user.
  5. Copy the app's credentials. Keep the Consumer Key, Consumer Secret and your My Domain URL at hand. You'll enter them in MineOS during setup.
📘

Keep access to a minimum

Don't give the integration user the System Administrator profile or the Modify All Data permission. Granting only what MineOS needs limits what the credentials can do.

📘

Using a sandbox

External Client Apps aren't copied when a sandbox is created or refreshed. Create the app separately in each sandbox you connect.

Option 2: Connect with your own account

  • The person who clicks Connect must have API access and permission to approve connected apps. If Salesforce blocks the connection, ask your Salesforce admin to give that user the Approve Uninstalled Connected Apps permission.
  • For Custom Anonymization, the person who connects must be a Salesforce admin.
  • MineOS requests these Salesforce permissions:
    • Access the identity URL service
    • Manage user data via APIs
    • Perform requests at any time
  • If you grant access through a permission set, enable API Enabled and View and Edit Converted Leads in it.

Setting Up

If you're using a dedicated integration user (Option 1), enter the Consumer Key, Consumer Secret and My Domain URL from your External Client App when MineOS asks you to connect, instead of signing in with your own account.

Delete and Anonymize

  1. Log in to MineOS. On the left sidebar, click Inventory → Data Sources. Click Add Data Source, search for Salesforce and click Add.

  2. Open the Salesforce data source → Integrations tab → Request Handling section → select Integration, and choose an integration type.

  3. If you're connecting a sandbox account, type TEST in the sandbox field. For a production account, leave it empty.

  4. Click Connect and follow the on-screen instructions to grant MineOS the required permissions. A Success message appears once the connection is made.

  5. Click Save.

You're done! MineOS has been connected to your Salesforce account.

Custom Anonymization

  1. Log in to MineOS. On the left sidebar, click Inventory → Data Sources, and open the Salesforce data source.
  2. Go to the Integrations tab → Request Handling section → select Integration.
  3. Choose Custom Anonymization, or Custom Anonymization (Sandbox) to test with a sandbox account first, and click Set up integration.
  4. Click Connect on the Salesforce connection and allow MineOS access. A confirmation page appears when the connection succeeds.
  5. Click Next to open the Salesforce Fields page.
  6. Configure the fields you want to anonymize for Lead, Contact and Account records, using each field's Salesforce API name (for example LinkedIn_URL__c).
  7. Finish the setup.

When you configure the fields:

  • Account email field: Account records have no native email field, so MineOS searches Accounts by a custom email field. Enter it in Account Email Search Field, for example Email__c.
  • Don't add Email to the custom fields. Email is always anonymized automatically, as {timestamp in milliseconds}_{anonymized email}, for example [email protected].
  • Masking value: we recommend anonymizing with a string of 14 asterisks (**************).

Salesforce Commerce Cloud

Salesforce Commerce Cloud (SFCC) has its own integration type, SFCC OCAPI - DSR. MineOS uses an OCAPI client that you create in your SFCC account to find the shopper's customer account that matches the requester's email address, then deletes it or sends the requester a copy.

✓ Delete✓ Get a copy

How it works

  • Delete: MineOS finds the SFCC customer account that matches the requester's email address and deletes it.
  • Get a copy: MineOS emails the requester a copy of the customer account it found.

Before you start

  • Make sure you have permission to create an OCAPI client. In Account Manager this requires the Account Administrator role.
  • Know the ID of the customer list MineOS should search. If you use more than one customer list, you will create one integration instance per list.

Step 1: Create an API client in Account Manager

  1. Log in to Account Manager and open the API Client section.
  2. Click Add API Client. SFCC generates the Client ID, and you set the Client Secret.
  3. Store the Client ID and Client Secret securely. Treat the secret like a password.

Step 2: Grant Data API permissions in Business Manager

  1. Log in to your Commerce Cloud instance's Business Manager.
  2. Go to Administration → Site Development → Open Commerce API Settings and select the Data API tab.
  3. Add a configuration for your Client ID with these rules:
    • Resources: /customers and /customers/*
    • Read scope: the scope your instance uses for customer data (typically global)
    • Write methods: DELETE

Step 3: Connect in MineOS

  1. Log in to MineOS. On the left sidebar, click Inventory → Add data source, search for Salesforce Commerce Cloud and add it. If it's already in your inventory, skip this step.
  2. Open Salesforce Commerce Cloud and go to the DSR & integrations tab. If the system already has an instance, click Add instance.
  3. Under Action for fulfilling requests, select Integration. In the Integration Type dropdown, select SFCC OCAPI - DSR, then click Set up integration.
  4. Enter your Client Id and Secret from Step 1.
  5. Enter the customer list id that MineOS should use to find and delete customer data.
  6. Click Finish.

To cover several customer lists, repeat Step 3 and create one integration instance for each list ID.

Using the Integration in Requests

To handle requests automatically, add the Salesforce or Salesforce Commerce Cloud integration to the workflows of the privacy rights it should handle, such as deletion or get a copy.

Need Help?

If you need any help with this integration, please contact your Customer Success Manager. They will be happy to assist you!


Did this page help you?