0

I'm retrieving all of the values from a list and it's working fine on all of the fields except the People and Group Picker column.

It returns:

Microsoft.SharePoint.Client.FieldUserValue

I'm trying to retrieve it using the following syntax (although I've tried everything):

 "Content Author" = $libitem["KBContentAuthor"].LookupValue

Thanks!

1 Answer 1

1

You need to also additional fetch details as below via Get-PnPUser command:

$value = $libitem["KBContentAuthor"]

$user = Get-PnPUser -Identity $value.LookupId

# added this just for explanation, you can remove it from the code
$email = $user.Email  
$username = $user.LoginName
$fullname = $user.Title

"Content Author" = $user.Title
2
  • This is fantastic. I must say I spent many hours researching this. Can you point me in the direction of the documentation that explained this? Cheers! Jul 10, 2019 at 11:15
  • 1
    No such official documentation, i found it from here Jul 10, 2019 at 11:21

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.