Share via


Lync Troubleshooting: Unable to see contacts on iOS and Android.

Issue

Unable to see Lync contacts on iOS and Android.

Error

No specific error, just shows Lync contact blank on mobile devices.

Problem Statement

Using UCS (Unified Contact Store) however recently Lync contacts stopped displaying on iOS, Android, Windows App etc.

Lync contacts shows on Windows Lync 2013 client, Skype for Business client however not showing on mobile devices, iPad etc.

EWS (Exchange web services) is working fine on iOS, android, windows app device as calendar information shows correctly.

Resolution

You can follow below steps in order to troubleshoot this issue.

Note:

In order to test below all mentioned commands you may need CsAdministrator and RTCUniversalServerAdmins group permission.

EWS URL

Browse EWS URL (external) from mobile device and see the result. If EWS is not working then work with Exchange admin and correct EWS issue.

In my case EWS URL was browsing correctly. EWS response looks like the below image.

EWS01

Lync contact not showing on only mobility devices hence check the below:

  1. Check Lync iPhone log. I was seeing “Get” request from client for Contacts and Group and seeing “Post” response from server however contact not display on Lync client on mobile device.

  2. IIS log shows 404 errors hence did IIS reset on all Front End Server.

    1. IISREST.

    2. Repair IIS URL rewrite module (Select IIS URL rewrite module and right click it, you will see repair option, > Select Repair on Frontend servers.

    3. Still issue persist.

       

Later Tested UCS, so there no Authentication error however test failed. See below.

PS [C:\](mailto:C:)*> Test-CsUnifiedContactStore -UserSipAddress bilag@mydomain.com *

-TargetFqdn "Lyncpool1.mydomain.com" -UserCredential $cred Target Fqdn   : lyncpool1.mydomain.com

Result        : Failure

Latency       : 00:00:03.3708299

Error Message : Contacts notification was not received within 50 seconds.

 

Now test exchange connectivity:

Test-CsExStorageConnectivity -SipUri Bilag@mydomain.com

* PS* C:\ Test-CsExStorageConnectivity -SipUri "sip:bilag@mydomain.com"

Test-CsExStorageConnectivity : ExCreateItem exchange operation failed,

code=574, reason=StoreContext{traceId=[1687025949],

activityId=[3936b2b9-e0bb-4b05-b0e7-bdf8d9a6eca1]}StoreException:

code=ErrorUnhandledException, reason=Wrapped callback failed --->

System.Web.Services.Protocols.SoapException: The application is missing a

linked account for RBAC roles, or the linked account has no RBAC role

assignments, or the calling users account is logon disabled.

Tried to invoke UCS rollback command however it give below error.

Invoke-CsUcsRollback –Identity “sip:bilag@mydomain.com

It shows application is missing a liked account for RBAC role. But there is no clear documentation on what RBAC role is missing.

Issue does look like a more general OAuth issue that is causing both the Test (CsExchangeConnectivity and CsUnifiedContactStore) and UCS rollback to fails. Looks like partner applications have a related account that may have some issue.

Now check partner application. Log on to exchange Server and Open Exchange Management Shell and check partner application.

*PS C:\ Get-PartnerApplication *

Result:

*AuthMetadataUrl: *https://lyncpool.mydomain.com/metadata/json/1

Realm  : mydomain.com

UseAuthServer : False

AcceptSecurityIdentifierInformation : True

LinkedAccount : mydomain.com/Deleted Objects/LyncEnterprise-ApplicationAccount

So issue is partner application liked account is deleted or not available.

  1. In order to resolve this, we have two options:

  2. Restored deleted liked account.

  3. Setup / configure partner application again to get linked account create.

In my case linked account is not showing under recycle bin in Active Directory hence configuring partner application again to created partner application is best option.

Follow below steps to create partner application linked:

  1. Login to Exchange 2013, Open Exchange Management Shell.

  2. Go to path C:\Program Files\Microsoft\Exchange Server\V15\Scripts>

  3. Run below command:

C:\Program Files\Microsoft\Exchange Server\V15\Scripts>Configure-EnterprisePartnerApplication.ps1 -AuthMetaDataUrl 'https://Intwebsrv.mydomain.com.com/metadata/json/1' -ApplicationType “Lync"

Run IIsreset

<exchange server> from Exchange management shell agents all Exchange 2013 server name.

Now time to check partner application and validate the same..

Run command:

*Get-PartnerApplication *

And see the linked account and verify

 

LinkedAccount : mydomain.com/Resources account/LyncEnterprise-ApplicationAccount

 

Then test Test-CsExStorageConnectivity -SipUri "sip:bilag@mydomain.com"

Test passed.

 

Time to log on to Lync 2013 client on iOS, Android and Windows device and see the Lync contacts.

In my case contacts show correctly.