Experience Cloud sandbox masking almost always focuses on internal users and forgets the external ones. That is backwards. Your community, partner, and customer portal users are the records most likely to contain real, identifiable PII, because they were created by actual customers typing their own names, emails, and phone numbers into a self-registration form. A masking job that handles your Account and Contact objects but skips the User records tied to Experience Cloud licenses leaves the most sensitive data in the sandbox untouched.

This matters because Experience Cloud users are not a side table. They are first-class User records with login credentials, federation IDs, and often custom fields built specifically for the portal experience. Treat them like internal employee users in your masking config, and you will either break portal login entirely or leave real customer identities sitting in a sandbox that twenty contractors can query.

Why portal users are a different masking problem

Internal Salesforce users are usually a small, known population. You can list every employee by name and most masking tools treat the User object as low-risk because it is small and centrally managed. Experience Cloud blows that assumption apart. A mid-size B2B org can have thousands of partner and customer portal users, created continuously through self-registration, with no HR system keeping the list clean.

Every one of those users is a real person who gave Salesforce their actual email address to get a login. Many community setups also sync the portal user record back to a Contact, which means the same PII appears twice: once on the User object and once on the Contact it is linked to. Mask the Contact and miss the User, and you have only solved half the problem.

There is also a volume issue. Partial copy sandboxes built for UAT often pull in active, recently-touched records, and Experience Cloud users log in constantly. That makes them exactly the kind of record that survives a partial copy filter meant to trim sandbox size. The portal population you most need to mask is often the population your sandbox strategy is least likely to exclude.

Where the PII actually lives

Masking teams that do remember Experience Cloud usually stop at Username and Email on the User object. That is a start, not a finish. The real exposure spreads across several linked places, and each one needs its own rule.

LocationWhat's exposedCommon mistake
User objectUsername, Email, FirstName, LastName, MobilePhoneMasking Email but leaving Username, which is often the same real address
Contact (synced)Same name, email, phone, mailing address as the portal loginMasking Contact and User independently so the values no longer match
Custom portal fieldsNational ID, loyalty number, company role, free-text "About me" biosNever flagged because they live on a custom object, not User or Contact
Chatter / community postsSignatures, phone numbers, case references pasted into postsTreated as content, not PII, and excluded from masking scope entirely
FederationIdentifier / SSO fieldsExternal identity provider usernames, sometimes actual corporate emailsLeft untouched because it looks like a technical ID, not personal data

The FederationIdentifier field deserves a second look. If your org uses SSO for partner or customer portals, that field frequently holds a real external email address used by the identity provider. It rarely shows up on anyone's masking checklist because it reads like a system ID. It is not. It is PII with a technical-sounding name.

Login credentials: the field that breaks things if you get it wrong

Here is where Experience Cloud masking gets genuinely tricky, and where a sloppy masking job causes visible damage rather than quiet risk. Username on a Salesforce User record has to be globally unique across every Salesforce org on the planet, not just within yours. Mask it carelessly, with a naive find-and-replace or a pattern that is not guaranteed unique, and you get duplicate username errors that fail the masking job partway through.

Email and Username are also frequently the same value for Experience Cloud users, since many self-registration flows default the username to the email address. If your masking tool replaces Email with a fake value but leaves Username as the real one, you have not reduced risk. You have just made the exposure harder to spot during a review, because the obviously-PII field looks clean while the login field still works with a real person's email.

I would also flag IsActive and ContactId as fields worth checking after masking, not before. A masking run that changes email domains but does not verify the User-to-Contact link still resolves correctly can leave your sandbox with portal users who can no longer log in at all, which turns into a UAT ticket queue rather than a compliance problem. Both outcomes are bad. One is just louder.

Referential integrity across the portal data model

Experience Cloud sandboxes usually involve more connected objects than a standard internal-user setup: Account (for the partner company), Contact (for the person), User (for the login), and often a custom object for portal-specific attributes like territory or loyalty tier. Masking any one of these in isolation, without a consistent key, breaks the links between them.

