Adding a New Salesforce Domain

Contact Provider

Open the App_Config/Security/Domains.config file and add the following line to the domains element for the Contact provider:

<!-- The defaultProfileItemID should be the Item ID for /sitecore/templates/System/Security/SalesforceContact from the core database -->
<domain name="salesforce" ensureAnonymousUser="false" defaultProfileItemID="{EEBD0790-4AE5-459A-B579-93F701AD30E1}"/>

Verify the defaultProfileItemID

The defaultProfileItemID attribute defines the profile item that will be used for users from the domain if the profile is not set for the user explicitly. Verify that this GUID is correct by switching to the Sitecore core database and using the Content Editor to check the SalesforceContact and/or SalesforceLead and/or SalesforceCampaign  profile Item Id from:

/sitecore/system/Settings/Security/Profiles/SalesforceContact (see following figures)

This value should match the defaultProfileItemID in the domain config above.

Switch to the Core Database


Get the Item ID GUID for the SalesforceContact Profile using the Content Explorer.

Next Step

Configuring ASP.NET Security Providers

Steps