0

I am wriiting a CSOM PowerShell for SharePoint 2010 in which I want to get user details from the Person and Group field.

FieldUserValue returns only few properties (i.e. Email, LookupID, LookupValue, TypeID).

I tried to use Web.GetUserById method but it seems it is not available in SharePoint 2010 CSOM.

Anyone has any idea on how do I achieve this.

Below is my code :

if ($SourceItem.FieldValues["Auth_x002d_Coordinator"] -ne $null) 
{                       
      $userValue = [Microsoft.SharePoint.Client.FieldUserValue]$SourceItem.FieldValues["Auth_x002d_Coordinator"]
      $ListItem["AuthCoordinator"] = $userValue
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.