2 Replies Latest reply on Jun 7, 2018 12:16 PM by [email protected]

    How to assign organization unit based on LDAP department attribute


      We currently assign Org Units through the LDAP import based on email address:


      $(if IsRegexMatch(ParseDN(mail,  0), /my.sinclair.edu/i)

        then "Student"

        else "Staff/Faculty")


      I would like to change that to use the department attribute so I can publish service requests for specific departments. So if the department attribute is empty, they should get "student.". If the department is "1234" (for example) then it would be assigned "HR" or if the department is "4321" then IT, any other department number would be assigned "Staff/Faculty".


      I want to make sure I get the syntax correct. Help please?