some users get “No item with the given ID could be found, or you do not have permission to access it” error

你离开我真会死。 提交于 2020-03-25 22:38:14

问题


i have an appscript running fine with most of the users. some users, however, get this error when trying to run the script: (they have the same permission as the other users that runs the script fine): "No item with the given ID could be found, or you do not have permission to access it" any ideas? thanks !


回答1:


I have seen plenty of login/authentication problems with my app during past few days. For me, the error was "Exception: You do not have permission to call Session.getActiveUser.". The problem is random, occurs quite often (approx 25% of user logins), and my solution was to try again until successful. So, this might explain your problems as well.

Try to add for example:

var email_act = Session.getActiveUser().getEmail();

to some place into your script and see if you get errors as well.



来源:https://stackoverflow.com/questions/60475337/some-users-get-no-item-with-the-given-id-could-be-found-or-you-do-not-have-per

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!