Sharing and encryption for insurance objects

Which insurance objects start private, how to give each channel its policies, what Compliant Data Sharing covers, and what Shield encryption costs.

How do you make each distribution channel see only its own policies, and what do you lose when you encrypt the most sensitive data on those policies? This page walks through the defaults of the insurance objects, the rules that open access per channel, the role of Compliant Data Sharing and of portals, and the cost of encryption.

Three levels of access

Salesforce controls access at three levels. Object permissions say whether a user can read, create, edit or delete a type of record. Field-level security decides which fields they see within that object. Sharing decides which individual records they reach. The first two are explained in Object and field access; the third, in Record access.

Insurance has a trap before all that. The FSC Insurance permission set license (PSL) gives access to insurance objects and features, but assigning it does not grant permissions on those objects. Read, create, edit and delete are granted separately, through profiles or permission sets. Without them, no sharing rule does anything.

What starts private

The organization-wide default (OWD) is the minimum access everyone has to an object’s records. The insurance help lists the objects that arrive set to Private:

Object Condition
Insurance Policy, Claim, Producer Always
Insurance Policy Asset, Customer Property Always
Business Milestone, Securities Holding Always
Worker Compensation Coverage Class Always
Coverage Type, Product Coverage With Access Master List of Coverage Types
Producer Policy Assignment With Let Multiple Producers Work on the Same Policy

Private means that only the record owner and the users above them in the role hierarchy see it. If the integration creates the policies with its own user, that user owns all of them, and nobody else sees them until access is opened.

Two objects the list does not name deserve attention. The developer guide documents, for Insurance Policy Participant and Insurance Policy Coverage, a sharing object and sharing rules of their own, just as for the policy. This page reads it this way: the participant and the coverage do not inherit their policy’s access, and their default has to be checked in Sharing Settings, because the help does not publish it. Claim, on the other hand, is on the list.

One channel, its policies

A sharing rule opens access to a group of users above the default. It can be based on the record owner or on criteria. A criteria-based rule shares the records whose field holds a given value: for example, every policy whose channel equals Bank, with the Bank public group.

The question is which field to use. The policy has ProducerId, “the agency or the agent who sold the policy”, but it is a lookup field, and criteria-based rules do not accept lookup, encrypted or formula fields, or fields derived from other fields. The help suggests copying the value into a text or numeric field and using that.

This page proposes something more direct: a custom channel field, a picklist, that the integration fills when it loads the policy. The policy administration system already knows which channel sold it; that way the criterion arrives with the data and does not depend on later automation.

The policy's channel decides which group sees itTwo policies with a different value in the channel field, each in its own column. The policy with channel Bank is picked up by the Bank criteria-based rule and seen by the Bank public group. The one with channel Broker 1, by the Broker 1 rule and the Broker 1 group. No rule crosses channels.PolicyBankRuleBankGroupBankPolicyBroker 1RuleBroker 1GroupBroker 1

Each rule grants Read Only or Read/Write. Following the reading in the previous section, since the participant and the coverage have their own sharing, they need their own channel field and their own rules, or a default that opens them.

The insurer’s staff, who must see everything, need no rules. The View All Records object permission ignores sharing and grants access to every record of the object. Using it for that profile is this page’s proposal.

Compliant Data Sharing and policies

Compliant Data Sharing (CDS) is the Financial Services Cloud feature that shares record by record through participants with a role. It works with Account and Opportunity, with custom objects and, depending on the features turned on, with Financial Deal, Interaction and Interaction Summary. Compliant Data Sharing explains it.

No CDS article names an insurance object. The help warns that the objects in Object Enablement Settings depend on the features turned on, so the definitive check is to open that screen in the org. As long as the documentation does not include it, this page does not count on CDS for Insurance Policy.

It is worth remembering what CDS does not do as well: it adds access and does not remove access that another feature already gives, role hierarchy included.

Portal users

An Experience Cloud user, such as one on a broker portal, reaches insurance objects without another PSL: it is enough to select Access Insurance Objects in their profile, under General User Permissions. To use insurance features, though, they need the Financial Services Community PSL.

