• About
  • SharePoint 2007 Administration
  • SharePoint Development Environment

Tristan Watkins on IT Infrastructure

Technical guidance for SharePoint, Cloud Services, Windows and more

Latest Tweets

  • @paul_za nice one. Enjoy the Summer until then!
  • @paul_za thanks yo. Ashtead in Surrey. You back any time soon?
  • @ChrisO_Brien cheers! We're gonna need it :)
  • Twitter activity will probably be at a minimum for the next couple of weeks while I'm off work. At long last the move is happening on Friday
  • RT @Divi911t: #Polycom is announcing the new CX5000 HD! For #Microsoft #lync Enhanced features but same low price! Read more here: http://t.co/A1HMNgtB

Categories

  • Administrivia (1)
  • Authentication (3)
  • Business Continuity (2)
  • Client applications (15)
  • Consultancy and Design (16)
  • Hardware (7)
  • IT Management (12)
  • Miscellaneous (5)
  • Mobile (3)
  • Networking (17)
  • Office 365 Grid (2)
  • Performance (24)
  • Power (2)
  • Security (10)
  • SharePoint (67)
  • Unified Communications (2)
  • Virtualisation (30)
  • Windows (42)

Tags

Active Directory administration Amazon Web Services ASUS BLOB Caching certificates Cloud Computing DCOM Dell development DNS EC2 Graphics Hyper-V IaaS ICS IIS Intel IPv6 MAC Microsoft MVSMP NUMA Office 2010 Office Web Apps PowerShell Search SEO Service Application SharePoint 2007 SharePoint 2010 SLAT STSADM Timer Job User Profile Virtual Machine VMWare w3wp WAN Windows 7 Windows Deployment Services Windows Server 2008 R2 WordPress Workgroup
Powered by Postrank

Search my site

RSSTwitter
themebyspaceperson
poweredbyWordPress

User Profile Picture Export Permissions

by Tristan Watkins

Most IT Professionals with SharePoint 2010 experience will be familiar with the initial configuration complexities of the User Profile Service Application but it’s probably less well-known that there are additional requirements to set up profile property export, and that some properties have further requirements still. SharePoint 2010 allows properties to either be imported or exported (but not both, out of the box). The most basic of these requirements for Active Directory export are the Write All Properties and Create Child Objects permissions on the OUs where data will be written by SharePoint.

We initially followed Matthew McDermott’s Profile Image Export suggestions but in our case these steps were insufficient, as detailed below. That article was written while SharePoint 2010 was a beta product. The User Profile Service Application changed since that release and is now configured differently, so it doesn’t surprise me that our experience differs.

You might wonder why we spent this much effort just to get a picture in Active Directory (of all places). While we think it’s important to have this knowledge for our clients and delegating photo selection to end users can drive SharePoint adoption, it is also used by the Outlook 2010 Social Connector. When you start using this great new social computing front-end, it just feels incomplete without a photo.

Identifying the Trouble

We’ve recently deployed a new SharePoint 2010 farm for team sites, but we wanted to make certain that the User Profile Service Application was fully configured before unleashing it, as it’s not the sort of thing that you want to add to a system that’s already in production. In our initial testing we completed a full profile import then decided to test exporting changes to a few of the Active Directory properties, such as mobile number and the profile picture, or thumbnailPhoto (as it’s known in LDAP). This is done by removing the Import mapping in the User Profile Property and adding a new setting for Export (see Matthew McDermott’s blog above if this is unclear). The mobile number synchronised successfully but the thumbnailPhoto failed, with no obvious errors.

After running a couple of full synchronisations while actively monitoring ULSViewer, I also launched the FIM (Forefront Identity Manager) Client, AKA Synchronisation Service Manager (or MIISClient.exe), as Spencer Harbar recommends in his Rational Guide. Note that although this is not a supported tool for SharePoint 2010, it provides a view of what’s going on in SharePoint’s FIM instance that isn’t always visible in the ULS logs. This can sometimes be invaluable.

Stepping through these FIM events, it was clear that the LDAP thumbnailPhoto property (PictureURL in SharePoint) wasn’t getting marked for export. We could monitor the addition of the Mobile number when that data was updated, but the PictureURL was not captured.

Active Directory Rights

Revisiting the source, I decided to see if the TechNet documentation included anything specific for the User Profile picture, as it was last updated on 12 August 2010 and I’d not looked at it since May. Happily it speaks specifically to these requirements, albeit in rather cryptic terms:

To export properties, such as profile pictures, from SharePoint Server 2010 to AD DS, at least Replicate Directory Changes permission is needed on the object and all child objects for the AD DS domains to which you want to export data from SharePoint Server 2010. Read/Write permission is also needed on the container that stores the user picture attribute, for example, the ThumbnailPhoto attribute.

Unfortunately my Active Directory skills are not as sharp as they were when I actually  administered a domain, but I figured it shouldn’t be rocket science to figure out how to grant permissions on an attribute. Pretty much everything I found mentioned granting read/write permissions on the following user attributes:

Read/Write – jpegPhoto
Read/Write – pwdLastSet
Read/Write – userAccountControl

However, I still didn’t know how to do that. Luckily the fifth post in this thread spells it out:

1. Right-click the appropriate OU
2. Select the Security tab
3. Click Advanced
4. Click Add
5. Select user then OK
6. Select Properties tab
7. Change Apply To to Descendant User Objects
8. Check both Read and Write for the following permissions:
thumbnailPhoto
userAccountControl
pwdLastSet

Note: I tried to set the permissions on thumbnailPhoto without including the other two attributes and the sync failed in precisely the same manner as it had previously.

After granting these rights in my development domain and kicking off a User Profile sync I saw the PictureURL attribute appear in FIM and it successfully updated Active Directory. However, when I repeated this process in our production environment I still had the same behaviour as before. At this point I had another look through the ULS logs in painstaking detail and this time I paid attention to two certificate errors (more on that tomorrow). But before pursuing any certificate troubleshooting missions I made a note and hit the search engines one last time in anger.

SQL Native Client

In my searches I also found that FIM 2010 requires the SQL 2008 Native Client on installations where SQL is installed on another server. My development environment has local SQL but production uses a shared instance. I tried to run the installer for the Native Client in production but was notified that it already existed. On reflection, I remembered this is installed by the SharePoint 2010 pre-requisite installer, which explains why this issue is being reported by full FIM users and not by SharePoint 2010 users. However, it’s worth noting this requirement here in case someone has an overzealous administrator that decides to remove the Native Client.

SSL

It will turn out that my production environment requires additional work because the MySite web application is SSL-secured. I will go over those requirements in my next post, although it should not be necessary to follow those steps unless the User Profile Service Application is reading data from an SSL-secured site.

Share:
  • services sprite User Profile Picture Export Permissions
  • services sprite User Profile Picture Export Permissions
  • services sprite User Profile Picture Export Permissions
  • services sprite User Profile Picture Export Permissions
  • services sprite User Profile Picture Export Permissions
  • services sprite User Profile Picture Export Permissions
  • services sprite User Profile Picture Export Permissions
  • services sprite User Profile Picture Export Permissions
  • services sprite User Profile Picture Export Permissions
  • services sprite User Profile Picture Export Permissions
  • services sprite User Profile Picture Export Permissions
  • services sprite User Profile Picture Export Permissions
  • services sprite User Profile Picture Export Permissions

Time Wednesday, September 1st, 2010, 7:07 am   |   CategorySecurity, SharePoint  |  RssRSS feed |  CommentRespond  |  TrackbackTrackback

Tags: Active Directory certificates Export FIM Picture SQL User Profile

5 Responses to “User Profile Picture Export Permissions”

    
  1. James
    09/11/2010 at 5:30 pm

    Thanks very much for this guide, it is by far the most inclusive for the subject. The trouble I’m having, is that when I look for the security settings:
    thumbnailPhoto
    userAccountControl
    pwdLastSet
    They are not there. When I look at the attributes, I see them all, but I can’t find them under the property security tab. I have followed your whole guide, and in a move of desperation, enabled full control to my sync account, but to no avail in exporting to AD. The funny thing is, when I changed the picture on My Site, and ran a full sync, it deleted the old property that I had manually loaded to AD, but didn’t replace it.

    Any thoughts would be welcome!!!

    Thanks again,
    James

    Reply
    • Tristan Watkins
      09/11/2010 at 11:59 pm

      Hi James,

      Unfortunately I don’t have any good ideas off the top of my head. You’re looking at the properties of the OU, right? Can you see these properties on any OU? And you can see the properties outside of the Security settings? Maybe a Domain Controller group policy could prevent these security changes? Grasping at straws here! I’d be interested to know what it is if you have any luck. Sorry I can’t be more helpful.

      Cheers,

      Tristan

      Reply
  2. Lesimplesmente
    24/05/2011 at 5:42 pm

    I had the same problem, I decided with the article.
    http://www.exclaimer.com/support-home/kb/product/Knowledge_Base/How_do_I_delegate_control_of_the_thumbnail_photo_field.aspx

    Reply
    • Tristan Watkins
      24/05/2011 at 9:36 pm

      Cool. That looks simpler. Which version of AD did this work in?

      Reply
  3. Trackbacks

  4. User Profile Picture and Certificate Trusts | Tristan Watkins on IT Infrastructure
    02/09/2010 at 1:40 pm
    

Leave a Reply


Click here to cancel reply.









Random Pages

  • Active Directory Account Creation Mode in SharePoint 2010
  • Hyper-V graphics performance and SharePoint 2010 development
  • ASP.NET Padding Oracle Fix and Risks
  • SharePoint 2010 IT-Pro Ignite Training
  • SharePoint 2010 Infrastructure for Amazon EC2 Part IV: Cost Analysis
  • Windows 7 and Windows Server 2008 R2 Federated Search
  • Can a hardened server play a SharePoint 2010 Silverlight Media Web Part?
  • Building a SharePoint 2007/2010 development environment - Part III: Host image build and performance benchmarks
  • SharePoint 2010 Infrastructure for Amazon EC2 Part I: Storage and Provisioning
  • Recovering from Hyper-V Virtual Machine corruption
  • By Bed And Bedroom

Calendar

February 2012
M T W T F S S
« Oct    
 12345
6789101112
13141516171819
20212223242526
272829  

Archives

  • October 2011
  • July 2011
  • June 2011
  • May 2011
  • April 2011
  • March 2011
  • February 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • July 2010
  • June 2010
  • May 2010
  • April 2010
  • March 2010
  • February 2010
  • January 2010
  • December 2009
  • November 2009
  • October 2009
  • September 2009
  • August 2009
  • March 2009