Tag Info

New answers tagged


-How are you creating clientContext? Is this a SharePoint Hosted app? If so, you need to use the SP.RequestExecutor.js library -You need a reference to SP.UserProfiles.js for this code to work (in case you have not already added it) -Ensure that SP.UserProfile.js is loaded before you run your code. $(document).ready(function(){ ...


You just need to change their order on the User Profile Service under the "Manage properties" section in the central administration. cheers!


Same happened to me. The only way I found how to map them is PowerShell. Worked like a charm. Add-PSSnapin Microsoft.sharepoint.powershell [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server") [System.Reflection.Assembly]::LoadWithPartialName("Microsoft.Office.Server.UserProfiles") function ...


I would recommend using a query against the change log. The "Event Receiver" really isn't it's just a timer job using the same approach detailed in the article. You could even run it all external to SharePoint from PowerShell if you wanted. No need to deploy custom code to SharePoint.


Try like this: userprofile["propertyname"].Add(" "); userprofile["propertyname"].AddTaxonomyTerm(taxonomyterm); userprofile.Commit();


Yes, it should work. Personally, I don't use the syntax $userProfile["$property"], instead without the quotes like $userProfile[$property], but it should not make a difference, AFAIK. What I don't see in your code, where the $userProfile variable in the Update-UserProfileProperty method was defined. What is the type of your custom property? String / date / ...

Top 50 recent answers are included