Many of the SharePoint developers asked to specify a view permission to specific users, specially in approval process automation, one say ” kindly i need only branch “A” manager to see only the branch requests and shouldn’t navigate other branches requests”, through my experience of such scenarios, the client may ask again to give the same manager extra rights and so on modifications again :S.
Here we can work around this scenario by using this simple steps:
- In the document library or any other SharePoint content create a view, say for example my documents which only filter the view of items that i have added.
- Create a group permission call it ” Selective Audience “
- Now go to any page library or directly create a new web page, and add this document library in the web page like below:
After adding the document library to the page , you will see all the content of the document library (the default view).
Now edit the web part containing the document library, and select your customized view like below:
Don’t click OK yet, select from below advanced tab and at the end you will see “Target Audiences” section, choose your selective group like below and click ok for all:
After saving your work in the web part, if you are not a member in the created group, you will not see anything in the page like below, coz i have logging using (Administrator account), and the created group only contains other account (Hossam account):
And here after login using Hossam account:
Though the document library have two files, but only the web part view the target view we have created in the document library, hence you can control your views in this simple way.