---
schema_version: "1"
id: 396da8af19da77e9af161b2d37d2d82d8ebb92d352e6bcc0574b49beb7de7ba1
title: Sharing Considerations for Using Account Role Optimization in Experience Cloud Sites
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/networks_partners_optimize_roles_considerations.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.networks_partners_optimize_roles_considerations.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8ec7456973e4307160ca713f588d219485788aa1af7653e80f9b42463c704ba8
description: The combination of role-based sharing and account role optimization (ARO) provides access to records and reports across accounts in Experience Cloud sites. Consider using targeted sharing access when you activate account role optimization. By using ARO and role-based sharing, an account’s records are exposed to other accounts that roll up to the same shared person role.
products:
  - Security
  - Salesforce Platform
release: "264"
---
# Sharing Considerations for Using Account Role Optimization in Experience Cloud Sites

The combination of role-based sharing and account role optimization (ARO) provides access to records and reports across accounts in Experience Cloud sites. Consider using targeted sharing access when you activate account role optimization. By using ARO and role-based sharing, an account’s records are exposed to other accounts that roll up to the same shared person role.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-access-264-0-0-production-enus/a92be132-3cbc-412a-9262-130636120c14/images/icon_note.png)

Note Role-based sharing and account role optimization are available for Customer Community Plus and Partner Community licenses.

Here’s an example of how account role optimization can help manage roles.

Acme has a high volume of customer and partner Experience Cloud site accounts. Account role optimization helps minimize the number of Experience Cloud site roles. By using account role optimization, multiple site accounts can share a person role.

Acme has Apex sharing code that shares certain types of records based on roles. Account role optimization combined with role-based sharing exposes these records to site users across multiple accounts in Acme’s org and sites.

Acme admins and devs review the Apex sharing code, triggers, and workflows. They locate every instance where record access is linked to roles, remove role-based sharing, and write code to target sharing access to specific site users.

When using account role optimization, adjust your settings to share directly with account users.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
      <colgroup>
        <col style="width:50%">
        <col style="width:50%">
      </colgroup>
      <thead class="slds-text-title_caps ">
        <tr class="">
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d64150e58">Consideration</th>
          <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d64150e61">Recommendation</th>
        </tr>
      </thead>
      <tbody>
        <tr class="">
          <td data-label="Consideration" class="slds-cell-wrap" style="vertical-align:top;" headers="d64150e58 ">Using Apex Sharing Code and Apex Triggers</td>

          <td data-label="Recommendation" class="slds-cell-wrap" style="vertical-align:top;" headers="d64150e61 ">
            <p>Review your existing Apex sharing code, triggers, and workflows, and determine if
              record access is linked to roles.</p>
            <p style="margin-bottom:0;">Update your Apex sharing code to target the user instead of a role if an Experience
              Cloud site user from an account that uses ARO must access specific records. Consider
              what action to take if a second user is added to the account and a new account role
              is created. </p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Consideration" class="slds-cell-wrap" style="vertical-align:top;" headers="d64150e58 ">Using Record Access on a Role</td>

          <td data-label="Recommendation" class="slds-cell-wrap" style="vertical-align:top;" headers="d64150e61 ">
            <p>If you grant record access by using a role created by ARO, the original user loses
              access to the record if a second user is added to the account. An Apex trigger or
              workflow can prevent access loss.</p>
            <p>
              <strong>Recommendation: </strong>
            </p>
            <p style="margin-bottom:0;">Create an Apex trigger or workflow to allow the site user to retain access to
              records even if a second site user is added.</p>
          </td>

        </tr>
        <tr class="">
          <td data-label="Consideration" class="slds-cell-wrap" style="vertical-align:top;" headers="d64150e58 ">Sharing Records, Folders, or Reports with Experience Cloud Site Accounts</td>

          <td data-label="Recommendation" class="slds-cell-wrap" style="vertical-align:top;" headers="d64150e61 ">
            <p>If you want Experience Cloud site account users to have access to: </p>
            <ul>
              <li>records</li>

              <li>folders</li>

              <li>email folders</li>

              <li>reports</li>

              <li>dashboards</li>

              <li>list views</li>

              <li>dashboards</li>

            </ul>
            <p>Use targeted sharing. If you use sharing rules, don’t target the shared person
              role. Role-based sharing grants access to all accounts that roll up to the shared
              person role.</p>
            <p>
              <strong>Recommendations: </strong>
            </p>
            <p>Create a public group and add the site user to that group. Then make the public
              group the sharing rule’s target.</p>
            <p>Another option is to use manual sharing or Apex-managed sharing to share the object
              directly with a user.</p>
            <p style="margin-bottom:0;">Share list views, folders, reports, or dashboards directly with account users
              instead of using role-based sharing.</p>
          </td>

        </tr>
      </tbody>
    </table>

In Salesforce orgs created before February 8, 2024 that enabled digital experiences before the “Enable Secure Roles Behavior and Update Sharing Group References in Production” release update was enforced in Winter ’26, [use the Convert External User Access Wizard](https://help.salesforce.com/articleView?id=platform.customer_portal_access_wizard.htm&language=en_US) to reduce the possibility of over sharing data. It converts owner-based or criteria-based sharing rules that include the Roles, Internal, and Portal Subordinates to include the Roles and Internal Subordinates instead. In all orgs created on February 8, 2024 or later and in all orgs that enabled digital experiences after Winter ’26, access is secure by default. Records shared with the Roles and Internal Subordinates group through sharing rules or other mechanisms remain accessible only to internal users.

One final note on sharing. [For single user accounts, ARO is incompatible with External Account Hierarchies.](https://help.salesforce.com/articleView?id=platform.networks_external_account_hierarchies.htm&language=en_US) External Account Hierarchies uses roles to share data from child accounts to parent accounts. ARO uses a single role that’s shared across several accounts.