You can set the location of your Lync users automatically by binding the network subnets to your office locations using the following commands:
Set-CsLisSubnet -Subnet 192.168.0.0 -Description “Subnet 1” -Location MSFT -CompanyName “Litware” -HouseNumber 1234 -HouseNumberSuffix “” -PreDirectional “” -StreetName 163rd -StreetSuffix Ave -PostDirectional NE -City RIYADH -State RY -PostalCode 99123 -Country SA
Publish-csLisConfiguration
So when a user logs in to Lync client from this subnet: 192.168.0.0, his location will be set automatically to “Location City”