Rishabh
Rishabh

Reputation: 1

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

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?

Upvotes: 0

Views: 622

Answers (1)

Ganesh Sanap - MVP
Ganesh Sanap - MVP

Reputation: 2228

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.

Upvotes: 0

Related Questions