OBLYTECH Logo
OBLYTECH Logo

Governance Enforced at the Source for Federated Salesforce Data

With federated data, row-level security and masking are enforced where the data lives. The consuming side inherits those protections only if it reads through a path that honors them. Before you approve a federated view, map each source rule to its consumer, confirm which identity performs each read, and test with users who hold different access.

How the source keeps control of federated data

Federation splits one dataset across two places: the system that owns the records and the layer that queries them. The access rules stay with the owner. The consumer receives only what those rules allow the identity behind each read to see. That detail is a common place for reviews to go wrong. A report running under a shared integration account can display more rows than an individual user would see at the source, even though both read the same records.

Map each source rule before reviewing the consumer

Start with the rules the source already enforces. Common groups include record visibility by owner, group or territory, field-level restrictions, and masking of sensitive values. Describe each rule in plain words, name the object it applies to, and read the configured rule itself rather than relying on a permission set name or memory of the design intent.

For each rule, record four attributes:

  • Record visibility: which rows a user can see and the criteria that decide it
  • Field visibility and masking: which fields are hidden or partly shown, and for whom
  • Write rights: whether a consumer can change a value or only read it
  • Refresh timing: how quickly a change at the source reaches the consumer

Refresh timing needs its own line. A grant removed at the source can still show in a consumer copy until the next sync, and that gap can matter for a sensitive field. Confirm the interval with the platform owner and write the answer beside the rule.

Confirm the identity behind each read path

The identity used for each read decides what the consumer shows. Review three paths separately: an individual user reading through the consumer, a shared integration user the consumer runs on behalf of several people, and an administrative account used for scheduled jobs or exports. Each path can give a different answer to the same visibility question.

For each path, note whether the user’s own identity passes through to the source or a fixed account replaces it. The two designs need different tests. Pass-through designs test whether each user sees the right rows. Fixed-account designs test whether the consumer’s own filters contain the account’s wider access, and whether those filters are documented well enough to survive a rebuild.

Test row-level access and masking from the consumer view

Test from the reader’s side, not from an administrator’s view of the source. Administrators usually see more than end users, so an admin test tells you little about what a sales representative or regional analyst will see.

Run the test in this order:

  1. Pick at least three test users whose source access differs: one broad, one narrow, and one excluded from a masked field.
  2. Choose records on the edge of each rule, such as one just inside a territory boundary and one just outside it.
  3. Open the consumer view as each test user and list the record identifiers it returns.
  4. Compare each list with what the same user sees at the source, in a session taken close in time.
  5. Repeat the comparison for masked fields and record the exact value displayed on each side.
  6. Log each mismatch with the user, record, field and read path used.

A non-production copy can be a reasonable place to run these checks, but a copy may not match production’s access setup. Compare the copy’s sharing and access configuration against the production inventory before you accept its results. The refresh planning steps are covered in planning a sandbox refresh, which is worth reading before you rely on test results for sign-off.

Assign roles to each specific action

Give each action a named role rather than handing the whole project to one team. The source administrator owns the rules and any change to them. The consumer builder owns the query, the view and any masking applied on the consumer side. The data owner decides which populations may see which records. A security or compliance reviewer signs the test evidence. One person can hold several roles on a small team, but record each sign-off separately.

Limit who can edit the consumer configuration. Anyone who can change the view can widen what it shows, so restrict edit rights to the builder and log each change. The permission sets that carry these roles are covered in permission set design for small teams.

Keep evidence a reviewer can reproduce

An access review helps only if someone else can repeat it. Keep these items with each federated view:

  • The source rule inventory, dated, with the owner’s name beside each rule
  • The identity map for each read path
  • The test users, the test records and the result of each check
  • Each mismatch, its cause and the date it was closed
  • The sign-off record, naming the approver and the scope approved

Troubleshoot mismatches between source and consumer

When the consumer shows more rows than the source, check the read path first. A shared integration user is a common cause of this pattern, but a cached extract, a stale sync or a filter lost during a rebuild can produce the same symptom. Work through the causes in order: identity, then refresh timing, then the filter logic.

When the consumer shows fewer rows, the filter is usually stricter than the rule it is meant to reflect. Compare the two term by term, including how each handles blank values, inactive users and records that recently changed owner. Then check whether the test user’s group membership changed between runs.

A masked value that appears in clear text is the highest-priority finding in this review. Remove the field from the consumer view, record the finding, and retest before restoring the field. Do not wait for the next scheduled review.

Check write-back and validation before go-live

Federated views are often read-only, but some builds write changes back to the source. In that case the source’s validation rules normally decide whether a change is accepted, and a rejected write can surface poorly in the consumer. Test write-back with the same users you use for reads, and include at least one record the rules should reject. Keep write-back scope narrow; a consumer that can change one status field is easier to govern than one that can change the whole record. Design choices that keep integrations working under new rules are covered in validation rules without breaking integrations.

Plan query load alongside access rules

A view can pass its access tests and still fail under volume. Large federated reads can run into query and processing limits on the consuming side. A rebuild made to fix a timeout is a point where filters can be dropped, so retest after any rebuild. Set the refresh schedule with the limits in mind, and read governor limits for admins before you commit to a frequency.

Retest after source changes

Source rules change after the consumer is built. A new territory, a renamed group or an added sensitive field can change what the consumer should show without any edit to the consumer. Treat each source change as a trigger for a short retest of the affected views.

  1. Record the source change with its date, its owner and the objects it touches.
  2. Identify the consumer views that read those objects.
  3. Rerun the test cases that cover those objects, using the same test users.
  4. Compare results with the expected behavior under the new rule, and record the sign-off again.

Keep a standing list of consumer views and the source objects each one reads. Without it, retest scope depends on memory, and the views nobody remembers tend to drift. For help planning this work, see Salesforce implementation.

Questions about federated access reviews

Does a federated view need its own copy of the access rules?

Usually not. A second copy gives drift a second place to happen. An inventory that names each source rule and its owner is enough to check the consumer against the source, and it is simpler to keep current.

What if the source team will not share its rule definitions?

Ask for test outcomes instead. Run the test cases from the consumer side, compare what each test user can see with what the source team reports for the same users, and treat any gap as a finding to resolve. The source team can confirm which result is correct without handing over the configuration.

How should masked fields be checked in an export?

Check the on-screen value and the exported value separately, because the two paths may not return the same value. Record both in the evidence log. An export can reach readers outside the test group, so check it as carefully as the screen view.

When should the review run without a source change?

Run it on the schedule the data owner sets, and after any change to the consumer’s query, filter or identity. A consumer change can alter access without any change at the source, so the retest trigger is not limited to source events.