TomRed.net

  • Increase font size
  • Default font size
  • Decrease font size
Subscribe Bookmark and Share
Home Tutorials FatWire FatWire Retrieving Current User Details

FatWire Retrieving Current User Details

PDF
User Rating: / 0
PoorBest 

This is a simple piece of functionality that takes advantage of the usermanager tag library. The Logged in User id can be retrieved using the usermanager:getloginuser tag and you can out put this to a var using the attribute varname="". The Logged in User name can be retrieved just as easily using the usermanager:getloginusername and similarly output to a var.
To get the current username and id use the following

<usermanager:getloginuser varname="currentUserIdString" />
<usermanager:getloginusername varname="currentUserName" />