how can I use built-in parameter LoggedInUserName in ad-hoc domain reports?
Unfortunaley the Built In User Paramerters are not accessible yet via AdHoc or Domains.
There Parameters can be Accessed
- Via Jaspersoft Stiudio Reports Slook at: http://community.jaspersoft.com/wiki/built-parameters-logged-user
- Via Input Control Queries or Domain Queries (scroll to the bottom of: http://community.jaspersoft.com/documentation/tibco-jasperreports-server-
- To do some type of User Level Security you can access them from the Domain Security File see: http://community.jaspersoft.com/documentation/tibco-jasperreports-server...
The only thing you can access form Adhoc are the User, Server and Tenant Profile Arributes via the Attributes('Name','Scope') function of Calculated fields and DomEL. So as a workaround you can create a Profile Attribute of the users that stores the username, this may be tricky if you are not doing SSO, but you may do a batch processs to create them using the REST API (http://community.jaspersoft.com/documentation/tibco-jasperreports-server...)
Here is how you use Profile Attributes in an AdHOC Calulated Field, You can also use them inside DOMAINS as Calculated fields, domain filters or in the definition of Derived Tables