A Salesforce user with full access to a Customer or Partner account, either by sharing or account ownership, receives the following error when trying to change ownership to a user with a different role:
"You don't have permission to take that action on this record or related records."
This error would indicate that the running user does not have the 'Manage Roles' permission at the profile or permission set level. Because there are active external users connected to the account that have roles, it is necessary to modify the external role to account for the change of the parent role. In order for this to work, the user initiating the change in ownership needs the ability to manage the roles.
You can resolve this by either assigning the permission to the user at the profile level or by granting access using permission sets. If that is not possible, then the change in ownership would need to be performed by a user that already has the 'Manage Roles' permission enabled.
To find the 'Manage Roles' permission in a Profile, perform the following:
If the current owner of the account and the new owner share the same role, the error will not occur and the change in ownership should be successful.
000392654

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.