We currently assign Org Units through the LDAP import based on email address:
$(if IsRegexMatch(ParseDN(mail, 0), /my.sinclair.edu/i)
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?