Try declaring a parameter with the name "LoggedInUsername" (this exact name, since it is reserverd by jasper to hold the username of the logged user).
<parameter name="LoggedInUsername" class="java.lang.String" isForPrompting="false"/>
and use it like $P{LoggedInUsername}
.
Note: this will only work on the server, not in iReport.