Skip to main content
2 of 2
deleted 1 character in body
Marko Milic
  • 8.9k
  • 3
  • 24
  • 60

Using impersonation in VB.Net 2009 Event System

We currently have part of our event system, that on the creation of content on a specific schema, a new component is created, taking values from the original. I have set this up so that the auto-created component automatically completes the first step in workflow, which then sends the workflow down a path to exit workflow.

The problem I now have is that this only works when the user doing the original creation is a system admin, with workflow privileges. When they are not, the item stays in workflow.

I think I can get around this by doing the auto-creation by impersonating the system account, which then would have the priveledges, but can't work out how to write it. Event code is in VB.Net, using Tridion 2009 SP1