Is there a way to fetch the author's name of a Sharepoint file in Python?

450 Views Asked by At

I want to get the author's name (Created By/Modified By) of several files contained in a Sharepoint folder in Python. I have used the Shareplum library to connect to the site and was able to retrieve some details (for ex- Time Modified/ Time Created) about the files but not the name of the author who has added the file. Is there any way to do so?

1

There are 1 best solutions below

0
Ganesh Sanap - MVP On

You have to use the internal name of columns in API calls to get the column values from SharePoint list.

Below are internal names for created by and modified by columns:

  • Created By: Author
  • Modified By: Editor

Use these column names in your API call along with "Created" and "Modified (which fetches dates) to get the Created By and Modified By values on files.