I want to get all items(documents or list items) from SharePoint Online site and its sub sites based on createdBy using PnP-Powershell.


You can write a PnP Powershell script that will iterate through the lists and libraries of the site and for each list use the Get-PnPListItem command with a Camlquery to get the data based on Author field https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/get-pnplistitem?view=sharepoint-ps

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.