"Exception: Action not allowed" when using DocumentApp.getActiveDocument()

Viewed 57

I have developed a Google Docs addon that is published to the Google Workplace Marketplace.

But I'm getting this error:

Error Exception: Action not allowed

when trying to access the current active document using this function where the add-on is installed.

var doc = DocumentApp.getActiveDocument();

It works fine in development and testing, but for live users I get this error in the Executions log.

The auth scope related to this functionality is added and approved:

https://www.googleapis.com/auth/documents.currentonly

This scope should be enough to access the document so I don't know what the issue could be.

Happy for any assistance!

0 Answers
Related