Is it possible to get all files or folders that has been shared from a site in one batch, or do you need to iterate each single file and folder on the site?
1 Answer
You could use audit log to get all shared files and folders.
Go to Microsoft 365 admin center -> Security -> Search -> Audit log search -> Shared file, folder, or site -> Add site address in the "File, folder, or site" section.
-
Thanks, not a bad solution. Appreciated. Can I get those logs using this API if you want to automate it? docs.microsoft.com/en-us/office/office-365-management-api/… Feb 24, 2021 at 13:30