We've deprecated the $user.nickName Expression Language function because it never returned a value.
$user.nickName
Learn more about the deprecation stages.