Read about our update schedules here.

Legal Disclaimer: This document is distributed for informational use only; it does not constitute legal advice and should not be used as such.

Introduction

A compliant system is designed to adhere to applicable legal and ethical guidelines, with its adherence being both measurable and auditable. This is demonstrated by restricting data access to authorized individuals for intended purposes, adhering to relevant legal regulations, and ensuring equitable access for all authorized users.

Proactive measures are essential for preventing and detecting compliance violations. A reactive approach to regulations and standards can erode customer trust, particularly if changes only occur in response to customer requests or complaints. Such complaints can damage your organization’s brand and reputation, and can lead to revenue losses.

You can build compliance in your Salesforce solutions by focusing on three key habits: legal adherence, ethical standards, and accessibility.

Adhering to legal mandates involves following regional laws and industry regulations. As an architect, once your organization’s legal team or a third-party auditor has determined the specific compliance requirements, your responsibility is to understand these requirements and proactively identify and flag potential compliance issues early in the design process to reduce the risk of fines and lawsuits.

You can improve legal adherence in your Salesforce solutions through data privacy and localization.

Data Privacy

Data privacy deals with how your solution collects, stores, and processes personally identifiable information (PII), along with the relevant regulations and an individual’s ability to control access to their personal data. Adhering to these regulations may necessitate updates to your sharing and visibility model, modifications to metadata configurations to restrict access, implementing field-level encryption, monitoring of logs and events, creating automations to export or delete a customer’s data upon request, and developing policies governing data usage in automations and AI.

Non-compliance with data privacy regulations can lead to substantial fines and lawsuits. Moreover, exposing stakeholder data due to insufficient controls or a security breach can result in lost revenue and eroded customer trust.

Consider the following as you work to ensure adherence to data privacy requirements:

During the classification process, it’s important to think about how all of the fields in your data model might be used and not just the ones that seem like they might be sensitive at first glance. In some cases, fields that seem inconsequential can become sensitive if used within the wrong context. For example, postal codes in the United States can be a proxy for race and therefore if used in a predictive mode could unintentionally add bias or cause harm. Names can be used to predict gender, country of origin, race, religion, and even age, as popular names tend to change from generation to generation. Include classifications of all fields and a clear description of how any associated AI functionality will use them in your documentation.

Use tools such as Data Detect to identify sensitive data within your org. If fields are classified as sensitive or if you know which fields are sensitive, tools like Einstein Content Selection will also identify fields that are highly correlated and therefore can be proxies for those sensitive fields.

The list of patterns and anti-patterns below shows what proper (and poor) data privacy management looks like within a Salesforce solution. Use these to validate your designs before you build, or identify areas of your system that need to be refactored.

To learn more about Salesforce tools for data privacy, see Tools Relevant to Be Compliant.

Localization

Localization is about adapting a product to align with a specific language, culture, and desired local aesthetic. This also includes adapting to region-specific regulations, such as data residency laws, which can differ significantly across countries and even municipalities. Consequently, your systems might need to satisfy multiple regulatory frameworks, depending on where your customers are located and how your business introduces its products and services to the market.

In addition to variations in data privacy laws, many countries are also enacting data residency laws. At a minimum, data residency laws require all data related to a country’s citizens to be physically stored within that country’s borders. Some laws go further, requiring local storage of all data (including data about products and services) potentially accessible by citizens. In certain cases, regulations require that citizen data be maintained only by other citizens of that country or region.

Non-compliance could lead to large fines and lawsuits. For example, the EU's data protection authorities can impose fines up to €20 million or 4% of global revenue, whichever is higher. In the U.S., the California attorney general's office can seek significant penalties for both intentional and unintentional violations.

Consider the following to better manage localization and data residency requirements:

The list of patterns and anti-patterns below shows what proper (and poor) localization and data residency processes look like within a Salesforce solution. Use these to validate your designs before you build, or identify areas that need to be refactored.

To learn more about Salesforce tools for localization, see Tools Relevant to Be Compliant.

The following table shows a selection of patterns to look for (or build) in your org and anti-patterns to avoid or target for remediation.

✨ Discover more patterns for legal adherence in the Pattern & Anti-Pattern Explorer.

