Creating new Access Control

Hey All,

I’m trying to create a script that creates Role, Tag and Access control for the tag. I’m able to create role and tag no problem but I’m not able to create the access control. there are the scripts I’m trying

#To create a new role
New-PSURole -Name "Testing" -Description "Testing the script" -Policy {
param(
[Security.ClaimsPrincipal]$User
)
        
<# 
  Policies should return $true or $false to determine whether the user has the particular 
  claim that require them for that role.
#>
$user.HasClaim('Role','user')

$false
} -Roles @('User')

#create a new tag
New-PSUTag -Name "Testing" -Description "Testing the script"

#creating access control This doesn't work
$Type = ([PowerShellUniversal.AccessControlType]::Edit -bor [PowerShellUniversal.AccessControlType]::View)
New-PSUAccessControl -Role 'Testing' -Tag 'Testing' -Type $Type

#also tried this and this doesn' work either
New-PSUAccessControl -Role "Testing" -Type "View, Edit, Create, Delete, Execute" -Tag "Testing"

Both of these scripts get the same error
The method or operation is not implemented.

Product: PowerShell Universal
Version: 4.2.2