I have published my user profile service application and my search service application from one farm which hosts mysites to another farm which is just for collaboration. I would like to be able to follow sites on the collaboration farm and they show up on the list of followed sites on the mysites farm.

I can follow sites on the mysites farm but I get an error when trying to follow a site on the collaboration farm. The ULS logs on the collaboration farm has the following:

FollowedContent.FollowItem:Exception:System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) at Microsoft.Office.Server.UserProfiles.FollowedContentProxy.Execute(String methodName) at Microsoft.Office.Server.UserProfiles.FollowedContent.FollowItem(FollowedItem item, Boolean isInternal)

But I could see in my iis logs on the mysite farm that a query was trying to take place but a was 401 returned:

POST /personal/domain_userid/_vti_bin/client.svc/ProcessQuery - 80 - xxx.xxx.xxx.xxx - 401 2 5 109 POST /personal/domain_userid/_vti_bin/client.svc/ProcessQuery - 80 - xxx.xxx.xxx.xxx - 401 0 0 93

Running a packet sniffer on the mysite farm I was able to dig a little deeper on the actual error:

{"error_description":"Invalid JWT token. Could not resolve issuer token."}

and the response also had a header of:

x-ms-diagnostics: 3000006;reason="Token contains invalid signature.";category="invalid_client"

It seems like my claim is not transferring properly to the other farm. Both farms are using windows claims with NTLM.

Any thoughts on next troubleshooting steps or how to resolve? Thanks!

1 Answer 1


I also posted this question here on the msdn forums: http://social.msdn.microsoft.com/Forums/en-US/sharepointadmin/thread/487112d7-5085-4316-bd6e-c81ad165cc21

The issue ended up being I didn't set the realm and the registeredissuername correctly on both farms so the claim couldn't be decrypted properly.

I did a complete writeup with powershell code on my blog here: http://steve.thelineberrys.com/following-sites-across-farms-with-sharepoint-2013-mysites/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.