Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Error while provisioning Active Directory Access.

Srujan
New Contributor
New Contributor

Hi Team,

We are trying to provision the Active Directory Access. And we are facing an error saying: "Error while creating account in ADSI : Cannot get property 'url' on null object". Just wondering if this is because anything was change on the target side or am I missing some configuration? As previously it was working fine.

Please let me know if there are any suggestions.

Regards,
Srujan

4 REPLIES 4

NM
Honored Contributor II
Honored Contributor II

@Srujan can you share the affected json??

Srujan
New Contributor
New Contributor

Hi @NM , thanks for the quick response. Below is the ADDACCESSJSON,

{
"objects": [
{
"objectClasses": [
"user"
],

 

"distinguishedName": "${accountID?.replace('\\', '\\\\')?.replace('/', '\\/')}",
"addGroup": "${entitlement_values}"
}
]
    "grpMemExistenceChk": {
      "enable": true
    }
  }

This error seems like about REST connector and not related to AD 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

stalluri
Valued Contributor II
Valued Contributor II

@Srujan 

Error while creating account in ADSI : Cannot get property 'url' on null object".

You share AddAccessJson. Can you also share the CreateAccountJson.

Ensure you have all the values on the binding variables in the create account. If any values have empty/null data, this is a known error in ADSI. Add a null checker for all the attributes.

${user.employeetype != null ? user.employeetype : 'null'} or ${user.employeetype != null ? user.employeetype : ''}

Sample Create Account:

{
    "objects": [
        {
            "objectClasses": [
                "user",
                "top",
                "Person",
                "OrganizationalPerson"
            ],
            "attributes": {
                "sn": "${user.lastname}",
                "sAMAccountName": "${task.accountName}",
                "cn": "${cn.replace(',', '\\,')}",
                "userAccountControl": 512,
                "co": "${user.country != null ? user.country : 'null'}",
                "department": "${user.departmentname != null ? user.departmentname : 'null'}",
                "displayName": "${user.displayname != null ? user.displayname : 'null'}",
                "employeeID": "${user.employeeid != null ? user.employeeid : 'null'}",
                "employeeType": "${user.employeeType != null ? user.employeeType : 'null'}",
                "givenName": "${user.firstname}",
                "l": "${user.city != null ? user.city : 'null'}",
                "mail": "${user.email}"
            },
            "baseDn": "CN=xx,DC=xx,DC=xx",
            "password": "${randompassword}"
        }
    ]
}

 


Best Regards,
Sam Talluri
If you find this a helpful response, kindly consider selecting Accept As Solution and clicking on the kudos button.