Office365-REST-Python-Client icon indicating copy to clipboard operation
Office365-REST-Python-Client copied to clipboard

Reading the activity log for a folder

Open cmckee-NG opened this issue 3 years ago • 1 comments

I am working on a script that reads through a series of nested folders in a SharePoint document library to find recent changes that other users have made. Using the time_last_modified property of the folder I can determine if it has been updated in the given time window. However, this does require the script to dig all the way down through the folder structure, checking each folder, as the modification date does not carry up to the root folder.

I am wondering if there is a better way to find these changes. When looking at the folder details in the browser I can see that there is an activity log in the root folder that covers any changes made, even to nested sub folders. Is it possible to read this activity log in Python? If so, can you provide an example? It looks like the information is there, I am just not sure how to get it in the script. image

Thank you in advance for any help you can provide.

cmckee-NG avatar Nov 04 '22 20:11 cmckee-NG

Here is a link on how to do it in the browser. If I could do this in the script that would be perfect. https://support.microsoft.com/en-us/office/file-activity-in-a-document-library-6105ecda-1dd0-4f6f-9542-102bf5c0ffe0

cmckee-NG avatar Nov 04 '22 21:11 cmckee-NG