PSU 5.0.15 - gRPC errors

I’m upgrading from v4 to v5 and testing existing working scripts from v4.

I use Get-PSUDashboard to get dashboards to build a dynamic multi-tier navigation menu.

This works fine in v5 when I am using my Administrator role account, but fails for all other users.

Issue seems to be around Get-PSUDashboard command and I’m guessing it’s some permission issue, given that admin account works and others don’t. Obviously, I can’t give everyone Administrator role to work around it.

I’ve tried playing around with -AppToken and -Credential parameters, but not getting very far.

Any ideas or workarounds?

I’ve worked around it by changing the security model to permissive. I couldn’t get -AppToken [string] to work - so maybe I’m not fully understanding AppToken permissions when I create them.

Module | PowerShell Universal