Let's say a user
deletes few items from a document library. Is there a way we can find out the user name of the person who deleted those. I looked into alerts which does let one know which item was deleted but not by whom.
One thing I thought of is to create a custom event receiver
, so when an item is deleted I can grab the item name but is there any property of the item that stores the user who deleted that item? When some one deletes an item does the Modified By
name change to the person who deleted it? Any suggestions with regards with a different approach?
EDIT: I missed few key things in the question. We would want to create a feature that will send an email
entailing which items were deleted and who deleted them. As i was thinking, if we went with the custom event receiver solution we can capture the person who logged in and deem him as the person who deleted the item. I guess it probably answer's my question. But if any other better approach to handle this please let me know if not i will close this question.