【问题标题】:show domain user name in google sites在谷歌网站中显示域用户名
【发布时间】:2012-12-31 09:44:59
【问题描述】:

这可能是非常基本的,但我想创建一个网络应用脚本,它将在 google 站点中显示 welcome to ...google domain username

到目前为止,这样的尝试都失败了..

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

【问题讨论】:

    标签: google-apps-script google-sites


    【解决方案1】:

    你可以在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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-10-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-09-10
      相关资源
      最近更新 更多