Monday, March 5, 2012

Blocking Lync From Searching Outlook Contact Folders

NOTE: This functionality requires the latest Lync client hotfix, KB 2670326, from Feb. 2012 (7577.4072).  Download Here: 32-bit or 64-bit

Lync does a great job at searching across multiple sources for potential Lync contacts.  For example, in my scenario, I have personal contacts defined in Outlook and my Lync client will show both Lync enabled users and Outlook contacts in search results.

Lync - contact - outlook folder

Lync - contact search1

Note that Outlook contacts will show with the (Contacts) description beside the result.

There may be reasons that this experience is not desired.  Some companies will want to suppress the Outlook contact results to either not cause confusion or for other reasons.  Lync allows this control by using in-band client policies. 

For this example, I will create a new client policy and configure it to not search the Outlook “Contacts” folder.  Note that any contact-type folder can be specified.  I create the policy by running:

New-CsClientPolicy –Identity “ExcludeContactSearching” –ExcludedContactFolders “Contacts”

Lync - contact command policy

I have created a new policy, but the –ExcludeContactFolders parameter can be configured on any client policy already defined.

Next, assign the policy to the user by running:

Grant-CsClientPolicy –Identity <user> –PolicyName “ExcludeContactSearching”

Lync - contact command policy apply to user

After the user receives the new in-band policy, the same search tried originally will not show the Outlook contacts:

Lync - contact search1 - after

Again, this requires the 7577.4072 version of the client to work.  Hope this helps.

6 comments:

  1. Intersting and beautiful blog lovely presentation thanks for sharing your views...microsoft software support

    ReplyDelete
  2. Very nice article. I want to do this as a test by adding myself. however, just in case, what is the cmdlet to remove myself from that policy?

    ReplyDelete
  3. I am trying this on Lync 2013 with no success. Is any difference?

    ReplyDelete
  4. On Lync 2013 work ramdomly. Anybody found any pattern ?

    ReplyDelete
  5. It works great, thanks a lot

    ReplyDelete