0

I'm using SharePoint Server 2013 and I need a powershell script that published a custom user profile property to the User Information List.

Thanks.

  • That would require modification to the UIL List schema, which would be inadvisable. What is your ultimate goal? – Trevor Seward Feb 15 '16 at 17:04
  • I've created a custom property which stores the user name in another language, and need to retrieve may times in many pages using rest api. I've done that by consuming data from user profile by this take significant amount of time – KhalilG Feb 15 '16 at 17:56
  • Consuming it through the UPA would be the correct route. Have you moved the User Profile Service onto your front end(s)? – Trevor Seward Feb 15 '16 at 18:11
  • 1
    You should just need to mark the User Profile Property as Replicable. If you can't get it let me know and I'll post code as an answer. – Matthew McDermott Feb 16 '16 at 12:28
  • It's a development environment, so all services are on the same server. @MatthewMcDermott : I've marked it as Replicable and started both User Profile to SharePoint Full Synchronization and Quick Synchronisation Timer jobs but nothing happened. Could you post your code please ? Thanks. – KhalilG Feb 16 '16 at 21:50
2

You should just need to mark the User Profile Property as Replicable. If you can't get it let me know and I'll post code as an answer. You also have to update content on the target site collection? Your users have to be "Active" for the replication to work.They have to interact with the site by adding content or some other interactions. There is a hidden flag on the UIL that is set when a user is "Active", then the sync jobs update the info.

  • Thanks Matthew, for my case, just making the UP property as Replicable did the trick. Thanks. – KhalilG Feb 19 '16 at 15:09
  • Great, I left the rest of the explanation because it hangs folks up from time to time. – Matthew McDermott Feb 19 '16 at 16:51
  • Hi Mathew , I have created one custom property and marked as Replicable but it is not showing in User Information List. could you please guide over it. – Ramesh Dec 15 '17 at 11:58
  • There is no guide. You mark it as replicable, populate the data and wait. There is a timer job that does the sync. – Matthew McDermott Dec 15 '17 at 13:55

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.