Using SharePoint 2013 enterprise on-premises.

Last week a user recommended changing the 'show field' value from the default to 'Account' on our task lists. This is hundreds of changes as we have 220+ sites (and growing) so naturally I'm looking at PowerShell to accomplish this. I'm not clear on how to set the 'show field' value once I've gotten my reference to the column.

$column = $List.Fields[$ColumnName]
$column .. ??

Hoping that someone here can show me the way on that.

Person Or Group Type:

Person Or Group Type

1 Answer 1


Try using below to set "Show Field" to "Account":

$column.LookupField = "Name";

Source: Setting 'Show field' for 'Person or Group' type column using PowerShell in SharePoint

  • Thats a good find however it doesn't work on the 'Assigned To' column that I'm trying to modify. This is on the task list. The error is 'The Property 'LookupField' cannot be found on this object. ...'
    – Arale
    Sep 27, 2021 at 15:32
  • I don't have 2013 environment to test it right now. Let me check if it is available in SP online >> tasks list >> "Assigned To" field. Sep 27, 2021 at 15:35
  • Did you try the exact same code given in above link in answer? Sep 27, 2021 at 16:08
  • Yes. in the $mylist.Fields I specified Assigned To and in the Lookup Field I set it as 'Name' which is equivalent to 'Account; on the list you provided. The error is:Exception calling "Update" with "0" argument(s): "<nativehr>0x80070005</nativehr><nativestack></nativestack>" At C:\scripts\SP\UserColumn.ps1:8 char:1 + $mycolumn.Update();
    – Arale
    Sep 27, 2021 at 16:28

Your Answer

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

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