We can easily change the Created By (Author) and/or the Modified By (Editor) properties of a SharePoint file or item. For example, you have created a file using your own account (perhaps via a Flow) which means that you are now the owner of that file. If you look at the SharePoint column called Created it shows you as the owner of that file.

You now want to change the owner of that file to another user. Or perhaps you want to change who last modified or changed that file to another user.
Using a HTTP request we can update the Created By column (Author) and/or the Modified By column (Editor) of a SharePoint file or list item. We can even change the Author or Editor properties of Folders too. We just need to specify:
- Method: POST
- SharePoint List Name
- SharePoint Item ID
- Author’s email address and/or Editor’s email address

Change both the Author and Editor:
_api/web/lists/GetByTitle('<ListName>')/items(<ItemID>)/validateUpdateListItem { "formValues": [ { "FieldName": "Author", "FieldValue": "[{'Key':'i:0#.f|membership|AlexW@365.com'}]" }, { "FieldName": "Editor", "FieldValue": "[{'Key':'i:0#.f|membership|AlexW@365.com'}]" } ], "bNewDocumentUpdate": true }
or change just the Author only:
_api/web/lists/GetByTitle('<ListName>')/items(<ItemID>))/validateUpdateListItem { "formValues": [ { "FieldName": "Author", "FieldValue": "[{'Key':'i:0#.f|membership|AlexW@365.com'}]" } ], "bNewDocumentUpdate": true }
Remember to replace the <ListName>, <ItemID> and Author and/or Editor email address AlexW@365.com in the code above.
Example runtime output:

Leave a Reply