Configuring the Profile Provider Account Lookup

  • Add the following element to the system.web » profile » providers section of the web.config file:
<add name="salesforceAccountLookupProvider" type="FuseIT.Sitecore.SalesforceSecurityProvider.SalesforceProfileProviderAccountLookup, FuseIT.Sitecore.SalesforceSecurityProvider"
			connectionStringName="S4SPersonAccountConnString"
			objectApiName="Custom_Registration__c"
			readOnly="false"/>


  • Add the following profile properties to the system.web » profile » properties section of the web.config file:
<add type="System.String" name="ALCountry" customProviderData="S4SAccountLookup|Person_Account__r.MailingCountry|String"/>
<add type="System.String" name="ALCity" customProviderData="S4SAccountLookup|Person_Account__r.MailingCity|String"/>
<add type="System.String" name="ALBirthDate" customProviderData="S4SAccountLookup|CreatedDate|DateTime"/>
<add type="System.String" name="ALDoNotEmail" customProviderData="S4SAccountLookup|IsDeleted|Boolean"/>
<add type="System.String" name="ALUserAccountId" customProviderData="S4SAccountLookup|Person_Account__c|String"/>
<add type="System.String" name="ALCompany" customProviderData="S4SAccountLookup|Person_Account__r.Name|String"/>
<add type="System.String" name="ALFirstName" customProviderData="S4SAccountLookup|Person_Account__r.FirstName|String"/>
<add type="System.String" name="ALSurname" customProviderData="S4SAccountLookup|Person_Account__r.LastName|String"/>
<add type="System.String" name="ALTelephone" customProviderData="S4SAccountLookup|Person_Account__r.Phone|String"/>

The above list of properties is an example. The list can be expanded with other properties as per Adding Profile Properties (Pre-Sitecore 9). Use the customProviderData prefix of "S4SAccountLookup|"