Home

Results 1 to 2 of 2

Thread: What to do when Reports don't show account names (Username)

  1. #1
    cvattani NNTP User

    What to do when Reports don't show account names (Username)


    Hi,

    I have recently created a report for the privileged accounts in our
    client system, and chose "Username" as the first column in the Report
    Layout section.

    Strangely, a couple of my applications would have that field empty in
    the report result, making it impossible for the user to identify the
    accounts (especially the uncorrelated ones).

    I discovered later on that being a bug in the product, that will be
    fixed in the next release. The bug is verified in those applications for
    which the name/value of the identity attribute and the account attribute
    in the schema are the same.
    Since our client didn't express the will to upgrade yet, I used the
    workaround described below.

    -WORKAROUND:-

    1. change the application definition:
    add a newly created attribute in the account schema as Account
    Attribute.

    2. Initialize the new Account Attribute through a rule (i.e. Build Map
    Rule or Customization Rule) as in the following example:

    supposing that the Identity Attribute in the application schema is
    called "Username", and that the new Account Attribute in the application
    schema defined by us is called "TempUsername", the rule should have the
    following logic:

    CASE CUSTOMIZATION RULE:
    ----------------------------------------------------
    log.info("executing Customization Rule...");

    String username= object.getAttribute("Username").toString();
    object.setAttribute("TempUsername", " " + username+ "\u200e");

    ------------------------------------------------

    CASE BUILD MAP RULE:
    ----------------------------------------------------
    log.info("executing Build Map Rule...");

    String username= map.get("Username").toString();
    map.put("TempUsername", " " + username+ "\u200e");

    ------------------------------------------------

    The next aggregation will update the values and the report will show the
    accounts.

    Hope you find this helpful : )

    Charlie


    --
    cvattani
    ------------------------------------------------------------------------
    cvattani's Profile: https://forums.netiq.com/member.php?userid=4974
    View this thread: https://forums.netiq.com/showthread.php?t=49082


  2. #2
    cvattani NNTP User

    Re: What to do when Reports don't show account names (Username)


    I just realized that the code that I pasted is not the correct one:

    case Customization rule:
    ----------------------------------------------------
    log.info("executing Customization Rule...");

    username= object.getAttribute("Username");
    if (username != null) {
    object.setAttribute("TempUsername", username.toString() +
    "\u200e");
    } // else is a group (the identity attribute cannot be null!)

    return object;

    ------------------------------------------------


    case Build Map rule:
    ----------------------------------------------------
    log.info("executing Build Map Rule...");

    username= map.get("Username");
    if(username != null) {
    map.put("TempUsername", username.toString() + "\u200e");
    } // else is a group (the identity attribute cannot be null!)
    ------------------------------------------------

    Regards,

    Charlie


    --
    cvattani
    ------------------------------------------------------------------------
    cvattani's Profile: https://forums.netiq.com/member.php?userid=4974
    View this thread: https://forums.netiq.com/showthread.php?t=49082


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •