Category: SharePoint

Getting photos in Lync 2010 from SharePoint via Active Directory

 

I have spent a fair amount of time recently working with Lync 2010 testing out new features and trying to figure out how everything works! One of the exciting developments in Lync is how well integrated it is with the rest of the Microsoft product stack. For me however this has caused some serious challenges as my knowledge of SharePoint is minimal, and certainly limited to end user knowledge.

This post outlines the process needed to get Lync showing photos uploaded to a users “My Site” in SharePoint 2010.

I am making the assumption that you already have SharePoint installed and that it has functioning “My Sites”. This was done for me by a colleague SharePoint consultant!

What follows is a discussion of the steps taken to get integration with AD to work and some of the troubleshooting tools I found along the way.

I started off by following this blog post:

http://blogs.technet.com/b/dcaro/archive/2010/06/05/replicating-user-pictures-from-sharepoint-2010-to-exchange-2010-and-communications-server-14.aspx

Step 1 from the above is easy to follow.

Step 2, makes the assumption that the User Profile Synchronization service is already in place. For me this was the case, however there was an issue with accounts which I will come onto!

Having followed Step 2 my final configuration screen looks like the below:

image

The reason I show that is because it shows the Source Data Connection. Given that I didn’t set this up, I thought I would investigate further, and it’s a good job I did because it became important to know what user account was being used for synchronization.

Back on the Central Administration, Manage Profile Service page seen below, I clicked on the Configure Synchronization Connections link.

image

image 

You can see the Active Directory connection shown on the Picture Export screenshot above. Drilling into the connection shows that it runs using the 123-shpt service account.

image

With this knowledge, let’s return to the original blog post we were following here:

http://blogs.technet.com/b/dcaro/archive/2010/06/05/replicating-user-pictures-from-sharepoint-2010-to-exchange-2010-and-communications-server-14.aspx

We are now onto Step 3

I kicked off a full synchronization but it didn’t look like much was happening and photos certainly weren’t appearing in AD. At this point I looked at the event logs on the SharePoint server.

What I found was a bunch of errors like this: FIMSynchronizationService – EventID 6050 – Error

image

The following two blog posts both helped troubleshoot this.

http://blog.jussipalo.com/2010/02/sp2010-fimsynchronizationservice-errors.html

http://www.tsls.co.uk/index.php/2010/05/06/sharepoint-2010-user-profile-synchronisation-failing/

They also led me to discover the FIM Synchronization Service Manager (SSM) which is located here:

C:\Program Files\Microsoft Office Servers\14.0\Synchronization Service\UIShell\miisclient.exe.

This application is your window on FIM and shows exactly what is happening during the synchronization.

I discovered that my problems were permission related.

What was needed was to ensure that the account mentioned above (in the SharePoint Directory Connection section (123-shpt) has the relevant rights in AD. This is confusing because a number of posts say that it the account which runs the FIM service which needs rights, but this doesn’t appear to be the case.

So I gave the 123-shpt account replicating directory changes permissions as detailed below:

Confirm that the service account used to run Forefront Identity Manager Synchronization Service (FIMSynchronizationService) has the AD Security right of “Replicating Directory Changes” at the domain level

  1. Open the Active Directory Users and Computers snap-in
  2. On the View menu, click Advanced Features.
  3. Right-click the domain object, such as “company.com”, and then click Properties.
  4. On the Security tab, if the desired user account is not listed, click Add; if the desired user account is listed, proceed to step 7.
  5. In the Select Users, Computers, or Groups dialog box, select the desired user account, and then click Add.
  6. Click OK to return to the Properties dialog box.
  7. Click the desired user account.
  8. Click to select the Replicating Directory Changes check box from the list.
  9. Click Apply, and then click OK.
  10. Close the snap-in.

 

Having done this the I kicked off another Full Synchronization in SharePoint and whilst viewing though the FIM SSM mentioned above, saw that connections were taking place.

However, there were still errors! Again they were permissions based, and this time it was specific to the end users who I was trying to provision a photo for.

After a fair bit of digging it turns out that the 123-shpt account also needs rights to all users in the domain to provision permissions.

I provided this by setting permissions for the 123-shpt account on the root of the domain. I used the advanced settings to ensure that the permissions only applied to Descendant User Objects. At a high level the permissions needed are Read, Write and Create all child objects however when broken out they look more complex as seen below.

image

image

image

Having made those changes, I kicked off a final Full Synchronization and found that photos were imported demonstrated by viewing the Attribute editor of the user object.

image

Signing out and back in on Lync made the photo show up.

image

 

Hope that helps people

Cheers

Nathan

WordPress Themes

Get Adobe Flash player