2

Until now, the legacy /_vti_bin/UserProfileService.asmx was the only possible API to update SharePoint o365 user profile properties. Unfortunately, recently it started to return Server was unable to process request. ---> Attempted to perform an unauthorized operation. error message.

I am sure there were no changes to the account name/password/role in o365 from our side. I could not find any announcement or any additional information regarding it. Does anybody experience the same issue or can confirm the problem?

  • I've checked it in my environment, but seems the service is still working. Have you been able to open the URL via browser? – Roman Feb 13 '15 at 15:52
  • Yes, the service URL opens in a browser without problem. However, attempt to use any method of the service such as GetUserProfileCount() returns the above error. It worked correctly several weeks ago. – lenin Feb 16 '15 at 11:00
  • How do you call this web service via code? The most interesting part is how do you get the auth cookies. – Roman Feb 16 '15 at 20:25
  • Auth cookies are retrieved the usual way via SharePointOnlineCredentials.GetAuthenticationCookie() - no errors here. I think I'll switch to CSOM way of updating user properties. It seems that the new API is available already. – lenin Feb 17 '15 at 14:16
  • You get cookies in the right way. How do you assign it to http request? – Roman Feb 17 '15 at 20:52
0

Nishu, do not substitute SPOIDCRL with FedAuth for your cookie. Instead, use it exactly in a form of SPOIDCRL=...

Alternatively, switch to use PeopleManager via CSOM https://msdn.microsoft.com/EN-US/library/office/microsoft.sharepoint.client.userprofiles.peoplemanager.aspx

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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