Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jobs window - Origin column shows incorrect origin #3796

Open
JessePeden opened this issue Sep 18, 2024 · 2 comments
Open

Jobs window - Origin column shows incorrect origin #3796

JessePeden opened this issue Sep 18, 2024 · 2 comments
Labels
bug Something isn't working PowerShell Universal Issue relates to PowerShell Universal. requires triage Issue has not yet been verified by the development team.
Milestone

Comments

@JessePeden
Copy link

JessePeden commented Sep 18, 2024

Version

5.0.7

Severity

Low

Environment

msi

Steps to Reproduce

If you add the Origin column to the Jobs window, the column shows incorrect values for scripts that are run as part of an Invoke-PSUScript command that is triggered by an API (Endpoint).

For example, I have an API that is configured with a single line of code that runs a script via Invoke-PSUScript, and the resulting job shows that it was "Manually Started".

Expected behavior

The column should reflect how the job was truly initiated.

Actual behavior

The column shows that the script was manually started, even when there was nothing manual about it.

Additional Environment data

No response

Screenshots/Animations

No response

@JessePeden JessePeden added bug Something isn't working PowerShell Universal Issue relates to PowerShell Universal. requires triage Issue has not yet been verified by the development team. labels Sep 18, 2024
@adamdriscoll
Copy link
Member

We don't really have an indicator of where a script is coming from so calling Invoke-PSUScript is always considered manually run. Origin may have been a poor name choice for this column, but it does open the door the actually provide an origin.

I would even argue I would like to see which endpoint\app\script called the script for auditing purposes.

@adamdriscoll adamdriscoll added this to the 5.1 milestone Sep 18, 2024
@JessePeden
Copy link
Author

We don't really have an indicator of where a script is coming from so calling Invoke-PSUScript is always considered manually run. Origin may have been a poor name choice for this column, but it does open the door the actually provide an origin.

I would even argue I would like to see which endpoint\app\script called the script for auditing purposes.

Absolutely. That would be awesome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PowerShell Universal Issue relates to PowerShell Universal. requires triage Issue has not yet been verified by the development team.
Projects
None yet
Development

No branches or pull requests

2 participants