问题
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