AI OnAI Off
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?