Returns the current user's name

Get parameters Get examples: // Simple URL /OpenForum/Actions/GetUser?pageName=dummy // Using JSON.get JSON.get('/OpenForum/Actions/GetUser', null, 'pageName=dummy') .onSuccess(function(username) { console.log('Current user:', username); }).go(); Get Action

Server Side Javascript for GET method

if(typeof(pageName)=="undefined") { transaction.setResult(transaction.SHOW_PAGE); } else { transaction.sendPage( transaction.getUser() ); }