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...
bobito
Feb 21, 2024Copper Contributor
If anyone has the issue where it returns the number of items found but doesn't reset the permissions, be sure you don't have any %20 in place of spaces. E.g. /sites/site%20name/shared%20documents/ should be entered as /sites/site name/shared documents/.
- sir_actionJul 12, 2024Copper Contributor
bobito
Two notes:
Running the script from Visual Studio code does not work.
I managed to get to the reset permissions phase: the content of the $foldertoscope is case sensitive. I recommend to check (print) the value of ($allItems[$j]["FileRef"] and use that to set the value of $foldertoscope