Wednesday 25 May 2016

Import User Photos From Active Directory Into SharePoint 2013

Asalamalekum,

In this post I’ll describe how you can import user photos from Active Directory (AD) into SharePoint 2013 and add them to SharePoint user profiles.
Firstly you’ll need to get your users’ photos into AD.  I use AD Photo Edit from Cjwdev.  The bulk edition is fantastic as it has command line support.
Once the user photos are in AD you need to update the SharePoint user picture property  .  Open Central Administration and navigate to your User Profile Synchronization Service Application.  Click on Manage User Properties.

SPUP-1
Scroll down to the Picture property and choose Edit from the drop down menu.
SPUP-2
Scroll down to the Add New Mapping section.  Choose your AD data connection, select the thumbnailPhoto attribute and click Add, followed by OK to save the change.  This maps the SharePoint picture property to a user’s photo attribute in AD.
SPUP-3
Run a full user profile synchronization.
SPUP-4SPUP-5
Once the user synchronization has finished open the SharePoint 2013 Management Shell.  Run Update-SPProfilePhotoStore -CreateThumbnailsForImportedPhotos 1 -MySiteHostLocation %MySiteURL%
SPUP-6

The command could take a while to run.  When it’s finished click on Manage User Profiles and search for a user and click on Edit My Profile.
SPUP-7 SPUP-8

The picture has been added to the profiles.


No comments:

Post a Comment