SharePoint Online Powershell | Get Document Library Folders & Sub Folders

Hi There

I have a SharePoint Online site, within this I have a Document Library and within the Document library there is one folder and within the one folder there are many sub folders

Below just one example


Document Library = Jonsson Group

Main Folder = Supplier

Sub Folder = NPI

Now I need a report or csv report using Sharepoint Online Powershell to get the user and group permission for Sub Folder


Please provide me a powershell script to run



Welcome to the forum. :wave:t4:

Unfortunately I don’t have any experience with SharePoint Online but I used the subject you used for this thread added a β€œpermissions” to it and searched Google for that:

I’d expect some of the hits may help you creating a script for yourself. Like this maybe:

or this:

1 Like