Hi,
I want to migrate my dashboard (2.9.0) to Powershell Universal (dashboard 2.9.6).
I have updated the OIDC section in the appsettings file so that my users authenticate through Azure AD SSO.
But on my old dashboard, access rights to pages or features (buttons, actions, etc.) were managed according to their membership in different AD groups.
In version 2.9.6, I don’t see an option to do this sort of thing:
New-UDAuthorizationPolicy -Name "Search User" -Endpoint {
param ($User)
try {
$User.HasClaim("groups", "xxxxx")
} catch {
$false
}
}
Or :
New-UDPage -Url "user/search" -Title "dashboard" -AuthorizationPolicy "Search User" -Endpoint {
#some code
if ($Session.AuthorizationPolicies -contains "Reset User Password") {
#some code
}
}
How to handle this in the new version? The roles don’t seem to match my usage.
Or else I have to take the plunge to version 3 but I don’t have the impression that it will be better for me.
Thank you for your advices