We have a web page for external users. The page has one web part, whose target audience has been setup for allow only users in the designated SharePoint groups to have access. Also additional security is the user can see only those items they have been granted permission.
Target Audience is web part is: admin group and group 1.
The issue is when there is no items granted permission to the login user (in group 1), the user will see an error:
Web Part Error: Access denied. You do not have permission to perform this action or access this resource.
As soon as an item is granted permission to the user, then this error goes away.
The error confuses the external users, causing a lot of calls.
Is there a way to dismiss this error message and show a web part with no items?