IBM Verify

IBM Verify

Join this online user group to communicate across Security product users and IBM experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  ISIM - show Person`s manager in workflow email notification

    Posted 03/10/23 06:24 AM

    Hi community, 

    I try to show person`s manager in workflow email notification. The script that I`m using is:

    owner.get().getPropertyAsString("manager")

    The result is directory path to the manager. 

    Is there some way or technote to show the name of the manager, not the path ?

    Thank you!



    ------------------------------
    Galin Gospodinov
    ------------------------------


  • 2.  RE: ISIM - show Person`s manager in workflow email notification

    Posted 03/10/23 07:13 AM

    in your JavaScript embedded do something like (not tested on a real system) : 

    <JS>
    myManager = new Person( owner.get().getPropertyAsString("manager")); //instantiates the manager as a javaScript object from ldap
    return(myManager.getpropertyAsString("cn")); // myManager.name should also work - but I am not sure... 
    </JS>

    The snippet shows you a couple of things the New <Some DirectoryObject> will read the Object from the ldap entity when you provide it with the DN (this is documented in the DirectoryObject JS reference) - this is important if you need to do that.

    the DirectoryObject.name is some of the default model attributes also documented the same place - and you can probably see more by looking at the nRoleModel.xml located in the <itim_home>/data directory

    HTH



    ------------------------------
    Franz Wolfhagen
    WW IAM Solution Engineer - Certified Consulting IT Specialist
    IBM Security Expert Labs
    ------------------------------



  • 3.  RE: ISIM - show Person`s manager in workflow email notification

    Posted 03/10/23 09:15 AM

    Hi Franz Wolfhagen,

    Thank you for your reply. 

    I test it and it is working. Thank you!



    ------------------------------
    Galin Gospodinov
    ------------------------------



  • 4.  RE: ISIM - show Person`s manager in workflow email notification

    Posted 03/11/23 07:21 AM

    Thanks for confirming.

    Keep asking for help if you have other questions :-) 



    ------------------------------
    Franz Wolfhagen
    WW IAM Solution Engineer - Certified Consulting IT Specialist
    IBM Security Expert Labs
    ------------------------------