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.

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 below.
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.

The Salesforce types work with the records in your Salesforce org that contain the requester's email address. SFCC OCAPI - DSR works with shopper customer accounts in one customer list of your Commerce Cloud instance.

Common setup

The four Salesforce types share the prerequisites below. SFCC OCAPI - DSR has its own, see SFCC OCAPI - DSR.

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.

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.

Salesforce - Delete

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.
  • Get a copy: MineOS sends the requester a copy of the Lead, Contact and other records found for their email address, one record per object type. User records are never included.

What MineOS Does

  • Finds the requester by: email address — MineOS runs a Salesforce search (FIND {email}) over all searchable objects and fields, so any record that contains the email, of any object type, is matched. User records are always skipped.
  • Preview shows: up to 10 of the records found, each with its object type, Id, Email and Name (FirstName and LastName).
  • Delete: deletes every record the search found, except User records. If Salesforce refuses to delete a record because Case records are associated with it, MineOS deletes those cases and tries again.
  • Get a copy includes: all fields of the matching records as returned by Salesforce, grouped by object type, except User records. The copy holds one record per object type: if several records of the same type match, only one of them is included.

Setting Up

  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.

Salesforce - Anonymize

How It Works

  • 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.

What MineOS Does

  • Finds the requester by, Preview shows and Get a copy includes: the same as Salesforce - Delete.
  • Delete: overwrites fields on every record the search found, except User records. Records stay in Salesforce.
    • Lead: FirstName, LastName, Phone, Street, City and Website are set to *****, MobilePhone to 1*****, and Email to anon-<record ID>@anonymized.invalid.
    • Contact: FirstName, LastName, Phone, OtherPhone, OtherStreet, MailingStreet, OtherCity and MailingCity are set to *****, MobilePhone to 1*****, and Email to anon-<record ID>@anonymized.invalid.
    • Account: FirstName, LastName, BillingStreet, BillingCity, ShippingStreet, ShippingCity, Phone, Website, PersonMailingStreet, PersonMailingCity and PersonMobilePhone are set to *****, and PersonEmail to anon-<record ID>@anonymized.invalid.
    • Any other object: whichever of Name, FirstName, LastName, FullName, Phone, PhoneNumber and MobilePhone the record has are set to *****, and Email and EmailAddress to anon-<record ID>@anonymized.invalid.
    • On every record, any other updateable field whose value contains the requester's email is also set to anon-<record ID>@anonymized.invalid. Fields the object doesn't have are skipped.

Setting Up

Follow the steps in Salesforce - Delete, and choose Salesforce - Anonymize as the integration type.

Salesforce - Custom Anonymization

How It Works

  • Custom Anonymization: you choose which fields to anonymize on Lead, Contact and Account records, including your own custom fields.

What MineOS Does

  • Finds the requester by: email address — MineOS looks up Contact and Lead records whose Email equals the requester's email, and Account records whose Account Email Search Field equals it.
  • Delete: updates every record found; nothing is deleted. On Contact and Lead records Email is overwritten, and on Account records the Account Email Search Field, with a timestamp in seconds followed by [email protected]. Each field you list for that object is set to the value you give it.
  • What you configure (on the Salesforce Fields page): Lead Custom Fields, Contact Custom Fields and Account Custom Fields, each a list of field API names with the value to write into each (for example LinkedIn_URL__c → **************), and Account Email Search Field (default Email__c). See Setting Up for the recommendations.

Setting Up

  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 seconds}[email protected], for example [email protected].
  • Masking value: we recommend anonymizing with a string of 14 asterisks (**************).

Salesforce - Custom Anonymization (Sandbox)

What MineOS Does

Setting Up

Follow the steps in Salesforce - Custom Anonymization, and choose Custom Anonymization (Sandbox).

SFCC OCAPI - DSR

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.

✓ Preview✓ Delete✓ Get a copy

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.

How It Works

  • Preview: MineOS finds the SFCC customer account that matches the requester's email address and shows its name, email and phone.
  • 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.

What MineOS Does

  • Finds the requester by: email address — MineOS searches the customer list you set (Customer List Id) on credentials.login, then keeps the first customer whose email is exactly the requester's email.
  • Preview shows: name (first_name and last_name), email and phone (phone_home).
  • Delete: deletes that customer (customer_no) from the customer list. Customers in other customer lists aren't touched.
  • Get a copy includes: all fields of the customer record as returned by the customer search, and the customer's saved addresses. If SFCC denies access to the addresses, the copy is sent without them.
  • What you configure: SFCC Client Id, SFCC Client Secret, Customer List Id (for example NA_Acme_CustomerList) and SFCC Host, your instance's host name (for example sfcctest.example.com).

Setting Up

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: /customer_lists/*/customer_search (POST, to find the customer), /customer_lists/*/customers/* (DELETE, to delete the customer) and /customer_lists/*/customers/*/addresses (GET, to include the customer's addresses in a copy)
    • 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. In SFCC Host, enter your Commerce Cloud instance's host name, in the format of the example shown in the field (for example sfcctest.example.com).
  7. Click Finish.

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

Using several integration types together

If you use Salesforce Sales or Service Cloud and also run an online store on Salesforce Commerce Cloud, connect both so a request covers the requester's CRM records and their shopper account.

The two types belong to two different data sources in MineOS, Salesforce and Salesforce Commerce Cloud, and you can add both to the same workflow:

  1. On the left sidebar, click Inventory and open the Salesforce data source. Go to the DSR & integrations tab, select Integration under Action for fulfilling requests, choose the Salesforce integration type you use (for example Salesforce - Delete) and connect it as described in Setting Up. If the data source already has an instance, click Add instance first.
  2. Do the same for the Salesforce Commerce Cloud data source with the SFCC OCAPI - DSR integration type. Add it to your inventory first if it isn't there yet.
  3. Open the privacy right's Eligibility & workflows tab. Under Data sources to process, click + Add and add both data sources. Add both to your deletion and get a copy workflows.

When a request comes in, MineOS runs both integrations and shows each one as a separate line in the request.

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?