Reputation: 73
I recently migrated one of my projects to the new V8 engine of appscript.I am getting this exception
Exception: You do not have permission to call Session.getActiveUser. Required permissions: https://www.googleapis.com/auth/userinfo.email..Session.getActiveUser is not accessible without permission
Any ideas would be appreciated
Upvotes: 3
Views: 2424
Reputation: 773
As stated by @Raserhin, there's an open issue with google and the problem seems to be with the new App Script runtime powered by Chrome v8.
A small workaround (until the issue is resolved) will be to disable the App Script runtime as follows: (Run -> Disable App Script runtime powered by Chrome V8). The project will now run with Apps Script Legacy which does not have this issue.
Upvotes: 1
Reputation: 2696
As stated by @zimday this isssue has been already reported in Google Issue Tracker.
You can follow the issue in this link. Give it a +1
to make Google aware of the people affected by it.
Upvotes: 1