Hi Tanvirao, I found no possibility in vCO to execute custom Ldap-Query, but with the Microsoft-Plugin you are able to get some (not all) AD-Object attributes. The Manager-Attribute is al...
See more...
Hi Tanvirao, I found no possibility in vCO to execute custom Ldap-Query, but with the Microsoft-Plugin you are able to get some (not all) AD-Object attributes. The Manager-Attribute is also available. vCO handles with different Ldap-Objects one is LdapUser and the same of MS-Plugin is Microsoft:User, with the LdapUser-Object you can't get the manager attribute, but with it you get the LdapUser of the current runnig workfow execution user. I wrote two actions which you will find attached. One to convert the LdapUser-Object into the MS-Plugin-User-Object and the other to get a Property of the MS-UserObject. With following script code you will get the Ldap-Object of the Manager using both actions: var objLdapManager = null; var objLdapUser = Server.getCurrentLdapUser(); var objADUser = System.getModule("com.alstom.vco4.basic").convertLdapUserIntoAdUser(objLdapUser); var strManager = System.getModule("com.alstom.vco4.basic").getAdUserAttribute(objADUser,"manager"); if (strManager != null) { objLdapManager = Server.getLdapElement(strManager); System.log("The manager of '" + objLdapUser.commonName + "' is '" + objLdapManager.commonName + "'."); } else { System.log("The manager of '" + objLdapUser.commonName + "' couldn't be found."); } Hope this helps. Rainer
getAdUserAttribute.action
convertLdapUserIntoAdUser.action