Patterns Anti-Patterns
Data Privacy In your documentation:
- You have an up-to-date data dictionary containing field level names, descriptions, and classifications
- You have an up-to-date security matrix that identifies which users have access to what data
- You have up-to-date design documentation, including standards and diagrams for any automations created to address regulatory requirements
In your documentation:
- A data dictionary does not exist or has not been kept up-to-date
- Sharing and visibility documentation does not exist or has not been kept up-to-date
- Design standards, diagrams, and documentation for automations that address regulatory requirements does not exist or has not been kept up-to-date
In your org:
- All objects and fields that contain sensitive information or are subject to data privacy regulations have Compliance Categorization, Data Owner, Data Sensitivity Level, and Field Usage configured
In your org:
- Objects and fields that contain sensitive information or are subject to data privacy regulations are missing configuration for Compliance Categorization, Data Owner, Data Sensitivity Level, or Field Usage
Localization In your documentation:
- You have an org strategy that outlines where data will be stored and maintained to comply with all applicable data residency requirements
- You have an integration strategy that outlines acceptable scenarios and processes for replicating data across borders
- You have an analytics strategy that outlines the level of granularity reports and dashboards can contain at regional, national, and global levels
In your documentation:
- You do not have an org strategy or your org strategy does not address data localization and residency requirements
- You do not have an integration strategy or your integration strategy does not address data localization and residency requirements
- You do not have an analytics strategy or your analytics strategy does not address data localization and residency requirements

Ethical Standards

In business contexts, ethical standards are the guidelines for how companies and individuals conduct themselves from a values-based or moral standpoint. At Salesforce, our core values guide everything we do as a company and as employees. We also have an ethical use policy team that helps to ensure customers are using our software ethically. Our Acceptable Use Policy (AUP) and AI Acceptable Use Policy (AI AUP) are is an extension of our core values, and helps guide our decision-making if questions around usage arise.

Your organization may have an additional set of policies that extend beyond simply complying with local regulations. These policies can take various forms, ranging from adhering to other regions’ regulations, declining to do business with certain organizations or markets, or monitoring employee-customer interactions to prevent discrimination or biased behaviors. To uphold these policies, you may need to update your design standards or system configuration as you would for legal adherence.

To foster greater adherence to ethical standards in your Salesforce solutions, align with company policies and assess your use of artificial intelligence.

Company Policies

Company policies are guidelines that define how various aspects of the business (including people, processes, and technology) should operate. Customers prefer to do business with organizations they trust. Most company policies are designed to reflect this principle. Customer trust will erode quickly if your systems create user experiences that don’t align with your stated policies.

Effective policies flow naturally from a culture of ethics. Every employee, from engineering and design to data science, marketing, and sales, must be educated on their responsibility for ethical use. In such a culture, employees see clear incentive structures to reward ethical behavior and clear, consistent consequences for unethical behavior.

Consider the following to ensure your organization’s policies are reflected in your designs:

The list of patterns and anti-patterns below shows what proper (and poor) adherence to company policies looks like within a Salesforce solution. Use these to validate your designs before you build, or identify areas in your system that need to be refactored.

To learn more about Salesforce tools for aligning designs with company policies, see Tools Relevant to Be Compliant.

Artificial Intelligence

Artificial intelligence uses computational systems to perform tasks that normally require human intelligence, such as reasoning, perception, and decision-making. The Salesforce platform AI capabilities span predictive, generative, and agentic technologies, offering a comprehensive suite of tools to enhance customer experiences and business operations:

Most of Einstein AI’s core algorithms are not configurable, but for some features, customers may be able to fine-tune the models using their own data as stated in the documentation. Additionally, you can ground AI models in your own CRM, knowledge base articles, and other documents through Retrieval Augmented Grounding (RAG) to make the outputs even more accurate for your organization, customers, and use cases. However, if your underlying data is biased or skewed, your outputs may become biased and inaccurate as well. An example of bias is not including members of a certain race, gender, or ethnicity in your contact list even though your customer base is diverse and includes members of that group. Refer to the Salesforce Responsible Creation of AI Trailhead module, Understanding Trusted Agentic AI Trailhead, AI Ethics Maturity Model, Salesforce’s Trusted AI principles, Responsible Generative AI Guidelines, and Responsible Agentic AI Guidelines for more information.

Not accounting for applicable legal regulations and your company’s own ethical standards can lead to biases within your AI, resulting in lawsuits, lost revenue, customer trust issues, and damage to your company’s public image.

Here’s what to consider for the responsible and ethical use of AI:

