1

Is there a way to automatically set the value of a User Profile property right when the user first visits a SharePoint site -regardless of what page they load first? I'm kind of looking for the equivalent of a "UserAuthenticated Event Receiver".

0

One way you could do this is by writing your custom code in a user control and adding it to the master page of your site. Have it run code in OnLoad and use bool or DateTime flags to detect whether or not the property has been updated per your requirements. This will guarantee every page using the master will run the code, not just the landing page of the site collection.

  • I was hoping to avoid having to make any modifications to Master Pages or creating webparts, usercontrols etc. Is there a way to wire something up in and EventReceiver, Global.asax or set something in web.config? – Ami Schreiber Jan 29 '14 at 16:50

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.