When reviewing account sharing in Salesforce, administrators may notice that some users can see accounts they should not have access to. The Sharing page shows the reason as "Manager of Territory Member", even though the user is assigned to the territory at the lowest level of the hierarchy with no other territory rolling up to it.
This article answers the question: why do some Salesforce sales users have access to accounts with the sharing reason "Manager of Territory Member"? The cause is access that comes from users in roles below them.
These users get unexpected access because a user in a role below them has either been shared the account or owns a related record. Administrators should look at the users associated with the lowest leaf of the user role hierarchy, verify whether any of those users are assigned to a territory associated with the account, and then work their way up the chain.
If there are no visible roles under the user in question, the issue is most likely related to portal users. The query below returns the portal user roles that roll up under a given parent role. You may need to drill down through several roles.
SELECT DeveloperName, Id, Name, ParentRoleId, PortalAccountId, PortalAccountOwnerId, PortalType FROM UserRole WHERE ParentRoleId = 'Role ID of User with extra access'
This SOQL query lists the user roles whose parent is the role of the user with extra access, so you can see which portal roles roll up to that user. Replace the placeholder with the Role ID of the user with extra access.
Note: The fact that these portal roles roll up to this user's role is not visible in the UI.
000396625

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.