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

Invoke-PSUScript -AppToken not listing job as the app token user #4414

Open
adamdriscoll opened this issue Feb 20, 2025 · 3 comments
Open

Invoke-PSUScript -AppToken not listing job as the app token user #4414

adamdriscoll opened this issue Feb 20, 2025 · 3 comments
Labels
Area-Automation This issue is related to automation features. P2 - high Bug has serious impact on usage, impacts a large number of users. Size - S This issue is a small amount of work. support ticket This issue was the result of a support ticket. Support tickets receive priority. v5 Version 5 issue.
Milestone

Comments

@adamdriscoll
Copy link
Member

Description of Issue

Run a script with Invoke-PSUScript -AppToken
Script is listed as running as system and not app token user.

Version

5.3.2

Severity

High

Hosting Method

MSI (Windows Service)

Operating System

Windows

Database

SQLite

Licensed

Yes

Features

No response

Additional Environment data

No response

Screenshots/Animations

No response

@adamdriscoll adamdriscoll added Area-Automation This issue is related to automation features. P2 - high Bug has serious impact on usage, impacts a large number of users. Size - S This issue is a small amount of work. support ticket This issue was the result of a support ticket. Support tickets receive priority. v5 Version 5 issue. labels Feb 20, 2025
@adamdriscoll adamdriscoll added this to the 5.3.3 milestone Feb 20, 2025
@adamdriscoll
Copy link
Member Author

This is a bug and a patch will be included in version 5.3.3.

@RubenT91 RubenT91 reopened this Mar 5, 2025
@RubenT91
Copy link
Collaborator

RubenT91 commented Mar 5, 2025

We are reopening this issue as the customer is still experiencing intermittent authentication failures when using Invoke-PSUScript after upgrading to PSU 5.3.3.

Updated Issue Details:
The customer’s script executes five PSU scripts sequentially with Invoke-PSUScript -UseDefaultCredentials -Wait.
The behavior observed:
Script 1 executes successfully.
Scripts 2, 3, and 4 fail with an "Unauthenticated. Specify an app token, use default credentials, or enable permissive security model" error.
Script 5 executes successfully.
This behavior is inconsistent, as previously all scripts were failing, and now the failure is limited to specific ones in the sequence.
A 10-second delay (Start-Sleep -Seconds 10) was introduced between script calls to rule out timing issues.

[Error] Cannot retrieve the dynamic parameters for the cmdlet. Unauthenticated.
Specify an app token, use default credentials, or enable permissive security model.

This occurs at different points in the execution order, indicating potential token/session issues in PSU 5.3.3.

@adamdriscoll adamdriscoll modified the milestones: 5.3.3, 5.4.0 Mar 6, 2025
@adamdriscoll
Copy link
Member Author

Ticket ID 10342

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Automation This issue is related to automation features. P2 - high Bug has serious impact on usage, impacts a large number of users. Size - S This issue is a small amount of work. support ticket This issue was the result of a support ticket. Support tickets receive priority. v5 Version 5 issue.
Projects
None yet
Development

No branches or pull requests

2 participants