Overview
The Dynamic Affiliation Profile Assignment accelerator automates Experience Cloud profile assignment based on a contact’s affiliations and roles. It uses Custom Metadata and Apex to evaluate multiple affiliations and assign the appropriate community user profile according to priority.
Business Problem
Portal users may hold more than one role in an organization. A person might be staff in one context, a volunteer in another, or connected to several sites or programs. Manual profile assignment becomes difficult when the correct level of access depends on the highest-priority active affiliation. Errors can either block users from the tools they need or grant more access than intended.
How It Works
The accelerator uses a configurable priority structure in Custom Metadata. Apex logic evaluates a contact’s active affiliations and determines which Experience Cloud profile should be assigned. The approach allows administrators to manage role priority without hard-coding every rule directly into the automation. When affiliations change, the profile assignment can be recalculated so the user’s access reflects their current role structure.
Where This Fits
This accelerator fits nonprofits and other Experience Cloud implementations where access is driven by affiliation, role, site participation, membership, or program assignment. It can be adapted for staff portals, volunteer networks, partner communities, chapter-based models, and any environment where community access needs to respond to multiple relationships rather than a single static user type. For reuse, the implementation should start by confirming the object model, required fields, record types, status values, ownership rules, and security model in the target Salesforce org. The existing pattern can then be adjusted for naming, page layout placement, validation rules, reporting needs, and integration points. Sample records should be used to test the automation path, exception handling, and user-facing screens before rollout. This keeps the accelerator grounded in the original delivered pattern while allowing the details to fit the new organization and its operating process fully.