- 2 minutes to read

Create User Example0

Create a user with some properties. The account is enabled.

XML

<ns0:LDAP xmlns:ns0="http://integrationsoftware.se/BizTalk/Adapters/LDAP/Request/1.0">
  <Batches guid="B7A211D7-20F3-44BC-B078-7F1B6E1C047F" returnResponseMessageOnExceptions="true">
    <Batch guid="2B25B9E6-4AF2-4094-9AE7-E1E4C99B6C8D" continueOnError ="false">
      <User>
        <With OU="OU=Users,OU=Karlstad" DC="DC=WILDWEST,DC=local" searchScope="Subtree" expectedMatchCount="1" returnProperties ="" />
        <Operations>
         <Create name="Jane Doe">            
            <Password>Password_0!%¤"#¤</Password>
            <Properties>
              <Property name ="description" value ="Description set from LDAP Adapter from Integration Software." contentType ="String"/>
              <Property name ="userAccountControl" value ="544" contentType ="String"/>
            </Properties>
          </Create>
        </Operations>
      </User>
    </Batch>
  </Batches>
</ns0:LDAP>

JSON

{
  "RequestId": "b7a211d7-20f3-44bc-b078-7f1b6e1c047f",
  "Batches": [
    {
      "continueOnError": false,
      "guid": "2b25b9e6-4af2-4094-9ae7-e1e4c99b6c8d",
      "User": {
        "With": {
          "CN": "",
          "OU": "OU=Users,OU=Karlstad",
          "DC": "DC=WILDWEST,DC=local",
          "searchScope": "Subtree",
          "expectedMatchCount": "1",
          "returnProperties": "",
          "sizeLimit": 0,
          "searchFilter": ""
        },
          "Operations": {
            "Create": {
              "@name": "Jane Doe",
              "Properties": {
                "Password": "Password_0!%¤\"#¤",
                "Property": [
                  {
                    "@name": "userAccountControl",
                    "@value": "544",
                    "@contentType": "String"
                  },
                  {
                    "@name": "description",
                    "@value": "Description set from LDAP Adapter from Integration Software.",
                    "@contentType": "String"
                  }
                ]
              }
            }
        }
      },
      "Group": null,
      "OrganizationalUnit": null,
      "Schema": null,
      "AD": null
    }
  ],
  "PassThruContent": null,
  "ReturnResponseOnExceptions": true
}