Symantec IGA

  • 1.  How do I SET DEFAULT SEARCH FILTER dynamically.

    Posted Oct 12, 2011 12:45 AM
    Hi

    How do I dynamically set the Default Search Filter on a Search Screen?
    I am trying to dynamically populate Search Criteria (Manager & Organization)
    based on the logged on user.

    Regards
    Shane


  • 2.  RE: How do I SET DEFAULT SEARCH FILTER dynamically.

    Broadcom Employee
    Posted Oct 13, 2011 12:15 AM
    Personally I don't quite understand the question. Can you perhaps explain the use case and what elements of the search are supposed to be dynamic in the use case and how?

    Thanks.

    Sagi


  • 3.  RE: How do I SET DEFAULT SEARCH FILTER dynamically.

    Posted Oct 13, 2011 12:51 AM
      |   view attached
    If a user clicks on the "View User" task the first screen is the search screen where you can select the organization and search filter. The default search filters are (uid, First Name, Last Name), I have also added a manager field. I am trying to get the "view user" task to show all users that report to the logged on user as the default search. I am looking for a way to auto populate these fields with the logged on users organization and uid. I have attached a file highlighting the fields I am trying to dynamically populate.

    Thanx
    Shane


  • 4.  RE: How do I SET DEFAULT SEARCH FILTER dynamically.
    Best Answer

    Broadcom Employee
    Posted Oct 13, 2011 01:50 AM
    Hi Shane.

    No. This can not be done. I can go into more technical details about why it can't be done but it probably isn't that important.

    However, this is also not the best way to get what you need. What you basically are describing is that your managers need to be scoped to manage only certain users ( within their organization or department or that directly report to them ). Identity Manager can solve this by assigning your manager with an admin role. That admin role will give them access to the necessary tasks ( such as View User ) and also scope their users to under whatever dynamic rule you want to set ( such as: user's organization is admin's organization - for example. there are plenty other scoping rules you can apply ).

    This would be a very good and relatively easy way to get what you need.

    If you have more questions on this or prefer to go into this in more depth then please open a support case and we shall be glad to get into more details.


    Yours.

    Sagi Gabay,
    CA Technologies.


  • 5.  RE: How do I SET DEFAULT SEARCH FILTER dynamically.

    Posted Oct 13, 2011 07:33 AM
    Hi Sagi

    Thanx for the feedback. I will try this.

    I have been searching on the support site and found the below samples. Would it not be possible to expand the below code and use it in a BLTH?

    Support Site Samples

    IMSAPI Class References
    The following code samples demonstrate how to reference imsapi classes:

    Sample 1:

    function handleValidation(BlthContext, errorMessage) {
    var imsapi = Packages.com.netegrity.llsdk6.imsapi
    var expr = new imsapi.search.SearchExpression("uid",
    imsapi.type.OperatorType.EQUALS,"bhanu")
    return true
    }

    Sample 2:

    function handleValidation(BlthContext, errorMessage) {
    var searchPackage = Packages.com.netegrity.llsdk6.imsapi.search
    var typePackage = Packages.com.netegrity.llsdk6.imsapi.type
    var expr = new searchPackage.SearchExpression("uid",
    typePackage.OperatorType.EQUALS, "bhanu")
    return true
    }

    Sample 3:

    function handleValidation(BlthContext, errorMessage) {
    var expr = new
    Packages.com.netegrity.llsdk6.imsapi.search.SearchExpression("uid",
    Packages.com.netegrity.llsdk6.imsapi.type.OperatorType.EQUALS, "bhanu")
    return true
    }


    I did log a support case but I will also try your suggestion.

    Thanx
    Shane


  • 6.  RE: How do I SET DEFAULT SEARCH FILTER dynamically.

    Broadcom Employee
    Posted Oct 15, 2011 01:51 AM
    Hi Shane,

    - What is the support case# ? I will look into it and possibly try to get to work with you on it.
    - Yes, these BLTH samples should be fine. However, our most current samples in the Identity Manager installation folder under Tools and then the samples folder. There you will find a number of BLTH up to date examples.


    Sagi


  • 7.  RE: How do I SET DEFAULT SEARCH FILTER dynamically.

    Broadcom Employee
    Posted Oct 15, 2011 01:53 AM
    By the way, this thread already is discussing different topics. I suggest you mark it complete and possibly start another thread if you'd like to continue the discussion on the BLTH samples.
    Also, as said, get me the case# and I'll look into it.

    Sagi


  • 8.  RE: How do I SET DEFAULT SEARCH FILTER dynamically.

    Posted Oct 17, 2011 12:21 AM
    Hi Sagi

    The case # is 20577855-1.

    I will download the latest IM and try those samples. I will mark this thread as complete. Thanx for your help.

    Regards
    Shane