2012-12-31 71 views
0

這可能是非常基本的,但我想創建一個web應用腳本,將在谷歌網站上顯示welcome to ...google domain username在谷歌網站顯示域用戶名

嘗試像這樣,到目前爲止已經失敗..

// The code below will display the email address of the person running the script 
Browser.msgBox(Session.getActiveUser().getEmail()); 

回答

0

您可以在base class description

的文檔中找到這一點,你可以試試下面的

app.add(app.createLabel('Active user login id:' + Session.getActiveUser().getEmail())); 
app.add(app.createLabel('Efective user login id:' + Session.getEffectiveUser().getEmail())); 

也許一個想法把這些功能放在html service之內。

Working doGet() example

相關問題