Click HERE to see how Saviynt Intelligence is transforming the industry. |
09/09/2024 06:15 AM
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
09/09/2024 06:18 AM
@Srujan can you share the affected json??
09/09/2024 06:26 AM
Hi @NM , thanks for the quick response. Below is the ADDACCESSJSON,
{
"objects": [
{
"objectClasses": [
"user"
],
"distinguishedName": "${accountID?.replace('\\', '\\\\')?.replace('/', '\\/')}",
"addGroup": "${entitlement_values}"
}
]
"grpMemExistenceChk": {
"enable": true
}
}
09/09/2024 07:28 AM
This error seems like about REST connector and not related to AD
09/09/2024 07:32 AM
@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}"
}
]
}