The CreatorCon Call for Content is officially open! Get started here.

Adding group manager via LDAP

othomas1
Kilo Guru

Good evening all,

I have users and groups coming in via LDAP. The user records have managers associated with them. However, the groups I’m importing are not bringing the manager over. 

I have a “managed_by” field on the group import set table, as well as in my attributes but the manager filed remains empty on group records. My transform script is set and the field length of the managed_by field is 1000 characters long. Does anyone have experience setting the manager field on groups imported via LDAP? I would greatly appreciate anyone willing to share an experience or two.

16 REPLIES 16

Mike Patel
Tera Sage

You will need below script in script section of tranform map.

ldapUtils.setManagerField('u_managedby');
ldapUtils.setManager(source, target);

You will have to create onComplete Transform Script with below script

(function runTransformScript(source, map, log, target /*undefined onStart*/ ) {

	ldapUtils.processManagers();

})(source, map, log, target);

find_real_file.png

find_real_file.png

Hello Mike,

 

I will give this a try now, i will update you on how it goes.