2

我需要一种识别用户的方法。我有一个谷歌网站,用户可以通过他们的 gmail 帐户访问。我的网站旨在允许用户查看任何数据,但只能编辑他们自己的数据。这对我来说很好,因为我是网站的所有者和脚本的发布者,但会为其他任何人Session.getActiveUser().getUserLoginId()返回null
请为我提供有关此问题的解决方案。任何链接/任何代码?

4

1 回答 1

5

I suppose, that the script is deployed with the Execute the app as: combobox set to me. Please check it and change the combobox value to User accessing the web app.

于 2012-08-29T07:46:42.863 回答