In SharePoint Online, Nintex workflow can be used to update a user profile property. Before using Nintex Workflow to update user it needs to be given the right permissions
- Allow workflow to use app permissions
a. Navigate to site settings
b. Under Site Actions, click Manage site features
c. Locate the Workflows can app permissions and click Activate if it is not activated yet.
2. Allow workflow to use app permissions
3.Navigate to site settings> site app permissions
Note down the workflow app id which is between i:0i.t|ms.sp.ext| and @
4. Navigate to /_layouts/15/appinv.aspx
5. Enter workflow app id and click on Lookup button 6. Enter the following in Permission Request XML
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right=“FullControl” /> 7.Click on Create 8.Click on Trust the app. Unfortunately the REST API does not provide the capability to update user profile property of any user except the pictureurl property of currently login user. The SharePoint UserProfileService.asmx is still available. It can be used in a Web Request Action to update a user profile property. The example below updates the property “About Me”. Set the following in the Web Request call. Url: https://tenant-admin.sharepoint.com/_vti_bin/userprofileservice.asmx SoapAction: http://microsoft.com/webservices/SharePointPortalServer/UserProfileService/ModifyUserPropertyByAccountName Body: <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 i:firstname.lastname@example.org false true AboutMe NotSet Weekend finally </soap:Body></soap:Envelope> UserName: account having tenant admin rights Password: password of the user specified above Store Response Content in: Create a variable to store response content Store http status code in : Create a variable to store status code Store response headers in: Create a variable to store response headers Store response cookies in: Create a variable to store response cookies To check whether user profile properties have been updated correctly use the api /_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v=’’ or access the user information list /_layouts/15/people.aspx?MembershipGroupId=0 and click on the name you want to view data.