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

2

There are 2 best solutions below

0
Raserhin On

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.

0
Karishma Gulati On

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.