Hi Eddie,
As per your suggestion I tried to update the value as follows :
//create the JSON
role = { role: "test-role", country: "india" };
jsonStr = toJson(role);
//get Byte Array
enc = new com.ibm.ldap.bp.asn1.BEREncoder()//new Packages.com.ibm.asn1.BEREncoder();
enc.encodeOctetString(jsonStr.getBytes());
byteValue = enc.toByteArray();
var json= system.newAttribute("customAttributeName");
##ATTEMPT 1 try to set value as ByteArray , I get TDI exception while submitting the request using JNDI :: com.ibm.dsml2.jndi.MalformedResponseException: Illegal Text data found as child of: H1 value: "Error Page Exception"
json.addValue(byteValue);
work.setAttribute(json);
##ATTEMPT 2 try to set jsonStr as it is in request. The request gets submitted to ISIM but the value set on user is encoded/garbage such as [B@ac9b7670
json.addValue(jsonStr)
work.setAttribute(json);
##ATTEMPT 3 try to set the JavaScript object as it is. Tries to map the value as 'Object:[object Object]' and doesn't get pushed to ISIM'
json.addValue(role);
work.setAttribute(json);
Nothing seem to be working for updating this custom attribute though JNDI connector.
Could you please help !!?