29 Responses to Import User Profile Photos from Active Directory into SharePoint 2010

  1. Pingback: Import User Profile Photos from Active Directory into SharePoint 2010 « SP2010 Blog

  2. avatar Dan Le says:

    Adam.

    I’ve been tried for hours and it does not seem to work.

    Can you be able to post exact codes for this step?
    ■Profile Photo stored in thumbnailPhoto AD attribute (I used the PowerShell script found here to import the picture into the attribute)

    Thanks.

  3. avatar Adam Preston says:

    Dan,

    Unfortunately, that is not my code from that link and there are many variables that go into it (image size, domain location, etc). I would post your question(s) in getting the image added to AD to that forum post for assistance.

    Thanks,
    Adam

  4. avatar Kazim Raza says:

    Hi Adam,

    I can see the imported pictures in the User Profile Photo Library under MySiteHost with all the different sizes as they should have to be there.
    But on my profile page instead of my profile photo I can see a RED cross User Photo (BTW if I right click and check the properties of that icon it is pointing to the right Image, but simply don’t display it).
    The only different is that I have installed December 2010 CU for SharePoint instead of October one, any thoughts?

  5. avatar Adrian says:

    Hi Adam,
    Is there any requirements about version of Active Directory?
    In my case it doesn’t work in my case!

  6. avatar rod merritt says:

    I have followed the steps

    Is there another script to provision the picture that is used on the profile page the small thumb is working but the Medium and Large Thumb do not.

    I can see the imported pictures in the User Profile Photo Library under MySiteHost with all the different sizes as they should have to be there.
    When I click on the SThumb pic it displays in the browser but the MThumb and LThumb do not dispay in the browser or on the profile page in mysites I get the broken image icon.

    But on my profile page instead of my profile photo I can see a RED cross User Photo (BTW if I right click and check the properties of that icon it is pointing to the right Image, but simply don’t display it).

  7. Pingback: Problem synchronising thumbnails from ActiveDirectory in Sharepoint 2010 | This.Caes();

  8. avatar Anthony says:

    Adam,
    The synchronization should copy the photos from AD into MySite/User Photos/Profile Pictures, right? I’m having trouble with that step, even after a full sync, no photos are copied over. Other AD properties are importing correctly. Any idea what might be causing this?

  9. avatar Caes says:

    Works perfectly for me

    Thanks a lot for this very clear article ;)

  10. avatar Caes says:

    Anthony,

    Has said on my blog, maybe your Picture property is not correctly mapped on thumbnailPhoto as mentionned upper in this article

    Caes

  11. avatar Andrei says:

    When i try to run the command it gives an error regarding the “-CreateThumbnailsForImportedPhotos 1″ , as it does not exist . If i run it without, it seems to run ok , but with no results regarding the thumbnails in the profiles.

    • avatar Adam Preston says:

      @Andrei

      Try running the command again using SharePoint 2010 Management Shell as the service account that runs the Profile Sync. I saw this listed on a site somewhere that someone had the same issue and resolved it that way.

      • avatar Taps says:

        Nope – command didnt work and running as service account that runs the Profile Sync didnt work either…

  12. avatar FastFngrz says:

    I had a situation with the same Red X. (I’ve seen this before with JPG’s in a picture library saved as CMYK and not RGB format)

    The picture uploaded into AD was a PNG file, so we changed to a RBG JPG, stored it in AD, ran the UPS import, re-updated pictures with SP-UpdateProfilePhotoStore (running as the farm account) and voila! No more Red X

  13. Pingback: Import User Profile Photos from Active Directory into SharePoint 2010 « Heavenly Dogs

  14. Pingback: ort User Profile Photos from Active Directory into SharePoint 2010 « SharePoint database

  15. avatar Shrig says:

    Hello, I have executed the procedure and picture still shows X mark. If I verify the PictureURL properties, it is pointing now to http://mydomain.com/_layouts/images/O14_person_placeHolder_192.png
    I am unabl to run the script as well.
    Update-SPProfilePhotoStore : A parameter cannot be found that matches parameter
    name ‘CreateThumbnailsForImportedPhotos’.
    At line:1 char:62

    Please help.

  16. avatar Kris says:

    “Shrig”

    Is is possible that you are not running the Shell as Admin ?

  17. avatar BC says:

    I’m getting an “mv-constrain-violation” in FIM during the sync on the “thumbnailPhoto attribute. I tried resizing the photos in AD down as small as 96×96 but they’re still not syncing from AD into SP. Any idea? Thanks!

  18. avatar Paul says:

    Thanks for sharing this.
    We have a web-part that allows users to change their Active Directory and/or SharePoint profile photos on their own. Along with other AD attributes like phone numbers, addresses, etc. Take a look: http://www.harepoint.com/Products/HarePointSelfService/Default.aspx

  19. avatar Karel says:

    Great Post,
    Thanks so much for sharing this….

  20. avatar Nacho Vidal says:

    “Make sure your Active Directory profile connection is selected, and then choose the thumbnailPhoto attribute and Import direction”
    then click Add!!!! ‘Ok’ does not update the connection! Click Add and then Ok!!!!

  21. avatar vijaykishan says:

    Hi,
    Thanks Guys. We are having a FBA based site. It looks like update command works well when my sync connection is windows based and claimsuseridentifer is not mapped.
    In our case we need the conn to be forms based and claims user identifier – > samAccountName.
    ” Error processing the photo URL User Photos/Profile
    Pictures/0c37852b-34d0-418e-91c6-2ac25af4be5b_156.jpg for user i:0#.f|ad|……
    : System.UriFormatException: Invalid URI: A Dos path must be rooted, for
    example, ‘c:\’.”

    Any help will be useful

  22. Excellent post!!!

    I would like to add further info, regard permissions running Update-SPProfilePhotoStore cmdlet…
    I got an error when running it: “Object reference not set to an instance of an object”.
    According Technet, the user must be “a site collection administrator for the My Site host, and you must be a User Profile service application administrator with the Manage Profiles permission”
    I gave myself permission (Full Control) on User Profile Service, run it again to work… (got from here: http://donalconlon.wordpress.com/2011/03/08/problem-running-update-spprofilephotostore/)

    Regards.
    Marcelo

  23. avatar Candice says:

    Finally!! After lots of headache, I got the profile pic to display from AD!! The Feb 2012 cumulative update made it work for me.

    Thanks for the post!!
    C

  24. avatar Brian says:

    I just installed February CU 2012 and as the farm admin ran the command successfully. All the beautiful pictures are now there.

    If you can’t get it to work, it’s most likely permissions. Marcelo had a good post and link to an article with permissions to check.

    Thanks Adam!

  25. avatar JeffC says:

    We had an incorrect picture for a user so we deleted the picture from the AD thumbnailphoto property but the picture synch with SharePoint doesn’t clear the photo. We still see the old photo in SharePoint. Is that as designed or is there a way to clear it?

Leave a Reply

Your email address will not be published. Required fields are marked *

*


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>