Salesforce person account masking fails more often than standard contact masking because person accounts aren't really one object. They're an Account and a Contact fused into a single record, with field mappings that most masking tools never fully account for. A rule built to scrub the Contact object will miss the Account-side fields a person account inherits, and vice versa. The result is a sandbox that looks masked but still leaks names, emails, or billing addresses through the half of the record nobody checked.

This matters more than it sounds like it should, because person accounts are the default model for B2C orgs, healthcare providers, financial services, and any Salesforce instance selling to individuals rather than companies. If your org uses them, a generic masking policy copied from a B2B template is almost certainly leaving gaps.

Why Person Accounts Break Standard Masking Logic

A standard Account record holds company data. A standard Contact holds personal data. Masking tools are usually built around that separation, with one rule set for Account fields and a different one for Contact fields. Person accounts collapse that separation entirely.

When Person Accounts is enabled, Salesforce creates a hidden Contact record behind every Account, and syncs specific fields between them automatically. FirstName, LastName, Email, Phone, and MailingAddress all live on the Account object but mirror data that logically belongs to a person. Many masking configurations built before this was understood simply never flagged these fields as PII, because on a business account they'd hold a company name, not a person's.

The practical effect: an admin runs a masking job, checks the Contact object, sees it's clean, and signs off. Meanwhile the Account object still has FirstName="Maria", LastName="Chen", PersonEmail="m.chen@realcompany.com" sitting untouched, visible to every sandbox user and every integration that reads Account records.

The Dual-Object Problem: Account and Contact Fields in One Record

Person accounts expose a strange hybrid schema. You get standard Account fields (Name, BillingAddress, Industry) alongside person-specific fields (PersonEmail, PersonMobilePhone, PersonBirthdate) and a shadow Contact ID that most reports and list views never surface directly.

That shadow Contact matters because some automation, some integrations, and some reporting still reference it by ContactId rather than AccountId. If your masking job targets Account records but skips the underlying Contact, the Contact copy of the same PII survives the refresh untouched. You end up with a masked front door and an unlocked back one.

Here's where it gets worse for anyone running field-level encryption or Shield alongside masking. Shield policies applied at the Contact level don't automatically extend to the Person Account fields layered on top, and the reverse is also true. The two systems were designed independently, and person accounts sit exactly at the seam between them.

Common Fields That Leak PII in Person Account Sandboxes

Across the person-account orgs we've audited, the same fields come up unmasked again and again. None of these require exotic configuration to miss, which is precisely why they get missed.

Every one of these fields is directly identifiable data under GDPR. A sandbox with even one of them intact is not compliant, full stop, regardless of how thoroughly everything else got scrubbed.

Record Types, Page Layouts, and Masking Rule Conflicts

Most orgs running person accounts also run business accounts in the same org, split by record type. That split creates a configuration trap: masking rules scoped to "Account" apply to both record types unless someone explicitly builds conditional logic to separate them.

Apply a business-account masking rule to a person account and you'll scramble the Name field into something nonsensical, since Name on a person account is a formula field derived from FirstName and LastName, not an editable text field. Try to write directly to it and the masking job throws an error or silently skips the record. Either outcome leaves real data behind.

The inverse problem shows up just as often. Teams build a person-account-specific rule, test it against a handful of sample records, and assume it applies org-wide. It doesn't propagate to business accounts, and nobody notices until an auditor pulls a business account record and finds an unmasked contact name in a custom field that was only ever tested against the person-account record type.

How MaskEzee Handles Person Account Masking Correctly

MaskEzee treats person accounts as the hybrid object they actually are, not a variant of either Account or Contact. The masking engine detects the IsPersonAccount flag at the record level and applies a field map built specifically for person-account schema, covering PersonEmail, PersonMailingAddress, PersonBirthdate, and the shadow Contact fields in a single pass.

Because the two record types share an object but not a schema, MaskEzee lets admins define record-type-aware rules without writing conditional Apex or juggling two separate masking jobs. One policy, applied correctly to whichever record type it encounters, with no manual record-type branching required.

Referential integrity carries through too. If a person account's PersonEmail gets replaced with a fake address, every related record pointing back to that Contact ID, including cases, opportunities, and custom junction objects, references the same fake identity consistently. That consistency is what keeps a masked sandbox usable for QA instead of breaking every lookup relationship in the org.

A Practical Checklist Before Your Next Refresh

Before trusting a masking job on a person-account org, verify these five things directly in the sandbox, not in the masking tool's success log.

Query PersonEmail, PersonMailingAddress, and PersonBirthdate directly with a SOQL query after the job runs. Don't rely on a UI spot-check of two or three records; pull a list view sorted by creation date and scan the raw values.

Check that the Name field renders as expected post-mask. A garbled or blank Name field usually signals the job tried to write directly to a formula field and failed silently somewhere upstream.

Confirm business accounts in the same org weren't swept into person-account rules, and that person accounts weren't skipped by business-account rules. Pull a count of each record type before and after the job and compare them against expected totals.

Test one cross-object relationship, such as a Case linked to a person account, to confirm the masked identity is consistent on both sides. If the Case shows a different fake name than the Account itself, referential integrity broke somewhere in the mapping.

Finally, check any custom fields added specifically for person-account use cases. These are the fields admins forget exist, because they were added for a one-off project eighteen months ago and never made it into the standard masking documentation.

Frequently Asked Questions

Why do person accounts need different masking rules than standard accounts?

Person accounts combine Account and Contact fields into a single record, including person-specific fields like PersonEmail and PersonBirthdate that don't exist on standard business accounts. A masking rule built for standard Accounts typically ignores these fields entirely, since they were never part of a B2B schema. Without a rule set built specifically for the person-account field map, those fields pass through a refresh unmasked.

Does masking the Contact object also mask Person Account fields?

No. Person accounts store certain identifying data directly on the Account object, such as PersonEmail and PersonMailingAddress, separate from the hidden Contact record underneath. Masking the standard Contact object does not touch these Account-level fields, so both need to be addressed for the record to be fully scrubbed.

Can I use the same masking policy for business accounts and person accounts in one org?

You can, but it requires record-type-aware logic, not a single blanket rule. Business account rules often break when applied to person accounts because the Name field is a formula derived from FirstName and LastName rather than an editable text field. A single policy without conditional handling tends to either error out or skip records silently.

What happens if PersonBirthdate or a custom National ID field isn't included in the masking scope?

Those fields remain exactly as they were in production, meaning a dated breach or audit would expose directly identifiable personal data from the sandbox. This is a compliance failure under GDPR regardless of how thoroughly other fields were masked. Custom fields added after initial masking setup are the most common gap because they're rarely added to documentation.

How does MaskEzee detect which records are person accounts during a masking job?

MaskEzee checks the IsPersonAccount flag at the record level before applying field rules, so person accounts and business accounts get routed to the correct masking logic automatically. This removes the need for admins to write custom conditional rules or run separate masking jobs for each record type. Referential integrity is preserved across related records regardless of which record type they belong to.