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

Matthew Glenn
Kilo Sage

 

Something as simple as this should work if done on the transform map level (not as a transform script)

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

There's an example of this on the OOB "LDAP Group Import" transform map. 

https://<instance-name>.service-now.com/nav_to.do?uri=sys_transform_map.do?sys_id=e9cf6f790a0a0b2600bbe67ca2f2e676

 

EDIT: Adding to this, the code above should be added at the transform map level. Make sure to check the "Run script" checkbox

find_real_file.png

 

Would this be an onStart or onAfter script?

Thanks for the reply Matthew, 

I have it set up like that and no manager data is being pulled in.

Interesting.

Do you see the manager on the staging table? If so, can you confirm the column name and ensure that's the column set in the following line?

ldapUtils.setManagerField('<column name>');