/
Configuring the Role Provider

Configuring the Role Provider

Add the following element to the system.web » roleManager » providers section of the web.config file for the Salesforce S4S Multi-Role Edition support - see a detailed example here:

<add name="salesforceContact" type="FuseIT.Sitecore.SalesforceSecurityProvider.SalesforceContactRoleProvider, FuseIT.Sitecore.SalesforceSecurityProvider" 
roleFieldName="Insert Salesforce Contact fields you want to expose as roles in Sitecore. Delimit with |" connectionStringName="S4SConnString" readOnly="false"/>


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

Attribute

Optional

Default

Salesforce field

Description

roleFieldName

no

n/a


Salesforce Contact 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"’

cacheDurationInSeconds

yes

120

n/a

Set the duration in seconds of the role provider cache. If no caching required, please explicitly set to 0.

Next Step

Configuring the Profile Provider

Steps

Related content

Configuring the Role Provider Account Lookup
Configuring the Role Provider Account Lookup
More like this
Configuring the Role Provider for Leads
Configuring the Role Provider for Leads
More like this
Sitecore Multi Role (Pre-Sitecore 9)
Sitecore Multi Role (Pre-Sitecore 9)
More like this
Add Sitecore Role Field to Contact
Add Sitecore Role Field to Contact
More like this
Configuring the Membership Provider
Configuring the Membership Provider
More like this
Add Sitecore Role Field (Pre-Sitecore 9)
Add Sitecore Role Field (Pre-Sitecore 9)
More like this