Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.