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
ago by (130 points)

Please log in or register to answer this question.

Related questions

On rare occasions, I get the following message when viewing the exchange properties; 'The operation cannot be executed by any available API.' This only happens to a ... these properties are displayed for users. Has anyone else experienced this issue at all?

asked Sep 1, 2016 by Martyn (70 points)
0 votes
1 answer

We have users with a value of a space for their mobile number and telephone number. I would like to figure out who these users are and null the value. Or if the value contains a number leave it alone. if it does not have a number then null the value.

asked Nov 15, 2022 by B_Witmer (40 points)
0 votes
1 answer

I am trying to build a custom command to add a specific user to a rule based group in adaxes and I am curious if it is something we can use the API to complete?

asked Mar 7, 2025 by Brian (40 points)
0 votes
1 answer

Hi, { "criteria": { "objectTypes": [ { "type": "USER", "items": { "type": 1, "items": [ { "type": 0, "property": "accountDisabled", "operator": "eq" ... ": { "isDisabled": true, Please share the right request JSON to get the required result. Thanks, Lohith

asked Oct 3, 2024 by lom (20 points)
0 votes
1 answer

Hello, We encoutered an issue with Adaxes in default configuration. We are mainly using Adaxes for its REST API, to automate identity lifecycle with our HRIS. We tried to update ... got enforced even on an API REST attribute change? If so how to disable it?

asked Aug 18, 2022 by ygini (240 points)
0 votes
1 answer