When reviewing account sharing admins may notice that some of their users are seeing accounts they should have access to. The Sharing why page indicates that the reason that the user was a "manger of the territory member", even though user is assigned to the territory at the lowest level of the hierarchy with no other territory rolling up.
The reason that these users are getting unexpected access is due to the fact that they have a user in a role below them that is either shared the account or a related record owner. Administrators will want to look at the users associated to the lowest leaf of the user role hierarchy and verify if any of these users are assigned to a territory associated to the account and work their way up the chain.
If their is no visible roles under the user in question the issue is most likely related to portal users. Use the following query to determine which users you need to look at keeping in mind you may need to drill down several roles.
SELECT DeveloperName,Id,Name,ParentRoleId,PortalAccountId,PortalAccountOwnerId,PortalType, FROM UserRole WHERE ParentRoleId = 'Role ID of User with extra access'
Note: The fact that these portal roles role up to this user's role is not visible via 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.