Quantcast
Channel: SharePoint 2013 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 26374

Getting a user property from AD and set permissions on Doc Lib item

$
0
0

Hello all,

I have Sharepoint Foundation 2013 environment. I have a document library with personal documents of all employees named as per their employee id. These documents are stored and tagged with other emp information. 

Now I need to apply item level permissions on each item/doc so that the logged-in user see only his document. 

I know this can be done easily for the new documents that are uploaded by users. but question is of existing data. 

I somehow need to traverse each document -> get the id -> search it in AD & get the name -> set permission for that user to that document. 

As User Profile Service is unavailable in SP Foundation, I am thinking how to achieve this. 

Kindly suggest if anyone has any suggestions. Thanks.


Regards, Nayan


Viewing all articles
Browse latest Browse all 26374

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>