0 votes

After updating all built-in reports to initial state, I have noticed that there are a few reports that need some criteria in JSON format, and the filed Criteria (JSON) is blank.

For example the Object not protected from deletion report (see image below).

adax01.JPG

Is this the expected behaviour?
And if yes, how do you work with JSON Criteria? At least, what is the syntax to include all objects?

by (90 points)

1 Answer

0 votes
by (288k points)
reshown by

Hello,

Is this the expected behaviour?

Yes, the behavior is by design because the report is not meant for generation out of the box (it is actually disabled). It is only used as base for other reports. If you want to use the report as is, copy it and remove the Criteria (JSON) parameter from the copy.

And if yes, how do you work with JSON Criteria?

The easiest way is to build criteria and then convert it to JSON in a script. For example:

# Build criteria
$criteria = New-AdmCriteria "user"

# Convert criteria to JSON and output
$json = $criteria.ToJson($NULL)
$Context.LogMessage($json, "Information")

For information on how to build criteria, see https://adaxes.com/sdk/HowDoI.BuildCriteria.

At least, what is the syntax to include all objects?

It is just {}.

0

Got it. Thank you very much

Related questions

0 votes
1 answer

base dn: OU=Users,DC=domain,DC=com then we have sub OU's like OU=Department,OU=Users,DC=domain,DC=com and OU=Site,OU=Department,Dc=domain,dc=com i would like to filter all the users inside base dn.

asked Feb 21, 2023 by dppankib (20 points)
0 votes
1 answer

As you can see in the picture, we currently have three different formats as soon as we look at a user's data. Can this be adjusted so that only one format dd.mm.yyyy is displayed? Thank you very much

asked Nov 17, 2023 by DRiVSSi (300 points)
0 votes
1 answer

I realise that this has been asked a few times but I can't seem to get to resolution having read through previous advice. We have scheduled tasks set up to automatically ... /time region settings on all servers currently using Adaxes. They're all set to UK.

asked Apr 21, 2023 by Homelander90 (350 points)
0 votes
1 answer

Hi, I was just wondering if there was a way to force the format of the date picker value in the web approval interface. We have operation that are very time specific ... like that in the web interface. Example of the problem: Thank you, Jean-Simon Tremblay

asked Dec 3, 2021 by jsimon.tremblay (20 points)
0 votes
1 answer

is it possible to send a mail in HTML format?. such a welcome email after creating a user.

asked Dec 21, 2011 by mmichard (360 points)
3,538 questions
3,229 answers
8,224 comments
547,748 users