Workflow scripted elements, actions, and policies require scripting of common LDAP tasks. You can cut, paste, and adapt these examples into your scripted elements.

Convert LDAP Objects to Active Directory Objects

The following JavaScript example converts LDAP group elements to Active Directory user group objects, and the reverse.

var ldapGroup ; 
// convert from ldap element to Microsoft:UserGroup object 
var adGroup ="UserGroup",ldapGroup.commonName) ; 
// convert back to LdapGroup element
var ldapElement = Server.getLdapElement(adGroup.distinguishedName) ;