I have a document library with many folders, sub-folders and files inside. Many of the folders/sub-folders/files have unique permission set to them.
I need to find a way, using PowerShell script probably, to loop through all the folders/sub-folder/files under the particular Document Library, and return me a text file reporting with the names of folders, types of the permissions (unique or inherited) and the user names who have access to the listed item.
Could you kindly help me to figure out how to achieve such result?
Thanks in advance for any help.