unfortunately system_user doesn't work. It always returns the username which sqlserver agent is running unpon.
I'm curious why the job history shows clearly what's the user that invokes the job, however I didn't find anything when I was going thur the script of sp_start_job
User Profile
Collapse
Leave a comment: