I would like to know under which account does event receiver code run?

Also suppose event receiver is ran on item added event that creates an item in another list. Then what will be the created by value foe that new item?

1 Answer 1


The event receiver will run under the account of the user who has triggered that event, like say ItemAdding will run under the account of the user who has added the item etc. You can use properties.CurrentUserId to get the id of the user under whose context code will be executed.

See this blog for more details

  • can you also update your answer to mention the processname under which the event receiver runs (is it the w3p?), please
    – variable
    Apr 10, 2014 at 6:42
  • Is it the w3p or the owstimer
    – variable
    Aug 5, 2014 at 3:51
  • @variable it will run under w3wp process
    – Unnie
    Aug 5, 2014 at 6:28
  • I have read that Synchronous event receivers (adding) run on the w3p.exe and the Asynchronous event receivers (added) run on OWSTimer.exe, can you confirm this please?
    – variable
    Aug 5, 2014 at 11:37
  • 1
    Item adding and item added both run under w3wp process. If you want to verify this you can create one and try debugging using w3wp process.
    – Unnie
    Aug 6, 2014 at 7:37

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.