Salta ai contenuti

External Roles and Account Role Optimization

Questi contenuti non sono ancora disponibili nella tua lingua.

Module 5 of 8 in the chapter External Users: Sites, Communities, Licenses and Roles, chapter 14 of Securing Salesforce: Sharing and Visibility. Each module stands on its own.

The question this module answers: When a customer or partner user gets a role, where does that role go, how many roles does Salesforce create, and how do you keep thousands of accounts from flooding your role hierarchy?

In class, when I get to roles for outside users, I tell the room: this is an important concept. Module 3 showed that the seats halfway down the stadium, Customer Community Plus and Partner Community, come with a role. Chapter 5 put that on the map as way 23, the external role hierarchy. This module looks at where those roles are, what they cost, and the one setting that changes the picture: account role optimization.

These are concrete roles in your own role hierarchy. When you enable the first outside user on an account, Salesforce creates roles for that account, as child roles under the role of the account’s owner. That’s why “the account that the new contact is associated with must have an account owner that is assigned a role” (Create Experience Cloud Site Users (opens in a new tab), Salesforce Help, checked 2026-11-26). No owner role, no place to hang the account’s roles.

You choose how many roles each account gets, in the digital experiences settings: “Number of customer roles: You can have up to three roles,” and for partners, “The three roles are Partner User, Partner Manager, and Partner Executive” (Configure Digital Experiences Settings (opens in a new tab), Salesforce Help, checked 2026-11-26). The names carry the account’s name: for an account named Acme, Salesforce’s example is “Acme Partner User, Acme Partner Manager, and Acme Partner Executive” (Partner User Roles (opens in a new tab), Salesforce Help, checked 2026-11-26). If you’ve ever opened a role hierarchy and seen hundreds of roles with company names in them, that’s where they came from.

External roles in your role hierarchy External roles in your role hierarchy, in three steps. First, your own hierarchy: the VP of sales, and under them the channel manager who owns the partner accounts. Second, each partner account gets its own roles under the channel manager: Harbor Supply Partner Executive, Partner Manager and Partner User, and the same three for Pine Hardware. A deal owned by a Pine Hardware Partner User rolls up: the Pine Hardware Partner Manager and Executive see it, then the channel manager and the VP of sales; nobody at Harbor Supply sees it. Third, with account role optimization, every account with a single role-based user shares one shared person role under the channel manager, instead of getting roles of its own. Footnote: without account role optimization every account gets its own roles; with it, single-user accounts share one role, so never share records with that role. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "standard 1.58.0", "built": "2026-11-06", "id": "DGM-SVA-ES-05", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "tree 0.1.0", "theme": "stevetecharc 1.4.0"} VP of sales sees it Channel manager owns the partner accounts sees it Harbor Supply Partner Executive can't see it Harbor Supply Partner Manager can't see it Harbor Supply Partner User can't see it Pine Hardware Partner Executive sees it Pine Hardware Partner Manager sees it Pine Hardware Partner User owns a deal Shared person role one role, shared by every single-user account (account role optimization) Without account role optimization, every account gets its own roles. With it, single-user accounts share one role, so never share records with that role. HOW TO READ IT rolls up: every role on the path sees what is below it owns the record © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

Choose the number at the start. “If you specify one customer role and then decide to increase the number of roles later, the increased number of roles isn’t applied to existing customer accounts,” and the same is true for partner accounts (Configure Digital Experiences Settings).

Records roll up, inside each company and then into yours

Section titled “Records roll up, inside each company and then into yours”

This is how outside users get the automatic roll-up. If a user at a partner creates a record, their manager at that company sees it, then the channel manager sees it, and all the way up your hierarchy, the same way as chapter 6. Salesforce: “Partner users can view and edit all data owned by or shared with users below them in the hierarchy, regardless of the org’s sharing model” (Partner User Roles).

And it doesn’t go across. A user at one partner company sits in a different branch from a user at another, so neither sees the other’s records through the hierarchy. With the external default at Private (module 4), each company’s records stay inside its own branch until you share them on purpose.

Do the math the way I do in class. A hundred accounts with two roles each is two hundred new roles. You might have a hundred internal roles and five thousand accounts, and suddenly your hierarchy holds ten thousand more roles, most of them named after companies. This can be quite involved.