The list of patterns and anti-patterns below shows what proper (and poor) AI design looks like within a Salesforce solution. Use these to validate your designs before you build, or identify areas of your system that need to be refactored.

To learn more about Salesforce tools for implementing more ethical AI policies, see Tools Relevant to Be Compliant.

Ethical Standards Patterns and Anti-Patterns

The following table shows a selection of patterns to look for (or build) in your org and anti-patterns to avoid or target for remediation.

✨ Discover more patterns for ethical standards in the Pattern & Anti-Pattern Explorer.

Patterns Anti-Patterns
Company Policies In your design standards:
- Standards include clear guidance for areas impacted by company policies
In your design standards:
- Design standards do not exist or do not provide clear guidance about areas that are subject to company policies
In your documentation:
- Documentation for configuration and customizations includes references to supported company values
In your documentation:
- Documentation for configuration and customizations does not reference company values or policies
In your org:
- All objects and fields that are subject to company policy-related compliance have Compliance Categorization, Data Owner, Data Sensitivity Level, and Field Usage configured
In your org:
- Objects and that are subject to company policy-related compliance are missing configuration for Compliance Categorization, Data Owner, Data Sensitivity Level or Field Usage
Artificial Intelligence In your design standards:
- Policies and approved use cases for AI applications are clear and easy to find
- Ensure the data and documents used for RAG are representative, complete, accurate, and up-to-date. Look for bias, toxic, and other harmful content that could live in your datasets or documentation
- Generative responses always identify data sources used by AI models
- Data sets that can/can not be used for prompt engineering have been documented
- Bots and generative AI responses are clearly identified to users
- Standards for when and how to use disclaimers for generative AI are clearly defined
- Clear requirements for how to document points of human involvement in AI solution designs exist
- Standards for documenting direct and indirect feedback paths in AI solution designs exist
- Points at which AI must be identified for a user are clearly defined
- Keep a human at the helm, especially in regulated or high risk use cases
In your design standards:
- Design standards don't exist or do not include clear policies and approved use cases for AI applications
- Generative responses do not identify data sources used by AI models
- Data sets used for prompt engineering are not documented
- Bots and generative AI responses are not identified to users
- Disclaimers regarding generative responses are missing
- No requirements for documenting points of human involvement in AI solution designs exist
- No standards for documenting direct and indirect feedback paths for AI solution designs exist
- Design standards fail to indicate points at which AI must be identified to users
In your documentation:
- Documentation for configuration and customizations involving AI functionality contains a thorough description of all process logic and is stored in a central location that is accessible by legal teams or auditors
- Models that you build or bring to Salesforce are clearly documented, including any applicable data segments
- Conversation logic and agentic conversations are thoroughly documented
- Processes are in place to monitor your organization's AI models for data drift, changes in fairness and bias scores, accuracy, and robustness
- Descriptions are maintained for the training, evaluation, and testing data used for all AI processes
- Descriptions are maintained for any AI-related data cleaning along with bias testing, associated results, and performance/accuracy scores (for example, F1 scores)
In your documentation:
- Documentation for configuration and customizations involving AI functionality is missing, incomplete, or stored in an inaccessible location
- AI models or systems are implemented in your org without documentation of their models
- Agents are implemented in your org without documentation of messages and conversation flow
- AI monitoring processes do not exist or are not documented
- Information about training, evaluation, and testing data used for all AI processes is unclear or unavailable
- Information about AI-related data cleaning, bias testing, and results is unclear or unavailable

Accessibility

Accessibility in technology refers to the usability of systems or solutions for people with different abilities. Designing systems that work for all users, regardless of ability, is a legal mandate in some locations and industries. Beyond legal requirements, building accessible systems helps your organization foster and enhance trust with your stakeholders. For customer-facing applications, this can even increase revenue as customers may opt to use your systems over less accessible alternatives.

Salesforce publishes Accessibility Conformance Reports (ACRs), which are industry-standard documents detailing how our software complies with accessibility standards. Most of our UI-based controls, including Lightning Web Components and Experience Cloud Templates, are designed to adhere to these standards. While our baseline accessibility features may be sufficient for many businesses, it's important to review our ACRs and release notes before starting any project. This will help you identify and document any additional accessibility requirements that extend beyond our standards, depending on your product or service's go-to-market approach.

You can improve how accessible your systems are by focusing on two key areas: data entry and navigation.

Data Entry

Data entry activities happen any time a user needs to input information into a field, form, or another part of a user interface. While keyboards and mice are the most common input methods, some users may rely on speech-to-text or similar devices. Additionally, your users may communicate in different languages.

Solutions not designed with accessibility in mind can exclude individuals with certain disabilities from interacting with them.

Consider the following when designing for accessibility:

The list of patterns and anti-patterns below shows what data entry looks like when properly (and poorly) designed for accessibility within a Salesforce solution. Use these to validate your designs before you build, or identify areas in your system that need to be refactored.

To learn more about Salesforce tools for building more accessible data entry, see Tools Relevant to Be Compliant.

Navigation involves users moving focus between screens and between fields within a screen. Users may need to navigate through the various UI elements in your system in a variety of ways, including via clicks and keystrokes, while relying on their sight, hearing, and touch. Ensure that your design standards include a list of navigation devices that you plan to support. Implementation teams should refer to this list when testing to make sure that all navigation possibilities are accounted for.

Consider the following questions — and their answers — as you design accessible navigation:

The list of patterns and anti-patterns below shows what navigation looks like when properly (and poorly) designed for accessibility within a Salesforce solution. Use these to validate your designs before you build, or identify areas of your system that need to be refactored.

To learn more about Salesforce tools for building more accessible navigation, see Tools Relevant to Be Compliant.

Accessibility Patterns and Anti-Patterns

The following table shows a selection of patterns to look for (or build) in your org and anti-patterns to avoid or target for remediation.

✨ Discover more patterns for accessibility in the Pattern & Anti-Pattern Explorer.

Patterns Anti-Patterns
Data Entry In your design standards:
- All devices that may be used for data input beyond a standard keyboard and mouse are listed
- Text values and their translations into all supported languages are listed
In your design standards:
- Only some, or none, of the devices that may be used for data input beyond a standard keyboard and mouse are listed
- Supported languages are listed along with UI elements to be translated
In your test plans:
- Test steps include using multiple types of input devices to enter data
- Test steps include data entry in multiple languages
In your test plans:
- Accessibility testing is not included or testing for accessible data entry is done ad hoc
In your org:
- Translations for supported languages are stored in Translation Workbench
In your org:
- Translations are stored in custom labels
Navigation In your design standards:
- All devices that may be used for navigation (not just standard keyboard and mouse) are clearly listed
- UI/UX standards specify the type and style of all navigational controls
- The types of visual cues approved to convey meaning or state are clearly listed, and color is not a primary cue
In your design standards:
- Design standards do not exist or do not account for accessibility requirements for navigational controls
- UI/UX standards for navigation are inconsistent
- Visual cues for meaning or state rely on color or there are no clear lists of visual cues for builders
In your test plans:
- Test steps include using multiple types of input devices to navigate
- Test plans include using UI/UX testing to ensure consistent navigational paths
In your test plans:
- Accessibility testing is not included or testing for accessible navigation is done ad hoc

Tools Relevant to Be Compliant

ToolDescriptionLegal AdherenceEthical StandardsAccessibility
Agentforce AnalyticsGain insights into how your agents are performingX
Agentforce Testing CenterRun up to 10 test jobs with up to 1,000 test cases per test, so you can quickly create and assess multiple scenarios.X
CitationsCitations help you identify potential inaccuracies or hallucinations in the generated responses, increasing your confidence in using AI tools.X
Consent APITrack customer preferences for consentX
Consent Event StreamSend notifications for changes to consent or contact infoX
Consent Management ObjectsManage customer privacy and consent preferencesX
Data Access and PortabilityExport customer-related data upon requestX
Data ClassificationRecord key compliance and audit info for object fieldsX
Data 360 ReportsMonitor agent instruction adherenceX
Data DeletionDelete data to comply with legal regulationsX
Data Privacy PreferencesStore customer data privacy preferencesXX
Data TranslationTranslate data presented to usersXX
Data DetectAlign categories and sensitivity levels to actual dataX
Data 360 ExplorerManage project and object permissions for data scientistsXX
Einstein Data PrismA grounding solution for generative AI applications within Salesforce, improving the accuracy of AI solutions that use its grounding capabilitiesX
Einstein Trust LayerA collection of features, processes, and policies designed to safeguard data privacy, enhance AI accuracy, and promote responsible use of AI across the Salesforce ecosystemX
Enhanced Event LogsEvent logs capture the events and user messages in an agent session to review Instruction Adherence, test, and troubleshoot your agent.X
Files ConnectBrowse, search, and share external files from SalesforceX
HyperforceComply with local data storage requirementsX
Metadata TranslationTranslate languages to localize applicationsXX
Portability APICompile customer data identified in your portability policyXX
Preference CenterGather customer communication preferencesXX
Privacy CenterSatisfy customer requests and data privacy lawsXX
Restriction of Data ProcessingRestrict personal data processing methodsXX
Right to Be ForgottenDelete individual customer data upon requestX
Salesforce FilesShare and store files privatelyX
Security CenterView security and privacy settings across multiple orgsX
Shield Platform EncryptionEncrypt data at rest and in transitX
Translation WorkbenchMaintain translated values for metadata and data labelsXX

