I am using a google apps script and writing a script for my google spreadsheet. I need to take the windows login id so that I can know who is filling up the spreadsheet. All my searches in the web yield the code that looks like this:
var wshell = new ActiveXObject("WScript.Shell");
alert(wshell.ExpandEnvironmentStrings("%USERNAME%"));
But google apps throws an error saying ActiveX not found. I am new to JavaScript and Google Apps.
Thanks a lot.