I use iReport 5.0.0 and JasperReports Server 5.0.0 too. I have some problem that if I login in JR Server with UserName as Admin I would like JS to show the column (that I need) but when I login as userName Test1, JS doesn't show the column. And the right to access this column I use table to store it such as I have 2 fields, UserName and AccessRight.
Please advise me to do this because I'm new in JR Server + iReport and I have searched in Google I'm not find this topic
In I-report you need to Use the "print When Expression"
example using Groovy as your report language
$P{LoggedInUsername} == "Admin" ? true :false
or with JAVA
($P{LoggedInUsername}.toString().contains("Admin"))?new Boolean(true) : new Boolean(false)
you may want to do this by user roles as the if the statement can get ugly if you have more than 1 user you want to to see the column.
[JasperSoft Community Docs][1]http://community.jaspersoft.com/wiki/built-parameters-logged-user