我需要一种识别用户的方法。我有一个Google网站,该网站是用户通过其Gmail帐户访问的网站。我的网站旨在允许用户查看任何数据,但只能编辑自己的数据。这对我来说很好,因为我是脚本的网站的所有者和发布者,但对其他任何人来说都是Session.getActiveUser().getUserLoginId()回报null。 请提供有关此问题的解决方案。任何链接/任何和平的代码?
Session.getActiveUser().getUserLoginId()
null
authentication google-sheets google-apps-script
authentication ×1
google-apps-script ×1
google-sheets ×1