Mapping manager value from Active Directory (AD) integration

Community Alums
Not applicable

Hi All,

 

In AD, manager value is getting stored in an attribute called "userAttributeExtension15" which is storing some unique values here.

Currently, we are mapping the User ID and Email ID fields to the Email ID of the user.

Can anyone suggest me how I can map Manager value in the transform map.

 

Thank you in advance!

Regards,

Ganesh

 

1 ACCEPTED SOLUTION

David Whaley
Mega Sage

If this is for user imports you should have a manager field in your LDAP import set with the fully qualified domain name.  Something like CN= Full Name, OU = Group Name, OU=Users, DC= domain, DC=local.  You don't need to map the manager field in the transform map.  In the transform script enter the following ldapUtils.setManager(source, target);

 

This is what the out-of-the-box script looks like.

 

//
// The manager coming in from LDAP is the DN value for the manager.  
// The line of code below will locate the manager that matches the
// DN value and set it into the target record. To ignore the manager 
// from LDAP, remove or comment out the line: ldapUtils.setManager(source, target);
//
// NOTE: The 'manager' field SHOULD NOT be mapped in the 'Field Maps' related list
// if the manager is brought in through an LDAP import.  The 'ldapUtils' scripts
// here and in the 'onComplete' Transform Map will map this value automatically.
ldapUtils.setManager(source, target);

 

 The OnComplete transform script

 

//
// It is possible that the manager for a user did not exist in the database when
// the user was processed and therefore we could not locate and set the manager field.
// The processManagers call below will find all those records for which a manager could
// not be found and attempt to locate the manager again.  This happens at the end of the
// import and therefore all users should have been created and we should be able to
// locate the manager at this point
ldapUtils.processManagers();

 

 

View solution in original post

16 REPLIES 16

Hi, You have a OOB functionality to load the 20 records. Please refer below screenshot. If you configured the data source part of LDAP test load option will be available like below.

 

ersureshbe_0-1670940208277.png

 

Regards,
Suresh.

Community Alums
Not applicable

Hello,
I tried that, but it's not populating manager value for sample 20 records.Any idea on this?

 

Regards,

Ganesh

Hi, I doubt about your script. it will be an issue with your script. Did you check the script result?

If it works, it will work for test 20 record load as well.

 

Where you written the manager name tag it to user record? Is that transform script?

Regards,
Suresh.

Community Alums
Not applicable

Hello,
I havn't modified anything with the script. Its just OOB what I have in transform map.

1. is transform script 

2. on complete script 

Ok If you follow up with OOB and not modified anything in the code you should check with LDAP end users are properly configured with manager name? If not OOB not help you.

Regards,
Suresh.