SharePoint 2013: Profile Pictures not showing in User Information List

Scenario:

Refer to this post for the scenario.
Here there can be other reasons as well for example check out your my sites hosting location.
There can be a situation that somebody in the past changed the location of My site as in my case it was changed 3 times.

Resolution:

If you are facing similar sort of problem then first you should verify the following:
  1. Are the profile picture uploaded in the first place? for that you may want to check inside Manage User Profile in User Profile Service Application. 
  2. Does the Profile picture appear on the my site of the user? Visit the user profile and also check out User Photos under my sites. 
  3. If the photos do exist in User Photos Library then perhaps you can 

$web=Get-SPWeb "http://SharePoint/"
$list= $web.SiteUserInfoList
$user=$web.Ensureuser("User's display name")
$listitem=$list.GetItemById($user.Id)
$listitem["Picture"]="http://my/User Photos/Profilbilder/cellent_Name_MThumb.jpg"
$listitem.update()
$list.update()
$web.Dispose()

$site = get-spsite "http://intranet/"

#Give URL of a site collection whose web application is associated with this user profile service application
$context=  [Microsoft.office.server.servercontext]::GetContext($site)
$userProfileManager = new-object Microsoft.office.server.userprofiles.userprofilemanager($context)
$profiles = $userProfileManager.GetEnumerator()
   foreach ($profile in $profiles)
    {
     if($profile["AccountName"].value -eq "Cellent\amattuzzi")
        {
           
$profile["pictureurl"].value

           
       }
    }  

aMattuzzi
cellent\cgeyer

 $url = "http://my/User%20Photos/Profilbilder/cellent_aMattuzzi_MThumb.jpg"
              $profile["pictureurl"].value = $url
              $profile.commit()

Mattuzzi, Ana


#Get your root web
$web=Get-SPWeb "http://intranet/"

#Get the User Information list
$list= $web.SiteUserInfoList

#Get the respective user
$user=$web.Ensureuser("Mattuzzi, Ana")

#get the user from User Information List
$listitem=$list.GetItemById($user.Id)

#set the value of picture field to empty
$listitem["Picture"]="http://my:80/User Photos/Profilbilder/cellent_AMattuzzi_MThumb.jpg"

#update the current list item
$listitem.update()

#update current list
$list.update()
$web.Dispose()




Well this was a hard nut to crack.

http://thatssharepoint.blogspot.de/2014/01/sharepoint-2013-profile-pictures-not.html
http://sharepointconnoisseur.blogspot.de/2011/04/sharepoint-2010-users-missing-pictures.html
http://prashamsabadra.blogspot.de/2012/11/regarding-contact-field-control-and.html
http://www.balestra.be/2013/01/sharepoint-2010-user-profile-photo-not-updating.html

Google
sharepoint 2010 /_layouts/images/person.gif

Comments

Popular posts from this blog

SharePoint 2010 Migration Woes: Importing and exporting lists template between different SP2010 Servers

How to Stop People From Reading Your Mind and Judging You

Powershell: Filling up an Existing Excel Sheet with data from SQL Server