When trying to ‘Enable Customer User’ you may sometimes get the following error message: “Portal Account Owner has No Role.” This error means that the Account Owner where the Contact Record is associated doesn’t have an assigned role.
The most common solution to resolve the “Portal Account Owner has No Role” error message when enabling a Customer User, is to make sure to assign a role to the owner of the Account where the user is associated. For example, the new user is associated with account "ABC", but ABC's account owner has no role assigned.
Note: Please review this article to ensure the user running the Flow or code has a role; Error 'Portal account owner must have a role' when you enable an External User.
Trailblazer Community:
000389462

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.