External defaults separate the access of internal users from that of external authenticated users, and the external one can never be more open than the internal one. In orgs created after Spring ’20, the external default is Private for every object except those controlled by their parent. The help does not name insurance objects in its list, so the actual value is checked in Sharing Settings. How a portal user reaches their records is explained in Sharing for Experience Cloud users.

Encryption with Shield Platform Encryption

Shield Platform Encryption encrypts data at rest inside Salesforce. It is available in Enterprise, Performance and Unlimited editions with the Salesforce Shield or Shield Platform Encryption licence, and free in Developer Edition. The whole feature is explained in Shield Platform Encryption.

For insurance, the help publishes which fields can be encrypted. On the policy, PolicyNumber, ServicingOffice and UniversalPolicyNumber. On the claim, ClaimNumber, IncidentSite and ReportNumber. The list goes on with fields of Customer Property, Identity Document, Business Milestone, Person Life Event and Securities Holding.

Each field accepts two schemes. The probabilistic one, the default, produces a different ciphertext every time and does not allow filtering. The deterministic one allows filtering with WHERE in SOQL, Salesforce’s query language, and is compatible with unique and external ID fields.

What you lose when you encrypt:

  • An encrypted field cannot be a sharing rule criterion. The channel field stays unencrypted.
  • List views do not sort by encrypted fields.
  • With the probabilistic scheme, some fields disappear from reports, dashboards and list views.
  • Report charts and dashboard components may cache the unencrypted value.

A warning for the integration with the policy administration system. If the upsert key is an encrypted field, such as UniversalPolicyNumber or ReportNumber, this page infers that it needs the deterministic scheme, because upsert finds the record by the key’s value. No source says so in these words: test it in a sandbox.

Example: an insurer with three channels

An insurer sells through its own network, through a bank and through two brokers. Its policy administration system loads the policies into Salesforce every night with an integration user.

  1. Defaults. Insurance Policy, Claim and Producer stay Private. The administrator checks in Sharing Settings the default of Insurance Policy Participant and Insurance Policy Coverage and sets them to Private too.
  2. Channel field. The administrator creates on the policy, the participant and the coverage a Channel picklist with the values Own network, Bank, Broker 1 and Broker 2. The integration fills it on every load.
  3. Rules. Creates a public group per channel and, on each object, one read-only criteria-based rule per group.
  4. Own staff. Grants View All Records on the insurance objects to the insurer staff’s permission set.
  5. Portal. Selects Access Insurance Objects in the brokers’ profile and assigns them the Financial Services Community PSL.
  6. Encryption. Encrypts UniversalPolicyNumber with the deterministic scheme, because it is the upsert key, and leaves Channel unencrypted.

The result: the bank sees only the Bank policies; each broker, only its own; the insurer, all of them.

Which mechanism to use

  • Criteria-based rule when the channel is a value on the policy itself. It is the usual case when policies come from an external system.
  • Owner-based rule when each channel owns its records, because a user of the channel creates them. It does not fit if a single integration user loads everything.
  • Compliant Data Sharing when records must be shared one by one with specific people, and only on the objects that support it. Today the documentation does not include the policy.

The criterion that separates the three is where the channel information lives: in a field, in the owner or in a list of participants.

Limits and considerations

Aspect Limit
Rules per object 300, up to 50 criteria-based
Criterion value 240 characters, always literal
Fields valid as a criterion No lookup, formula or encrypted
Saved rule Only label, name, filters and access change
External access Never more open than internal

Before using it in production

  1. Grant object permissions, besides the FSC Insurance PSL, to every profile that must see policies.
  2. Check in Sharing Settings the default of every insurance object, participant and coverage included.
  3. Decide which field carries the channel and confirm it is not a lookup, formula or encrypted field.
  4. Create one criteria-based rule per channel on every object that has its own sharing.
  5. Open Object Enablement Settings before designing on Compliant Data Sharing.
  6. Select Access Insurance Objects in portal profiles and assign the Financial Services Community PSL.
  7. If you encrypt the upsert key, test the load in a sandbox with the deterministic scheme.

Official sources

Back to the knowledge base