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

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 = ActiveDirectory.search("UserGroup",ldapGroup.commonName) ; 
// convert back to LdapGroup element
var ldapElement = Server.getLdapElement(adGroup.distinguishedName) ;