AI Tools: Add Run As / Credential support for least-privilege execution

AI Tools: Add Run As / Credential support for least-privilege execution

1 vote

avatar

It would be useful for PowerShell Universal AI Tools to support an explicit Run As / Credential option.

AI Tools may need to interact with systems that require different levels of access. Ideally, each tool should be able to execute under a dedicated Windows identity rather than relying on the identity of the PowerShell Universal service.

This could reuse PSU's existing Run As and credential functionality, including support for group Managed Service Accounts (gMSAs).

For example, an AI Tool configuration could allow an administrator to select a credential:

New-PSUAiTool -Name "ExampleTool"  -ScriptFullPath "ExampleTool.ps1" -Credential "Variable:ToolCredential"

The equivalent Run As / Credential option could also be exposed in the UI.

The goal is to make the execution identity an explicit property of the AI Tool, allowing administrators to apply least privilege on a per-tool basis and making the resulting security boundary easier to configure, understand, and audit.

All Comments (1)

avatar

@wwong1Good idea! We can make that happen. We'll update this thread once this is implemented. 

Adam Driscoll

PowerShell Expert and Software Architect at Devolutions