How to Mask Salesforce Sandbox Data After a Refresh
After a Partial Copy or Full Copy refresh, your Salesforce sandbox may contain production data. Use this checklist to review what was copied, mask selected fields and check the results before handing the sandbox back to users.
1. Review potentially sensitive fields
Confirm which objects were copied. In PrivacyGuard, review fields flagged by PII Discovery and check custom fields against your own data inventory. Record which fields need masking and which values testers need for their scenarios.
2. Configure masking rules
Choose a strategy for each supported field. For example, replace names with sample names and use an .invalid address for email fields. Check that the proposed mobile number format meets your field validation and test needs.

3. Run the job and review the results
Run the configured job in the sandbox. In the Audit Centre, check the job outcome and review any failures. Spot-check selected fields in the sandbox against your masking rules. Resolve outstanding failures and confirm the results are satisfactory before handing access back to users.
