I’ve got PSU 2.10.0 using Windows Authentication. Created a new role ‘ScriptCreator’ -
New-PSURole -Name 'ScriptCreator' -Description "Can create new scripts" -Policy {
param(
$User
)
if ( $User.HasClaim("http://schemas.microsoft.com/ws/2008/06/identity/claims/groupsid", 'S-1-5-21-1517553028-2257492215-940012151-49037') ) {
return $true
}
}
I created a new Global access control ViewCreate that I assigned to this role
$ViewCreate = ([PowerShellUniversal.AccessControlType]::Create -bor [PowerShellUniversal.AccessControlType]::View)
New-PSUAccessControl -Role 'ScriptCreator' -ObjectType 'Script' -Type $ViewCreate
My test user can log in to the admin console and view scripts, but the option to create doesn’t seem to be present. Did I screw something up?
Product: PowerShell Universal
Version 2.10.0