Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

How to add objectClass using the Hashmap in LDAP OUD connector

sureshchalla
New Contributor
New Contributor

Hi Team,

We have custom object classes and their respective attributes in LDAP OUD.

Now the requirement is based on user attributes these objects classes are added or removed.

Whenever I am trying modify object classes update account task is creating but it is not reflecting in target system.

JSON:

${
 
                  Map map1 = new HashMap();
                  String gname=user.firstname;
                  map1.put("givenName",gname);
                  List list1 = new ArrayList();
                  list1.add("top");                            
                  list1.add("ab-person");
                  list1.add("ab-login");
                   map1.put("objectclass",list1);
                  String lastname=user.lastname;
                  map1.put("sn",lastname);
                  String empnum=user.username;
                  map1.put("employeenumber",empnum); 
                  map1.put("employeetype","ab");
                  map1.put("userPassword","Welcome@123");
                  String sys=user.systemUsername;
                  map1.put("uid",sys);
                  map1.put("ab-entrystatus",user.customproperty1);
                  jsonBuilder = new groovy.json.JsonBuilder(map1);
                  return jsonBuilder.toString().replace('\\\\','\\');
 
}
 
Could you please suggest me to achieve this? Or else let me know I am going wrong anywhere.

 

3 REPLIES 3

NM
Valued Contributor
Valued Contributor

Hi @sureshchalla , could you share the format in which you want to send the data and what target is expecting 

rushikeshvartak
All-Star
All-Star

Could you kindly provide a detailed snapshot of the information extracted from the logs, encompassing errors and other pertinent functionality details encountered during the execution of this process? Your assistance in furnishing this information would greatly aid in the analysis and resolution of any issues .



‼️‼️⚠️Do not upload any attachments that contain sensitive information, such as IP Addresses, URLs, Company/Employee Names, Email Addresses, etc.⚠️‼️‼️


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

sureshchalla
New Contributor
New Contributor

Hi @NM 

sureshchalla_0-1717505836285.png

We would like to add list1.add("ab-login");  attribute in above target.

It should be shown as attributes mentioned in the screenshot.

Like:

objectClass: ab-person

objectClass: top