transform_scripts
This is an old revision of the document!
Transform Scripts
LDAP Transform
//JWJ0215 2022 // 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); // Set the source LDAP server into the target record target.ldap_server = source.sys_import_set.data_source.ldap_target.server; // Set the u_manager_status boolean if (source.u_extensionattribute11 == '0') { target.u_manager_status = true; } else { target.u_manager_status = false; }
transform_scripts.1735570362.txt.gz · Last modified: 12/30/2024 06:52 by johnsonjohn