I've run into a strange issue where I cannot update a SharePoint Online list item's modified timestamp when I authenticate using ADAL. The update will occur (I see a new version added to the file), but the timestamp's value is not what I set it to. If I authenticate using SAML, everything works fine.

Here's my partial code:

SP.ListItem csomListItem = csomFile.ListItemAllFields;
csomListItem["Editor"]= modifiedBy
csomListItem["Modified"] = lastWriteTime

I've tried using both UpdateOverwriteVersion and Update. Both give me the same results where the last modified timestamp is set to the current time.

1 Answer 1


It turns out I did not have enough permissions set in Azure AD for the app. I would have expected to get some type of access denied error, but I didn't.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.