Demystifying Photos in Lync

I came across a post on the TechNet forums recently where someone was asking a lot of questions about how photos are implemented and managed in Lync. Given that there aren’t many examples around of the behaviour, I thought it was worthwhile writing this up and including some screenshots.

How are photos controlled?

All control over how photos are displayed in Lync is done via a client policy. You can control this part of a policy either by modifying the default global client policy or by creating a new client policy and assigning this to the users you want the control of pictures to apply to.

Determining what is currently configured

To find out what control of photos a policy is applying, you can run Get-CsClientPolicy to retrieve all the current configuration of a client policy. The configuration item you’re looking for is DisplayPhoto.

How do we implement this?

For this post, I’ll assume we have an existing policy called PhotosControl that we’re going to modify to achieve this. You could either modify the existing Global client policy, or create a new one using the New-CsClientPolicy cmdlet.

We’ll be using the following Lync Server Management Shell cmdlets to demonstrate this:

Set-CsClientPolicy – This will allow us to change the configuration of the client policy.
Grant-CsClientPolicy – This will allow us to assign the client policy to a user or group of users.

There are three configurable options in a Lync client policy that control how photos are displayed, and these are defined as variables of the -DisplayPhoto switch.

Allowing any photo to be shown in Lync

This setting will allow the user to either specify a URL, use the AD or SharePoint stored photo, or turn off photos altogether as illustrated below.

Set-CsClientPolicy -Identity PhotosControl -DisplayPhoto AllPhotos

This configures the client policy called PhotosControl to allow the user to display any photo in Lync (by specifying a URL, using the corporate photo, or displaying no photo at all).

To assign this to a user, we run Grant-CsClientPolicy -Identity sip:justin.morris@justin-morris.net -PolicyName PhotosControl

The results on the client endpoint are shown below.

When we open up Options in Lync, this is what we see. The user has the option to show a picture from a web address they input, the default corporate picture from AD/SharePoint, or no picture at all.

Showing photos from Active Directory only in Lync

This setting will display the AD or SharePoint stored photo, but will also give the user the option to turn off photos altogether as illustrated below.

The cmdlet syntax for this as as follows:

Set-CsClientPolicy -Identity PhotosControl -DisplayPhoto PhotosFromADOnly

Now, we already assigned the policy to a user in the last section, so all we need to do is sign out and sign back into Lync to see what the resultative behaviour is.

When we open up Options on Lync, here’s what we see. The user only has the option to show the default corporate picture from AD/SharePoint or no picture at all.

And this is reflected on the main UI of Lync accordingly.

Disabling photos completely in Lync

This setting will display no photo at all and Lync will drop back to only displaying the small, square presence icons. To other users, they will see no photo of you on their contact list.

The cmdlet syntax for this as as follows:

Set-CsClientPolicy -Identity PhotosControl -DisplayPhoto NoPhoto

Now, we already assigned the policy to a user in the last section, so all we need to do is sign out and sign back into Lync to see what the resultative behaviour is.

The results in the main Lync client UI look like this:

Very similar to what things looked like in Office Communicator 2007 R2. Great for when you want to deploy Lync but don’t want the UI look and feel to disrupt users too much.

And if we open up Options, we see that the My Picture tab is completely gone and we can’t change anything.

Conclusion

As you can see, there is a very granular level of control over how photos are presented in Lync. Using the cmdlets above you can mix and match as to which users can and can’t display photos and whether they can display any photo they like or only what you’ve imported into AD/SharePoint.

Hope this helps you determine how you’ll deploy photos and as always, any questions/comments below.