A masked Contact named "Jordan Price" needs to match a masked User with the same fake name and a derived, consistent fake email. Otherwise your QA team opens a portal user record, sees one name on the Contact and a different one on the User tied to it, and assumes the sandbox is corrupted. It is not corrupted. It is just masked without deterministic logic tying related records together.

This is the same referential integrity problem that shows up elsewhere in Salesforce masking, but Experience Cloud raises the stakes because the portal UI surfaces these mismatches directly to test users. An internal admin poking around in Setup might not notice a mismatched lookup. A QA tester logging into the actual community as a masked user absolutely will, the first time the displayed name on their profile does not match what appears on a related case.

Self-registration and guest user records add noise, not safety

Some orgs assume that because community users "self-registered," the data is somehow less sensitive, as if volunteering your own email address makes it fair game. That logic does not hold up under GDPR. Self-registered data is still personal data, and the person who typed it in never consented to it sitting in an unmanaged UAT sandbox with broad contractor access.

Guest user records add a different kind of noise. Community Guest User profiles often don't hold meaningful PII themselves, but the records they create or touch, like Case or Web-to-Lead submissions, absolutely do. A masking policy that only scopes named Users and ignores records created through the Guest User context will miss a steady stream of anonymous-looking submissions that actually contain real names and emails in the body fields.

Building a masking policy that actually covers Experience Cloud

A workable policy treats Experience Cloud users as their own category, not an afterthought bolted onto the standard User masking rule. That means a few concrete steps, applied every refresh, not just the first one.

None of this is exotic. It is the same discipline good masking already applies to standard objects, extended to cover a population that is larger, more dynamic, and more exposed than most admins assume. The mistake is not technical difficulty. It is scope: treating Experience Cloud as a feature to configure once, rather than a data domain that needs its own line item in the masking policy.

How MaskEzee handles the Experience Cloud layer

MaskEzee's masking rules support explicit scoping by license type, so Experience Cloud, partner, and customer community users get their own deterministic masking logic rather than inheriting whatever rule was written for internal employees. Username and Email are masked together using the same seed, which keeps login credentials internally consistent and avoids the uniqueness failures that stall a masking job midway through a run.

The same deterministic key extends across Contact, User, and any custom portal objects linked by lookup, so a masked person's name, email, and bio stay matched everywhere they appear in the sandbox. FederationIdentifier and other SSO fields are included in default scope rather than requiring a manual field-level addition, because waiting for an admin to notice that gap is how real emails end up sitting in a sandbox for another six months.

Frequently Asked Questions

Does Salesforce mask Experience Cloud portal users automatically in sandbox refreshes?

No. Standard sandbox refreshes, including Salesforce's own sandbox templates, copy User and Contact data exactly as it exists in production, including Experience Cloud portal logins. Nothing in the native refresh process masks or anonymizes this data, so real customer and partner emails, usernames, and federation IDs land in the sandbox unchanged unless a dedicated masking tool runs before anyone gets access.

Why does masking Username on Experience Cloud users sometimes break sandbox logins?

Username must be globally unique across every Salesforce org, not just your own instance. If a masking tool generates a fake Username without checking uniqueness, or changes Email but leaves Username untouched, the masking job can fail partway through or leave portal users unable to log in with their new credentials. Deterministic, uniqueness-aware masking logic avoids both failure modes.

Is a self-registered community user's data less sensitive under GDPR than a Contact entered by an employee?

No. GDPR defines personal data by what it identifies, not by who typed it into the system. A self-registered portal user's name and email are just as protected as data entered by an internal employee, and leaving that data unmasked in a sandbox carries the same compliance exposure either way.

What happens if Contact and User masking use different values for the same person?

The sandbox becomes internally inconsistent: a masked Contact might show one name while the linked User record, visible directly in the portal UI, shows another. This usually surfaces during UAT when a tester logs in as a masked community user and sees mismatched details on their own profile, which gets reported as a data bug rather than recognized as an incomplete masking rule.

Should FederationIdentifier be included in a masking policy for SSO-enabled portals?

Yes. FederationIdentifier frequently stores a real external identity provider username, often a corporate or personal email address, and it is commonly overlooked because the field name suggests a technical ID rather than personal data. Any masking policy covering Experience Cloud users should include it alongside Username and Email by default.