Correct configuration to get which user ran a script when running under IIS

I’m not sure the correct way to word this :slight_smile:

we run PSU under IIS with system running the app pool.
A service desk agent may run a page within a dashboard say to reset a bitlocker key. The dashboard page calls a powershell script to return the data,the script runs under a service account, however in the admin portal\Jobs we see the below (which is sort of to be expected)

the job is run by system, is there any way to get any information about who initiated the job and record this in the admin portal\Jobs queue - similar to a manual script invocation?

running 3.7.10

Are you using the -Integrated switch on Invoke-PSUScript in the dashboard? I thought that would set the user name but I could be wrong…

will need to roll back our dev server, upgraded to 3.14 and now get this

[error] The term ‘Out-PSUPipeline’ is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

checked the cmdlets are in the universal module and all looks ok.