# Fairness | Well-Architected Framework Source: https://architect.salesforce.com/docs/architect/well-architected/guide/fairness.html > Ensure Salesforce solutions are accessible, non-discriminatory, and transparent with appropriate human oversight of automated decisions. ![Fairness](https://architect.salesforce.com/ns-assets/well-architected/fairness-banner.png) In Salesforce architectures, fairness means building solutions that serve users equitably through accessible interfaces, bias detection and mitigation, transparent decisions, and ethical governance. Einstein’s predictions influence outcomes that affect customers and employees, which means that architects should be designing systems that produce equitable results across demographic groups while also remaining accessible to users with disabilities. Salesforce provides platform capabilities that are purpose-built for fairness, and we strive to conform with [WCAG 2.2 AA](https://www.w3.org/TR/WCAG22/). When used correctly, the Salesforce Lightning Design System (SLDS) provides components that are designed to support this goal. Let’s take a closer look at each component. * Shield Platform Encryption protects sensitive attributes such as demographic data, and Event Monitoring provides the audit trails that support transparent data handling. * The Einstein Trust Layer (ETL) captures a secure audit trail for generative AI prompts and responses for monitoring and compliance purposes. * The Experience Cloud includes accessibility controls. * The Field Audit Trail provides long-term retention of field-level data-change history, which supports algorithmic accountability when AI decision data is stored in tracked fields. These capabilities help lower the operational costs of Salesforce fairness practices. At Salesforce, fairness operates across three dimensions to provide solutions. Inclusive design helps make Lightning Web Components (LWC), Visualforce pages, and Experience Cloud sites fully accessible—featuring seamless keyboard navigation, screen reader compatibility, and cognitive design accommodations. AI fairness practices help Einstein predictions produce equitable outcomes using bias detection, diverse training data, and continuous monitoring. Governance provides the processes and controls to sustain fairness as models evolve and use cases expand. Neglecting fairness creates compounding risk. Inaccessible Experience Cloud sites may expose organizations to [Americans with Disabilities Act (ADA)](https://www.ada.gov/law-and-regs/) litigation and, for federal agencies and their contractors, [Section 508](https://www.section508.gov/) compliance violations. Depending on the system’s risk classification and emerging algorithmic accountability laws, biased Einstein predictions may violate [EU AI Act](https://eur-lex.europa.eu/eli/reg/2024/1689/oj) requirements. Solely automated AI-driven decisions with legal or similarly-significant effects that lack meaningful information about the decision logic may violate [GDPR Article 22](https://gdpr-info.eu/art-22-gdpr/) and [Article 15(1)(h)](https://gdpr-info.eu/art-15-gdpr/) information rights. Organizations that architect for fairness tend to reduce foreseeable harm to the customers, employees, and communities that are affected by their systems. Fairness failures can cause tangible, material harm to affected individuals—including economic harm, denied opportunities, emotional distress, and reinforcement of systemic discrimination. Regulatory alignment tends to follow from serving affected individuals well. Use these principles to guide your architectural decisions for fairness on the platform. * **Design for Lightning accessibility patterns.** When building, use the Lightning Design System and standard Lightning Web Components that are designed to support WCAG 2.2 AA accessibility whenever possible. When you build with SLDS, you’re leveraging a library where accessibility is a core design principle. SLDS components are vetted for keyboard accessibility and compatibility with assistive technology, and many include an accessibility section with developer tips. If a custom component is required, explicit Accessible Rich Internet Applications ([WAI-ARIA](https://www.w3.org/WAI/standards-guidelines/aria/)) implementation, semantic HTML, and keyboard-navigation patterns must be validated through assistive technology testing. * **Reduce and monitor bias with the right tools for each model type.** Validate AI outputs for equitable outcomes across demographic groups before deployment and continuously in production. For predictive models, capture decision data through Einstein Discovery and custom instrumentation and analyze it in CRM Analytics to measure fairness metrics; for generative AI and Agentforce features, use the Einstein Trust Layer (ETL) audit trail of prompts and responses. Document decisions to meet regulatory transparency requirements. * **Leverage Shield Platform Encryption for data protection controls.** Use Shield Platform Encryption with deterministic schemes for sensitive attributes that require exact-match queries while also protecting personal data. Route Event Monitoring logs to an external Security Information and Event Management (SIEM) system to support tamper-evident audit trails—when the SIEM enforces write-once storage and access segregation that exceed Salesforce native retention windows for required regulations. * **Design review workflows for high-stakes predictions.** Configure approval processes and review mechanisms in Salesforce Flow to ensure that Einstein predictions affecting consequential decisions receive appropriate human review. Use confidence thresholds and business rules to determine when predictions require validation before taking action. * **Apply Organization-Wide Defaults (OWD) and Field-Level Security (FLS) for non-discrimination.** Architect data access patterns using OWD and FLS to restrict access by default, and only grant the additional access that each role needs using sharing rules. Avoid granting profiles excessive access that may expose sensitive attributes and enable discriminatory decision-making. * **Enable user agency through platform consent.** Use the consent management capabilities in Data 360 or custom consent objects with Field Audit Trail to track granular AI consent per use case. Enable users to opt out of AI-driven features and provide human alternatives (when possible). Data architecture decisions determine the populations that become visible—and invisible—in Salesforce systems. Poor data quality isn’t solely a technical issue. It becomes a fairness issue when data gaps systematically disadvantage specific demographic groups. * **Review required fields for data availability.** When required fields assume information availability that varies across demographics, data completeness becomes discriminatory. Users who can’t provide the required information become invisible in systems that reject incomplete records. * Requiring email addresses excludes populations that don’t have reliable internet access or personal email addresses. * Requiring US Social Security Numbers (SSN) excludes international customers and recent immigrants who haven’t yet been issued an SSN. * Requiring street addresses excludes homeless populations and users with non-traditional addresses. * **Audit business justifications for required fields.** For every required field, it’s important to document why the information is mandatory as opposed to optional. If processes can function without certain data via alternative approaches, make those fields optional and design systems to handle missing values gracefully. This helps to ensure that users who can’t provide such data aren’t excluded. Name fields that follow Western naming conventions (First Name, Last Name) may exclude cultures with different naming practices. Many cultures use: * Single names—or mononyms—without family names * Patronymic systems where “last name” changes generationally * Multiple given names or family names * Names that change based on life events or social context * Names where “first” and “last” are culturally meaningless distinctions Design name architecture using a single, full-name field or a flexible, multi-part structure that accommodates common naming conventions. Avoid making assumptions about name ordering, inheritance patterns, or cultural norms. Test name architecture using diverse international names to ensure that name fields accept: * Single-word names (for example, Sukarno, Cher, and Teller) * Long names that exceed common field length limits * Names with diacritics, apostrophes, hyphens, and spaces * Names with non-Latin scripts (for example, Arabic, Chinese, Cyrillic, and Devanagari) When name validation rejects a user’s legitimate name, they experience system rejection that’s based upon their cultural identity. Address validation services are often optimized for US and Western European formats and frequently fail to recognize: * International address formats with different field ordering * Rural addresses without street names * Military addresses (for example, APO and FPO) * PO boxes and alternative delivery locations * Tribal lands with unique address systems * Countries with non-Latin scripts for address components When address validations reject non-traditional address formats, it prevents account creation, shipping, and service delivery for users whose addresses don’t match validation database expectations. Here are a few ways to design address validations with accessibility in mind: * Implement permissive address validation. * Accept free-form address entry when structured validations fail. * Store addresses as they’re entered by users instead of forcing users to make invalid corrections. * Use address validation for data enrichment and duplication detection, not to validate address formatting. Instead of blocking data captures upfront, build address verification into fulfillment processes where the accuracy of the address matters operationally. Universal access assumptions for specific communication channels exclude populations with different technology access or preferences. Email-only communication excludes: * Users without reliable internet access * Elderly populations that are less comfortable using email * Users in regions where SMS or messaging apps are the primary communication method Phone-only communication excludes: * Users who are deaf and hard-of-hearing * Users without phone access or those using shared phones Design omnichannel communication architecture that allows users to control channel preferences. Store preferred communication methods in Contact records and consistently respect preferences across all outbound communication systems. Provide a variety of communication alternatives instead of assuming that single-channel methods work universally. Collecting demographic data for fairness monitoring requires careful architecture to prevent misuse. Collecting and processing demographic data is jurisdiction-dependent and legally restricted (in the EU, GDPR [Article 9](https://gdpr-info.eu/art-9-gdpr/) treats it as special-category data requiring a specific legal basis; in the US, bias monitoring typically relies on voluntary EEO self-identification). Where a lawful basis exists, organizations use demographic data to: * Monitor fairness metrics that are stratified by protected groups * Detect bias in automation and AI systems * Demonstrate regulatory compliance with anti-discrimination requirements Collecting demographic data creates certain risks: * Data may be used for discriminatory purposes if access controls fail * Users may distrust collection methods and provide inaccurate data * Collection may feel invasive or discriminatory Architect voluntary self-identification and design demographic data collection using information that’s: * Clearly explained with a transparent purpose (for example, fairness monitoring or compliance reporting) * Voluntary and includes a “Prefer not to answer” option that’s always available * Separated from operational data with strict FLS to prevent inappropriate access * Aggregated for reporting and analytics and not linked to individual decisions * Monitored via Shield Event Monitoring for access-pattern auditing It’s important to document in privacy policies exactly how demographic data will and won’t be used. Violating user trust through undisclosed data usage may severely damage credibility, which can be difficult to recover from. Third-party data enrichment that appends demographic, firmographic, or behavioral data to Salesforce records may introduce bias through: * Inaccurate inferences that are based on stereotypes * Incomplete coverage with gaps that correlate to demographics * Proprietary algorithms that use unknown fairness properties * Data that’s sourced from biased historical records Before implementing data enrichment services, it’s important to audit: * Vendor fairness testing and bias mitigation practices * Data coverage and accuracy across demographic groups * Inference methodologies and features that are used to create predictions * Contractual data usage restrictions and retention policies Keep in mind that once third-party data enters your Salesforce org it may affect decisions, creating vendor-introduced bias that also reflects as a bias in your org. In Salesforce contexts, accessibility refers to architecting Lightning Web Components, Visualforce pages, and Experience Cloud sites that work for users with disabilities. Standard Lightning components provide baseline accessibility when used correctly; however, custom development and Experience Cloud configuration require explicit accessibility implementation. Lightning Design System components are designed to support WCAG 2.2 AA conformance when they’re used as designed. Salesforce strives for—but doesn’t certify—full conformance. Deviating from SLDS patterns or building custom components without accessibility consideration creates barriers for users with disabilities. Standard Lightning Web Components provide built-in accessibility. Components like lightning-input, lightning-combobox, lightning-datatable, and lightning-card automatically include proper ARIA attributes, label associations, keyboard navigation, and focus management. When possible, use standard components rather than building custom alternatives that look similar but may lack the appropriate accessibility infrastructure. * **Use semantic HTML in custom Lightning Web Components.** When building custom components, use semantic HTML elements (
,