37 thoughts on “Demystifying Photos in Lync

  1. Pingback: Demystifying Photos in Lync | Justin Morris on UC « JC’s Blog-O-Gibberish

  2. Andre Blumberg

    Great post, Justin.
    One thing Microsoft got wrong is to treat it’s customers like children by not providing a way to disable the “Do not show my picture” option. They claim personal privacy reasons for this, but clearly this is something each company has to decide for themselves.

    Reply
    1. Justin Morris

      Totally agree Andre. This has been a pain-point already, would have been good for full granularity. Bit of a shame.

      Reply
  3. Pingback: What you should know about photos on Lync Mobile | Justin Morris on UC

  4. Nina

    Good afternoon Justin – I saw a “ghost” image on Lync with a bowtie in pink. I want a ghost image with a bow in the hair. Any idea how I could get this?
    Thanks.

    Reply
    1. Justin Morris

      Hi Nina, I’ve never heard of or seen the behaviour you’re describing. Can you show me a screenshot?

      Reply
  5. SysAdmin-E

    Hi Justin: Thanks for posting this info. Do you know how to add a URL instead of an actual picture file to an account’s thumbnailPhoto attribute? And if doing something like that would work with Lync to pull down the picture if “default corporate picture” is selected? What I’m trying to do is put all the photos on a file share/Web site and then have AD pull from there. Thank you.

    Reply
    1. Justin Morris

      Hi there, no you need to upload the actual image file into AD for this. You can’t specify a URL/UNC path in the thumbnailPhoto attribute. You can host your photos in SharePoint and have Lync retrieve them from there using the “default corporate photo” option however.

      Reply
      1. SysAdmin-E

        Would you happen to know of a centralized way to set the Lync client setting for “show a picture from a web address” to a standard such as http://employeepictures/%username%.jpg? I’ve checked the Lync GPO and in-band provisioning settings and don’t see any options for that. I also tried to check the client computer registry after I manually changed that setting to http://employeepictures/john.smith.jpg. A registry search for “http://employeepictures/john.smith.jpg” came up with nothing. The easiest thing to do would be to put the pictures in each user’s thumbnailPhoto attribute, but MS doesn’t provide a GUI to manage that, so it would not be easy for someone in HR to manage that. That’s the main reason I’m trying to find a workaround. Thank you.

        Reply
  6. NISAPA

    Hi Justin,
    I have a question. How can I do that only my federated contacts can’t see my photo? Is that possible?

    Reply
    1. Justin Morris

      If you set your photo to use your default corporate photo, federated contacts won’t be able to see them. Federated contacts can only see photos from internet URLs.

      Reply
  7. Pingback: The Lync Insider » Updating Lync Contacts: Using Active Directory to Store and Push Contact Photos (Part 1 of 3)

  8. Jonas Mellquist

    Hi Justin – Do you know of a way to “share” (make available to external contacts) the AD pictures?

    What would be your way of troubleshooting a users AD picture not being shown in the Lync Client? I have a user who’s picture is not showing while all other users’ pictures are just fine..

    All pictures are uploaded with the freeware tool called Exclimer Outlook Photos 2.0.50123.3 25.01.2012

    Reply
  9. Jonas Mellquist

    Thank you for the quick reply Justin.. So I guess there’s no way of changing any ACL’s inside the user objects to allow external users to access the picture..

    No way for the Lync client in the other end (the internal one with access to the picture) to share it in some way?

    -Jonas

    Reply
  10. Jonas Mellquist

    A little tip if you experience that specific users AD (corporate) picture isn’t showing up in Lync.. Check to see if the user is hidden from Address Lists..

    The Attribute in the AD object is called: msExchHideFromAddressLists
    If this is TRUE for the user, the AB Service doesn’t include this..

    Can of course also be checked with EMC and EMS:
    Get-Mailbox alias | fl HiddenFromAddressListsEnabled

    Used the C:\Program Files\Microsoft Lync Server 2010\Server\core> .\ABServer.exe -dumpFile to conclude this..

    -Jonas

    Reply
  11. Micha

    There are no pictures of my colleagues in the AD, but I have added pictures to my local Outlook address book.

    How can I tell Lync to display the local contact pictures?

    Reply
    1. Justin Morris

      Hi Micha,

      Lync cannot display the local pictures you have added to your Outlook address book. Lync can only display photos from URLs provided by the user or from photos stored in AD or SharePoint.

      Reply
  12. mark

    Thanks for clearing a lot of things up. I wonder is there a way to find out who has populated the “from web address” people are using this but it would be great to see how many are using that?

    Reply
    1. Justin Morris

      Hi Mark, this might be possible by querying the back end SQL database. Unfortunately SQL queries aren’t my forte and I can’t help on this one.

      Reply
  13. Michael

    With the new 2013 client out, what impact does this have on what you’ve posted? My company is still running a 2010 back-end, so the options around the profile picture has changed.

    Reply
    1. Justin Morris

      Hi Michael,

      Much of this is the same, however once you have Exchange 2013 you can use hi-res photos and these are stored in your mailbox.

      Reply
  14. Mahmoud

    HiJustin, thanks for your article
    But in Showing photos from Active Directory only in Lync it’s didnt work with me, after assigned the policy to users still find “”show a picture from a web address”” option.

    Reply
  15. Josh

    Has there been any updates since this was written that disables the ability for users to hide their pictures in Lync 2010? I get asked about this constantly and have not found any way of doing so.

    Reply
  16. Ravi

    Hi Morris,

    I want to get the list of Lync users in my organization who are using “default carporate picture”, and “Do not show my picture” in their Lync Client My Picture Options.

    Reply
  17. Geir Sandvik

    Here are two easy ways to let users add photos.

    1 Add a collection of images with staff numbers as file names on a public website. Inform users that they can select “view image from a website” and use the URL: http://www.mycompany.com/corporatepictures/123456.jpg

    2 Instruct users to find their picture on as LinkedIn, right click on it and select properties. Then copy the url and paste it into the “show picture from a website”

    More elegant would be if one could ask Lync to retrieve the image from social media in the same way as in Office 2013.

    Reply
  18. Marius

    Has this changed in any way for Lync 2013?

    Looking for the ability to set the contact picture via HTTP link rather than uploading.

    Also, if I want to set the same picture for many contacts, can I refer in any way to the same object, to avoid uploading it 1000 times?

    Reply
  19. Sheila

    As part of our Office 365 rollout, my IT Department has started using Lync 2013. Most of my staff have added their pictures. Everyone can see everyone else’s picture except for me. I can see my picture, but no one else’s. All my setting appear to be correct. I can see their pictures using Lync on my iPhone, just not my desk. Any help you can give me before we roll this out to the rest of our organization would be very appreciated!

    Reply
  20. Sheila

    I have found the solution to my previous problem. Once I enabled showing pictures in Outlook, the contact pictures appeared in Lync.

    Reply

Leave a Reply to Jonas Mellquist Cancel reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.