Forum Discussion
Fromelard
Oct 14, 2020Iron Contributor
SharePoint - How to Reset Inheritance Permission set into an SP DocLib folder or file
When we are importing File Server content into SharePoint using dedicated tools for, we can import permission set configured at the sub levels (subfolders or documents). That import can create some i...
CFox-Merit
Jun 10, 2021Copper Contributor
aprietoYes, you can apply this just to a subfolder within a library. I found this site looking to do just that. You just need to set the "$foldertoscope =" parameter to the relative URL of the folder. The final loop of the script compares the path of every object to that string, and if it starts with that string, it resets the permissions.
aprieto
Jun 16, 2021Copper Contributor
CFox-Merit
Thanks for that Ive done that, but it still seems to be counting the whole Library, not sure what im doing wrong, im using "/sites/sitename/library/folder/ the one I'm testing on only had around 50 files and folders and this counts 5000 starting but goes up so cancel it, only because last time i ran at library it stated error because of the amount of requests
Thanks for that Ive done that, but it still seems to be counting the whole Library, not sure what im doing wrong, im using "/sites/sitename/library/folder/ the one I'm testing on only had around 50 files and folders and this counts 5000 starting but goes up so cancel it, only because last time i ran at library it stated error because of the amount of requests
- AD-CG-CAF-2018775Jul 27, 2021Copper ContributorI am also experiencing the same thing as well as the script never gets to the part of resetting any of the permissions. It runs it tells me the total number of items in the entire library and then does nothing more than that. I have tried changing my foldertoscope variable but nothing I seem to do ever gets it to a point that it tries to reset the permissions. I am trying this on a test site for right now before actually doing it on our live document library.