D.0 Supported JSON Format

The Identity Manager driver for REST queries the exposed RESTful endpoints and the returns the responses in JSON format.

The following is an example of the QUERY response in the supported JSON format.

{
    "totalResults": 1,
    "results": [
      {
            "src-dn": "\\SERVER-LINUX-TREE-45\\data\\users\\thomaswagner",
            "class-name": "User",
            "CN": [
                "thomaswagner"
            ],
            "Object Class": [
                "User",
                "Organizational Person",
                "Person",
                "ndsLoginProperties",
                "Top"
            ],
            "Password Allow Change": [
                "true"
            ],
            "Password Minimum Length": [
                "4"
            ],
            "Password Required": [
                "true"
            ],
            "Password Unique Required": [
                "false"
            ],
            "Public Key": [
                "AQAAAAQAAAAgAGAAAADWACc7sIe2QAUFVSU0FG"
            ],
            "Surname": [
                "thomaswagner"
            ],
            "Full Name": [
                "thomaswagner thomaswagner"
            ],
            "Revision": [
                "6"
            ],
            "Given Name": [
                "thomaswagner"
            ],
            "GUID": [
                "OTGey593Bkx1sDkxnsufdw=="
            ],
            "DirXML-Associations": [
                {
                    "nameSpace": "1",
                    "volume": "\\SERVERL-LINUX-TREE-45\\system\\driverset1\\REST-DRIVER-PUB",
                    "path": "thomaswagner"
                },
                {
                    "nameSpace": "1",
                    "volume": "\\SERVERL-LINUX-TREE-45\\system\\driverset1\\Data Collection Service Driver",
                    "path": "39319ECB-9F77-064c-75B0-39319ECB9F77"
                }
            ],
            "creatorsName": [
                "CN=linux-yal5,OU=servers,O=system"
            ],
            "modifiersName": [
                "CN=linux-yal5,OU=servers,O=system"
           ]
        }
    ]
}
 

The following is an example of the ADD request in the supported JSON format.

{
    "cn": "Sam2",
    "title": [
        "Sr Engineer",
        "Manager",
        "Mr. "
    ],
    "streetAddress": [
        {
            "component": "566666"
        },
        {
            "component": "area numero",
            "postal code": "566666"
        }
    ]
}

The following is an example of the MODIFY request in the supported JSON format.

{
    "cn": {
        "remove": "Sam1",
        "add": "Sam"
    },
    "title": {
        "add": [
            "Mr",
            "mr2"
        ]
    },
    "streetAddress": {
        "remove": [
            {
                "component1": "areanumero",
                "postalcode": "566666"
            }
        ],
        "add": [
            {
                "component2": " area numero ",
                "postalcode": "5555"
            }
        ]
    }
}

The following is an example of the GET response in the supported JSON format.

<nds dtdversion="4.0" ndsversion="8.x">
  <source>
    <product edition="Advanced" version="4.5.0.0">DirXML</product>
    <contact>NetIQ Corporation</contact>
  </source>
  <output>
    <status event-id="0" level="success"><driver-operation-data>
        <header Accept="application/json"/>
        <response>           <value>{"totalResults":2,"results": [{"keyvalue1":{"NAME":"thomas","VALUE":29}, "keyvalue2":{"NAME":"wagnor","VALUE":30}}, {"search-attr":[{"Surname": "Thomas"  }],"read-attr":["Surname","cn","Given Name"]}]}</value>         </response>
      </driver-operation-data>
    </status>
  </output>
</nds>