Resources Relevant to Be Compliant

ResourceDescriptionLegal AdherenceEthical StandardsAccessibility
5 Principles for Responsible AI DesignDesign Artificial Intelligence (AI) functionality ethicallyX
Accessibility Basics (Trailhead)Learn why accessibility is importantX
Accessibility Conformance Reports (ACRs)Understand how Salesforce meets accessibility standardsX
Accessibility OverviewUnderstand accessibility within Salesforce LightningX
AI Ethics Maturity ModelDevelop a roadmap to operationalize ethical principlesX
AI Red Teaming: Testing for TrustFind out how Salesforce’s ‘ethical hackers’ develop Responsible AI through red teaming.X
Automating the Adversary: Designing a Scalable Framework for Red Teaming AILearn how Salesforce automates adversarial prompt generation and response validation, fuzzai helps secure AI interactions while reducing human exposure to harmful content.X
Best Practices for Conversation DesignFollow best practices when designing chatbotsXX
Best Practices for Sustainable Design (Trailhead)Incorporate sustainability into your designsX
Consent ManagementTrack and comply with consent and opt-out requestsX
Data Policies for EinsteinControl data use across Einstein functionalityXX
Design Standards TemplateCreate design standards for your organizationXXX
Ethical Hacking Practices Prove Successful in Building Trusted AI ProductsLearn how Salesforce employs red teaming practices to improve the safety of our AI products by testing for malicious use, intentional integrity attacks, benign misuse, and identifying responsible AI issues.X
Ethical Leadership and BusinessInsights on technology, equality, and ethicsX
Ethical Use PolicyExplore Salesforce policy on ethical use of our products and servicesX
Ethics by Design (Trailhead)Incorporate ethical design into technology developmentX
Explore Salesforce's Culture and Values (Trailhead)Explore Salesforce's core valuesXX
Follow Accessible Mobile Design GuidelinesFollow best practices to make your designs accessibleXX
Get Started with Web Accessibility (Trailhead)Learn the basics of how to make websites and apps accessibleX
How Salesforce Builds Reproducible Red Teaming InfrastructureFour components we recommend when designing, implementing, and executing an adversarial testsX
How To Run a Consequence Scanning WorkshopConsider all possible outcomes while innovatingX
Implementing Data Protection and PrivacyEvaluate data protection and privacy requirementsX
Inclusive Design (Trailhead)Foster innovation with inclusive design principlesXX
KPI Spreadsheet TemplateSet Key Performance Indicators (KPIs) for your organizationX
Legal InformationExplore Salesforce's Legal Information centerX
LWC Cookie Consent ModuleControl user cookie access in Experience Cloud sitesXX
Privacy OverviewLearn about data privacy by region and industryX
Promote Responsible and Ethical AgentsLearn how to implement ethical red-teaming and testing strategies and develop guiding principles and standards for your organization.X
Responsible Agentic AI GuidelinesX
Responsible Creation of AI Trailhead moduleLearn how to remove bias from your data and algorithms to create ethical AI systems at your company.X
Responsible Generative AI GuidelinesWe have built on our Trusted AI Principles with a new set of guidelines focused on the responsible development and implementation of generative AI.X
Salesforce Compliance CertificationsReview Saleforce's compliance certifications and attestationsX
Sustainable Design (Trailhead)Strengthen the relationship between business and societyX
Testing for Web Accessibility (Trailhead)Utilize automated and manual testing to ensure accessibilityX
Trusted Agentic AILearn how Agentforce uses safeguards and responsible AI principles to create ethical AI.x

Tell us what you think

Help us keep Salesforce Well-Architected relevant to you; take our survey to provide feedback on this content and tell us what you’d like to see next.