There are various ways with different levels of code cleanliness
since all user names start off with 'XWiki.' you could use
$context.getUser().substring(6)
If you're looking for the user's "common name" instead of the user name,
you might want to look at
$xwiki.getUserName
http://maven.xwiki.org/site/xwiki-core-parent/xwiki-core/apidocs/com/xpn/xw…
Caleb
abrante wrote:
I recovered the value from $context.user
Thanks