Salesforce sets an allocation: 50,000 “total roles for users with licenses that require external users to be associated with roles.” If you need more, “contact Salesforce Customer Support and ask for a Large User Volumes assessment” (Optimize Account Roles to Improve Performance and Scale (opens in a new tab), Salesforce Help, checked 2026-11-26).

And roles move. “If the ownership of a partner account is changed to another channel manager, the partner user role is moved to that location in the role hierarchy” (Partner User Roles). Every role move is work for the sharing engine, and a territory realignment that changes the owners of a thousand partner accounts moves a thousand branches. Salesforce’s recommendations, from the same page:

  • Fewer roles. “We recommend that you reduce the number of roles to one.”
  • Super users instead of managers. “Grant super user access to partner users if you want them to see other partner users’ data.” That’s module 6.
  • A separate branch for large orgs. “Move your partner roles to a separate branch in your role hierarchy. Then, grant the partner users access to the partner account with a sharing rule.” Salesforce says this “improves performance for realignment operations when there are account owner changes.”

Most accounts on a big site have one outside user: one customer, one login. Without help, that one user still gets the full set of one to three roles. Salesforce: “Without ARO, the default number of site roles (1 to 3) is created for every user created, even if they aren’t required to share data” (Optimize Account Roles to Improve Performance and Scale).

Account role optimization, ARO, fixes that. From the same page:

  • One user, one shared role. “With ARO enabled for an external role-based user who is the only external role-based user for an account, a shared person role is created and assigned to them. It rolls up to the account owner.” One role for all of that owner’s single-user accounts, instead of roles for each.
  • A second user brings the roles. “When a second user with a role-based license is added to the account, more roles are necessary to support sharing data.” The account gets its roles, and “the lowest level (Worker) role is assigned to all external role-based account users.”
  • Only active users count. “Role assignment is evaluated when a user is activated, not when the user record is created.”
  • Each license on its own. If an account has one Customer Community Plus user and two Partner Community users, ARO applies only to the Customer Community Plus user.
  • Where to turn it on. In Setup, Sharing Settings, Other Settings: “Minimize the number of roles created.”

That’s why module 3 said the seats with roles hold 1+ million users per org, and 10+ million with account role optimization.

Here’s the part to read twice. A shared person role is shared by many accounts. So anything you share with that role, you share with every one of them. Salesforce: “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” (Sharing Considerations for Using Account Role Optimization in Experience Cloud Sites (opens in a new tab), Salesforce Help, checked 2026-11-26).

Salesforce’s advice is to share with the user, not the role (same page):

  • Sharing rules: “If you use sharing rules, don’t target the shared person role.” Put the site user in a public group and make the group the target, or share directly with the user through manual or Apex managed sharing.
  • Folders, reports, dashboards and list views: share them directly with the account’s users, not through roles.
  • Apex sharing code: find every place your code shares by role, and change it to target the user.
  • The second user: “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.” Plan for it, with a trigger or flow that keeps the access.

And in older orgs, check the groups and sharing rules that use Roles, Internal and Portal Subordinates, which reach outside users below a role (chapter 7). Module 8 covers the wizard Salesforce gives you for that.

Test knowledge. Know that external roles are created under the account owner’s role, that the owner must have a role, that each account gets one to three roles, and that raising the number later doesn’t change existing accounts. Know that partner users see what’s owned by or shared with users below them in their hierarchy, that changing an account’s owner moves its roles, and that account role optimization gives single-user accounts a shared person role, so sharing with that role reaches every account on it. A likely area, not a known question.

  • How many roles each customer and partner account gets, chosen before the first users are created: one, unless a real need for managers says otherwise.
  • Who owns the outside accounts, knowing their roles hang under that owner and move when the owner changes.
  • For large orgs, whether outside roles live in a separate branch, with sharing rules to the accounts.
  • Whether to turn on account role optimization, and if so, that no sharing rule, folder, report or Apex code targets a shared person role.
  • How to keep a single user’s access when a second user joins their account.
  • Where the role count stands against the 50,000 allocation, and when to ask for a Large User Volumes assessment.

Beyond the exam: what AI changes. An agent that serves a partner’s users runs as one of them, inside that partner’s branch, and sees what that user’s role sees. Two cautions. If the agent’s user has the partner’s top role, it reads everything the partner’s team owns, so give it the lowest role that does the job. And if the agent shares records for a user, it must share with that user or a group, never with a shared person role, or one customer’s question gives another customer the answer. Chapter 20 covers agents.