3

I'm using SharePoint Foundation 2013.

I've a page with many web parts that refer to document libraries. For each DL I've set specific authorizations.

Some users can see everything, so this is not a problem. Other user are authorized only on its DL (e.g.: User 1 can see/upload files only on DL 1).

When I try to login with this user (User 1) I see this error on a Web Part that correctly is "hidden":

Web Part Error: Access denied. You do not have permission to perform this action or access this resource.

Is it possible to hide this error if user is not authorized to see the DL?

Thanks!

1

My guess is you mean access and not authorization. Authorization tells SharePoint who you are, and Access tells SharePoint what permission you (the authorized user) have.

Apart from that, it's possible to create audiences in the User Profile Service, which you can filter from any property in Active Directory. If you target a specific audience, and another user comes along, not belonging to the audience, the user won't see the web part.

So you're on the right track. Create an audience in UPSA and filter web parts based on audience.

  • Thanks Benny! Are UPSA and/or audiences available on SP Foundation? – Pepozzo Feb 15 '17 at 14:37
  • @Pepozzo Unfortunately not. You'd need at least standard edition of SharePoint to user UPSA. – Benny Skogberg Feb 15 '17 at 17:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.