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