The Unified Contact Store (UCS) enables you to store all the user's contacts on Exchange. The user will store all their contacts in a single location and retrieve them via the Exchange Web Services.
With the server-to-server authentication configured, the only thing you need to do is configure the Lync user services policy to allow access to the Unified Contact store, which is not enabled by default, to a user or set of users. It's recommended that if you want to have different UCS configurations from different groups of users, you could create one or several new user services policies.
To change the global user services policy to use UCS, run the following Lync Management Shell cmdlet:
Set-CsUserServicesPolicy -Identity global -UcsAllowed $True
Note that the default value of the UcsAllowed
attribute is true
, and therefore, you don't need to change it if the value is still set to default
.
To create a new user services policy that does not use UCS, run the following cmdlet:
New-CsUserServicesPolicy -Identity "DenyUCS" -UcsAllowed $False
Let's see how to configure Lync 2013 to use the Exchange 2013 UCS in the following sections.
You can use the Lync Management Shell to either get reports of the UCS settings per user or to change them.
To get a list of all the users who use UCS, run the following cmdlet to get a list of the user services policies that allow UCS:
Get-CsUserServicesPolicy |where-object {$_.UCSAllowed -eq $true}
Then, get a list of users that use that user services policy:
get-csuser |where-object {$_.UserServicesPolicy -eq "Global"}
There are two ways of testing the UCS feature for a specific user.
The first method is to run the following Lync Management Shell cmdlet:
Test-CsUnifiedContactStore -UserSipAddress "sip:[email protected]" -TargetFqdn "lyncpool.domain.com"
The user SIP address for a user with an Exchange mailbox and the Lync pool FQDN should be specified in the preceding command.
The second way of making sure that the UCS is working for a user is by checking the UCS settings on their Lync client configuration information.
To do this, hold the Ctrl key and right-click on the Lync client icon on the system tray of a client computer. Then, choose Configuration information.
From the configuration information, check the UCS Connectivity State option to see whether UCS is enabled and being used.