Compliant Data Sharing

What Compliant Data Sharing is and when to use it instead of standard sharing: participants, roles, supported objects, setup and limits.

How do you share a confidential record only with the people working on it, without other teams seeing it? Salesforce’s answer is Compliant Data Sharing (CDS), a feature that grants access record by record through participants and roles. This page explains which problem it solves, how it differs from standard sharing, how it works, how to set it up, what its limits are and when to use it.

The problem: information barriers

A financial institution must apply the principle of least privilege. Each employee accesses only the data their job needs. It also has to separate departments, such as investment banking and retail trading.

The reason is material non-public information (MNPI). It is confidential information about deals and clients that is not yet public and can move the market. To prevent insider trading, a markets team must not see the MNPI of an investment banking deal.

The separation is called an information barrier or ethical wall. CDS lets admins and compliance managers configure advanced sharing rules without complex code. With them they control and monitor which data is shared, and with whom.

What standard sharing offers

The starting point is the organization-wide default (OWD). It sets each user’s access to records they do not own: Private, Public Read Only or Public Read/Write. The Person Accounts page explains how person accounts constrain it.

On top of the OWD, the platform only adds access:

  • The role hierarchy gives each user the access of the users below them.
  • Sharing rules are automatic exceptions for public groups, roles or territories. Up to 300 are allowed per object.
  • Manual sharing lets the owner give read or edit access to specific users.

None of these features can restrict access below the OWD. Neither can CDS: it also adds access.

How it works

A participant is an internal user assigned a participant role on a record. It can also be a participant group, which gathers users who play the same part.

The participant role (Participant Role) is a setup object. It defines a role for a parent object and the access level it grants.

Assigning a participant creates a record in a junction object. That record links the user or group, the role and the shared record. CDS then creates a row in the share table, with the reason “Compliant Data Sharing”. It creates it only if the role’s access exceeds the object’s OWD.

How Compliant Data Sharing grants accessThe record owner, or a participant with edit access, assigns a user or a group with a participant role. A record is created in the junction object. If the role's access exceeds the organization-wide default for that object, a share row is created with the reason Compliant Data Sharing. If it does not, no row is created and the user keeps only the access they already had.YesNoOwner or participantwith edit accessUser or groupwith a participant roleRecord in thejunction objectRoleabovethe OWD?Share row,reason CDSNo row:prior access

The rows follow the OWD. If it moves to a value more open than the role, they are deleted. If it goes back to Private, they are created again for the existing participants. When a user has several rows, the least restrictive wins. If they belong to several groups on the same record, they get the most open access.

The record owner, or a participant with edit access granted by CDS, can share if they have the Use Compliant Data Sharing permission. Users above the owner in the hierarchy have the same ability. Whoever receives the record also needs that permission.

Supported objects

Object Participant object Requires
Account Account Participant —
Opportunity Opportunity Participant No private opportunities
Financial Deal Financial Deal Participant Deal Management on
Interaction Interaction Participant Interaction Summaries on
Interaction Summary Interaction Summary Participant Interaction Summaries on
Custom objects Participant —

The objects shown in Object Enablement Settings depend on the features turned on in the org.

Setup

  1. OWD. In Sharing Settings, set the object to Private or Public Read Only. With Public Read/Write, CDS has no effect. By default, Account is Public Read/Write and Opportunity is Public Read Only. Restricting it stops some users from seeing records until participants are assigned.
  2. Turn on the object. In Object Enablement Settings, turn CDS on for internal users (CRM users) or Experience Cloud users. This takes the Configure Compliant Data Sharing permission.
  3. Permission sets. CDS is off in the Financial Services Cloud permission sets. You create two, both with the Compliant Data Sharing license: one for managers, with Configure Compliant Data Sharing, and one for users, with Use Compliant Data Sharing. The Financial Services Cloud help also suggests cloning one of its permission sets and turning the permission on there. The user also needs a Financial Services Cloud permission set license (PSL), such as FSC Sales or Financial Services Cloud Extension.
  4. Object access. The profile needs read, create, edit and delete on the parent object, and read and edit on the participant object’s Active field.
  5. Roles. In Participant Roles, create each role with its name, its parent object and its access level. The parent object cannot be changed afterwards.
  6. Page. Add the participants related list to the page layout or, on records such as Financial Deal or Interaction Summary, the Manage Participants component, which shares with several users or groups at once.
  7. Groups. Optionally, create participant groups in Participant Groups.

