We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

ADSI Create Account extension attribute

singh
New Contributor II
New Contributor II

Hello Commuity, We are NOT able to set extension attributes during the creation of AD account using the ADSI connector.

Error in the ADSI connector logs- 
ERROR ADSIConnector.Common.Helpers.ResponseHelper Please check the data sent to extensionAttribute14,extensionAttribute3,extensionAttribute7,extensionAttribute13,extensionAttribute11,extensionAttribute15.

The task is getting completed successfully.

7 REPLIES 7

rushikeshvartak
All-Star
All-Star

Please share JSON


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

singh
New Contributor II
New Contributor II
{
"objects": [
{
"objectClasses": [
"user",
"top",
"Person",
"OrganizationalPerson"
],
"attributes": {
"cn": "${user.lastname}\\\\, ${user.firstname}",
"employeeNumber":"${user.employeeid}",
   "givenName":"${user.firstname}",
   "sn":"${user.lastname}",
   "mail":"${user.email}",
"userPrincipalName":"${user.email}",
   "telephoneNumber":"${user?.phonenumber!=null?user.phonenumber:'null'}",
   "title":"${user?.title!=null?user.title:'null'}",
   "company":"${user?.companyname!=null?user.companyname:'null'}",
   "extensionAttribute14":"${user?.departmentname!=null?user.departmentname:'null'}",
   "extensionAttribute3":"${user?.costcenter!=null?user.costcenter:'null'}",
   "physicalDeliveryOfficeName":"${user?.location!=null?user.location:'null'}",
   "l":"${user?.city!=null?user.city:'null'}",
   "st":"${user?.state!=null?user.state:'null'}",
   "postalCode":"${user?.regioncode!=null?user.regioncode:'null'}",
   "co":"${user?.country!=null?user.country:'null'}",
"manager": "${if(managerAccount != null){managerAccount.accountID.replace('\\', '\\\\')?.replace('/', '\\/')}}",
   "userAccountControl":"512",
   "extensionAttribute7":"${user?.customproperty4!=null?user.customproperty4:'null'}",
   "extensionAttribute13":"${user?.customproperty3!=null?user.customproperty3:'null'}",
   "department":"${user?.customproperty5!=null?user.customproperty5:'null'}",
   "streetAddress":"${user?.customproperty6!=null?user.customproperty6:'null'}",
   "extensionAttribute11":"${user?.customproperty8!=null?user.customproperty8:'null'}",
   "extensionAttribute15":"${user?.customproperty10!=null?user.customproperty10:'null'}",
   "samaccountname":"${task.accountName}",
   "employeeType":"T",
   "displayName":"${user.displayname}",
   "pwdLastSet":"0"
},
"baseDn": "${user.customproperty46}",
"password": "${password}"
}
]
}

{
"objects": [
{
"objectClasses": [
"user",
"top",
"Person",
"OrganizationalPerson"
],
"attributes": {
"cn": "${user.lastname}\\\\, ${user.firstname}",
"employeeNumber":"${user.employeeid}",
   "givenName":"${user.firstname}",
   "sn":"${user.lastname}",
   "mail":"${user.email}",
"userPrincipalName":"${user.email}",
   "telephoneNumber":"${user?.phonenumber!=null?user.phonenumber:'null'}",
   "title":"${user?.title!=null?user.title:'null'}",
   "company":"${user?.companyname!=null?user.companyname:'null'}",
   "extensionattribute14":"${user?.departmentname!=null?user.departmentname:'null'}",
   "extensionattribute3":"${user?.costcenter!=null?user.costcenter:'null'}",
   "physicalDeliveryOfficeName":"${user?.location!=null?user.location:'null'}",
   "l":"${user?.city!=null?user.city:'null'}",
   "st":"${user?.state!=null?user.state:'null'}",
   "postalCode":"${user?.regioncode!=null?user.regioncode:'null'}",
   "co":"${user?.country!=null?user.country:'null'}",
"manager": "${if(managerAccount != null){managerAccount.accountID.replace('\\', '\\\\')?.replace('/', '\\/')}}",
   "userAccountControl":"512",
   "extensionattribute7":"${user?.customproperty4!=null?user.customproperty4:'null'}",
   "extensionattribute13":"${user?.customproperty3!=null?user.customproperty3:'null'}",
   "department":"${user?.customproperty5!=null?user.customproperty5:'null'}",
   "streetAddress":"${user?.customproperty6!=null?user.customproperty6:'null'}",
   "extensionattribute11":"${user?.customproperty8!=null?user.customproperty8:'null'}",
   "extensionattribute15":"${user?.customproperty10!=null?user.customproperty10:'null'}",
   "samaccountname":"${task.accountName}",
   "employeeType":"T",
   "displayName":"${user.displayname}",
   "pwdLastSet":"0"
},
"baseDn": "${user.customproperty46}",
"password": "${password}"
}
]
}

Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

draut
New Contributor III
New Contributor III

Hi @singh ,

In place of passing 'null' can you just try with ''

Like

 

"extensionattribute14":"${user?.departmentname!=null ? user.departmentname:''}"

 

 

Dheeraj

singh
New Contributor II
New Contributor II

It is NOT working and giving the same error

{
"objects": [
{
"objectClasses": ["user", "top", "Person", "OrganizationalPerson"],
"attributes": {
"cn": "${user.lastname}\\\\, ${user.firstname}",
"employeeNumber": "${user.employeeid}",
"givenName": "${user.firstname}",
"sn": "${user.lastname}",
"mail": "${user.email}",
"userPrincipalName": "${user.email}",
"telephoneNumber": "${user?.phonenumber != null ? user.phonenumber : 'null'}",
"title": "${user?.title != null ? user.title : 'null'}",
"company": "${user?.companyname != null ? user.companyname : 'null'}",
"extensionattribute14": "${user?.departmentname != null ? user.departmentname : 'null'}",
"extensionattribute3": "${user?.costcenter != null ? user.costcenter : 'null'}",
"physicalDeliveryOfficeName": "${user?.location != null ? user.location : 'null'}",
"l": "${user?.city != null ? user.city : 'null'}",
"st": "${user?.state != null ? user.state : 'null'}",
"postalCode": "${user?.regioncode != null ? user.regioncode : 'null'}",
"co": "${user?.country != null ? user.country : 'null'}",
"manager": "${managerAccount != null ? managerAccount.accountID.replace('\\', '\\\\')?.replace('/', '\\/') : ''}",
"userAccountControl": "512",
"extensionattribute7": "${user?.customproperty4 != null ? user.customproperty4 : 'null'}",
"extensionattribute13": "${user?.customproperty3 != null ? user.customproperty3 : 'null'}",
"department": "${user?.customproperty5 != null ? user.customproperty5 : 'null'}",
"streetAddress": "${user?.customproperty6 != null ? user.customproperty6 : 'null'}",
"extensionattribute11": "${user?.customproperty8 != null ? user.customproperty8 : 'null'}",
"extensionattribute15": "${user?.customproperty10 != null ? user.customproperty10 : 'null'}",
"samaccountname": "${task.accountName}",
"employeeType": "T",
"displayName": "${user.displayname}",
"pwdLastSet": "0"
},
"baseDn": "${user.customproperty46}",
"password": "${password}"
}
]
}


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

stalluri
Regular Contributor
Regular Contributor

Use the below format.

"title": "${if(user.title != null ){user.title} else {'null'}}",
OR
 "company": "${user.companyname != null ? user.companyname : 'null'}",