AnsweredAssumed Answered

Update User Profile in Office 365 Issue

Question asked by bstori Champion on Aug 8, 2017

I am trying to create a workflow to allow managers to update certain SharePoint profile properties. I am using the web request action to try to update the properties. I am using an Office 365 Global Admin as for the username and PW. I also have done the following...turned on the feature for workflow to use permissions, I have tried to go into the admin center to give the workflow app full control and have tried at the site collection level too.

 

I keep getting the following Permissions Issue:
Response Content: soap:ServerServer was unable to process request. ---> Attempted to perform an unauthorized operation.

Http Status Code: 500

 

Web Request Action Set up

URL: SiteURL/_vti_bin/userprofileservice.asmx 

 

Method: SOAP 1.1 
http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/ModifyUserPropertyByAccountName

 

Body: Content

<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">   <soap:Body>     <ModifyUserPropertyByAccountName xmlns="http://microsoft.com/webservices/SharePointPortalServer/UserProfileService">       <accountName>i:0#.f|membership|kyle.bakker@solutiondesign.com</accountName>       <newData>         <PropertyData>           <IsPrivacyChanged>false</IsPrivacyChanged>           <IsValueChanged>true</IsValueChanged>           <Name>sdgCommittee</Name>           <Privacy>NotSet</Privacy>           <Values>             <ValueData><Value xsi:type="xsd:string">Test123</Value></ValueData>           </Values>         </PropertyData>       </newData>     </ModifyUserPropertyByAccountName>   </soap:Body> </soap:Envelope>

Outcomes