Configuring the Role Provider Account Lookup

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


The attributes of this element are described in the table earlier and have the same meaning for the role provider. The following table describes the elements of S4S Multi-Role.

Attribute

Optional

Default

Salesforce field

Description

objectApiName
non/a
The API name of the Salesforce sObject that has a lookup relationship to Account.

roleFieldName

no

n/a


Salesforce field API names to expose as roles in Sitecore. Can be Checkbox, MultiPicklist, or Picklist data types.

For checkbox fields, the Salesforce Field label will be the role name. Picklist and Multipicklist will have roles corresponding to the Salesforce Picklist values.

If the organization has a namespace prefix it will need to be included at the start of the field names.

Multiple fields can be used by using the "|" separator.
For example, ‘roleFieldName="SitecoreCheckboxRole__c|SitecoreMultiPicklistRole__c|SitecorePicklistRole__c"’