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.

10
  • That would require modification to the UIL List schema, which would be inadvisable. What is your ultimate goal?
    – user6024
    Feb 15, 2016 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, 2016 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)?
    – user6024
    Feb 15, 2016 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. Feb 16, 2016 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, 2016 at 21:50

1 Answer 1

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.

4
  • Thanks Matthew, for my case, just making the UP property as Replicable did the trick. Thanks.
    – KhalilG
    Feb 19, 2016 at 15:09
  • Great, I left the rest of the explanation because it hangs folks up from time to time. Feb 19, 2016 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, 2017 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. Dec 15, 2017 at 13:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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