Microsoft Graph

Product: PowerShell Universal
Version: 2026.1.5

New to PSU…Attempting to connect to MgGraph via SharedSecretCredential. I’m able to use the same parameters within a PowerShell window and it works, however within PSU API, getting the following error: ClientSecretCredential authentication failed: at , : line 11 at , : line 1

I did verify each variable is correct. Anyone else come across this?

Mainly talking to myself -

Oh interesting - you have to build a secret in PSU with username as clientID and password is the App Reg Secret ID rather than building the $credential variable yourself.

This works .