LDAP Transform: Division Field vs. Department field in Active Directory

Heather White
Mega Guru

Good afternoon Community!

        I've got a question regarding LDAP Transform maps.   We have Windows servers 2008, 2012 and 2014.     I'm being advised by our admins here that the division field is no longer available in the 2012 version(we are not sure if the division field is available in the 2014 version).  

Is there a way to set up the LDAP transform to recognize both "division" and "department", as we have machines running multiple versions?

Thanks,

Heather

5 REPLIES 5

You'll have to use a Field Map script to set the field:


Screen Shot 2017-07-14 at 10.44.40 AM.png




Something like this:



answer = (function transformEntry(source) {


     


      if (!source.u_division.nil()) {


              return "source.u_division";


      }


      else if (!source.u_department.nil()) {


              return "source.u_departmebnt";



      }


      //return ""; // return the value to be put into the target field


     


})(source);