SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So, heres my issue. There are 2 farms. The data I need is from the other farms mysite. Im using this code and the web service userProfileService to try and get the data. At the quickLinkData part,Line #3, it craps out and says:

SoapException: Server was unable to process request. ---> Attempted to perform an unauthorized operation.

string currentUser = SPContext.Current.Web.CurrentUser.LoginName.ToString();
userProfileService.UseDefaultCredentials = true; 
QuickLinkData[] links = userProfileService.GetUserLinks(currentUser);

So any tips or advice?

share|improve this question
Do you want to access user profile service of farm2 or you need to sync both farms user profile service? – suren Apr 26 '13 at 6:27
I want to access the data. – will Apr 26 '13 at 16:51

I've ran into this problem recently and the problem is that the account I'm using to call the User Profile Service is not part of the Administrator group of the User Profile Service Application in other farm. After adding the user to that group and set it's permission to Manage Profiles, I no longer encounter the error. Hope this works for you.

share|improve this answer
thanks, how would you do that? I'm sorry but I usually just code. Not too familiar with sharepoint. I've gotten into the central administration. Now im lost – will Apr 25 '13 at 20:30
didnt work, thanks though – will Apr 25 '13 at 23:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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