Update ‘Created By'(Author) field using Javascript for SharePoint list item

If the current user who run the javascript has site owner permission the ‘created by’ filed can be changed when you create item or update item in the SharePoint list.

However the user has only contribute permission, the field would not be changed even though you specify the ‘author’ field.

I just tested using CSOM Javascript on SharePoint 2013 so next time I will test using Restful Javascript.

var userIDnumber = you have to get the specific user id;

oListItem.set_item(‘Author’, userIDnumber );



Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: