I am attempting to use the script here:
https://www.adaxes.com/sdk/REST_AccessControl/
Yet when I run it with
$serviceHost = "localhost"
$allowAuthOf = @(
"CN=Adaxes API Service Account,CN=Users,DC=contoso,DC=com",
"CN=API Administrators,OU=Groups,DC=contoso,DC=com"
)
$replace = $true
After entering my credentials I get:
Supply values for the following parameters:
Exception calling "FromJson" with "2" argument(s): "Value cannot be null.
Parameter name: id"
At line:58 char:1
+ $restApi.FromJson($null, ($config | ConvertTo-Json -Depth 10))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentNullException