London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
AI OnAI Off
London Dev Meetup Rescheduled! Due to unavoidable reasons, the event has been moved to 21st May. Speakers remain the same—any changes will be communicated. Seats are limited—register here to secure your spot!
You can always impersonate the user you want something like this could work:
PrincipalInfo.CurrentPrincipal = new GenericPrincipal( new GenericIdentity("the_user_you_want"), new[] { "Administrators" } );
Let me know how it goes...
David
Hello
I'm doing a custom import script that imports a number of pages by creating them programmatically, and I want to manually set the createdby username.
I have tried setting the property before saving and publishing, I have tried attaching to the various events, but no matter how I try it is allways changed to the username I'm currently logged in as.
Does anyone have a suggestion, or is this not possible?