1

The following code gives me the domain\username but I need to get the display name of the user. any idea?

$($item["Manager_Name"]) 

Thanks

2

This post helped solved the issue.

$Manager = $item["Manager_Name"]
$ManagerObj = New-Object Microsoft.SharePoint.SPFieldUserValue($web, $Manager)
$ManagerDisplayName = $ManagerObj.User.DisplayName  

https://stackoverflow.com/questions/25549037/sharepoint-powershell-how-to-get-person-fields-display-name

0
Get-SPUser -web http://server/sites/yoursite -Identity "yourdomain\mike" | Select ID, UserLogin, DisplayName
  • This did not work when I put it inside the code. – Kevin Short Nov 10 '15 at 14:31

Your Answer

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

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