pnp / pnp/pnpframework

Is there a way to update the Editor filed of an uploaded file or create the file with specific Editor value upfront?

Open
#437 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

We're using the AppOnly Access to upload file to Document lib, however, the Modified By shown as SharePoint App instead of the display name of the actual App we setup, so we're trying to see if we could update the Editor filed to correct it afterwards.
image

I saw this link demonstrates a way to update the Modified By through

Set-PnPListItem -List "Demo List" -Identity 1 -Values @{"Editor"="testuser@domain.com"} -UpdateType UpdateOverwriteVersion

So I thought there might be something similar in the lib, so I was trying to update the Editor filed like below,
however got ReadOnly exception

    using Microsoft.SharePoint.Client;
    using PnP.Framework;

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the C# example in the issue and reproduce the ReadOnly exception for the Editor field. Compare the requested behavior with the linked Set-PnPListItem PowerShell example and determine whether the library supports setting Editor during or after upload; document the supported result or limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
backend, cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.