Considerations and limits

Limit Value
Active roles per object 10
Participants per record 100
Participant groups per record 100, whatever their membership
Participant records per object 50 million (20 million in scratch orgs, temporary development orgs)
Levels of nested groups 5

The consideration that weighs most is the hierarchy. CDS adds access, but does not remove what another feature already grants. On standard objects such as Opportunity, Grant Access Using Hierarchies is always on: the owner’s superiors still see the record. Salesforce recommends an object such as Financial Deal when only participants should see it. Financial Deal, Interaction and Interaction Summary each have their own setting to turn hierarchy-based sharing off. Grant Access Using Hierarchies is not supported for participant groups.

Other consequences:

  • A user with participant records cannot be deactivated. Their records must be deleted first, or the setting that keeps them inactive must be turned on.
  • A role with participants cannot be deleted or deactivated. To turn CDS off for an object, its roles are deleted first.
  • Changing a role’s access recalculates the rows in the background. When it finishes, an email arrives and an entry is added to Setup Audit Trail.
  • Reports and list views apply sharing as usual.
  • The Sharing button shows who has access and why, but only in Salesforce Classic, and only to the admin or the owner.

Example: a financing deal with MNPI

The case is invented. A bank has a structured finance team and an equities desk. The team is preparing a refinancing for a corporate client, not yet public.

  1. Object. The deal is recorded in Financial Deal, with Deal Management on and the OWD set to Private.
  2. Hierarchy. Role Hierarchy-Based Sharing for Deal Management is turned off. The head of the desk does not inherit access for sitting above.
  3. Roles. “Deal lead”, with read/write, and “Analyst” and “Compliance”, with read only, are created.
  4. Group. The team’s analysts form a participant group.
  5. Sharing. The owner adds the deal lead, the group and the compliance officer.
  6. Meeting notes. They are recorded in Interaction Summary, with CDS on, and shared with the same participants.
  7. Result. The equities desk is not a participant. If no other rule gives it access, it sees neither the deal nor its notes.
  8. Leavers. If an analyst leaves the bank, their participant records are deleted before they are deactivated.

When to use CDS and when standard sharing

The criterion is who decides access, and at what level. If access follows ownership, role or a stable data criterion, standard sharing is enough. If each record needs its own list of people, each with a role compliance has defined in advance, CDS fits. This criterion is the page’s inference from the sources.

Situation Option
The object is Public Read/Write and must stay so Standard sharing: CDS would have no effect
Access depends on role, territory or a field Sharing rules
Each record has its own team, which changes from one deal to the next CDS
Superiors must not see the record either CDS on an object whose hierarchy can be turned off, such as Financial Deal

Before using it in production

  1. Set each object’s OWD to Private or Public Read Only and measure the impact (see Setup).
  2. Check whether superiors should see the records and choose the object accordingly (see Considerations and limits).
  3. Design at most 10 active roles per object (see Considerations and limits).
  4. Create the two permission sets and assign the PSL (see Setup).
  5. Grant access to the parent object and the Active field (see Setup).
  6. Define the leaver procedure for participant users (see Considerations and limits).
  7. Test in a sandbox, a separate test environment, that a non-participant user cannot see the record (see Example).

What the documentation does not say

The sources disagree on editions. The feature’s articles say Professional, Enterprise and Unlimited with Financial Services Cloud, in Lightning Experience. The permissions and editions article says Enterprise, Unlimited and Developer. Confirm it with Salesforce before you contract.

Official sources

Back to the knowledge base