Can the Google Apps Script Execution API be called by a service account?

后端 未结 3 775
青春惊慌失措
青春惊慌失措 2020-12-16 17:51

I\'d like to use a service account to access a Google Sheet via the Apps Script Execution API, but it\'s not clear from the documentation whether this is supported.

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-16 18:54

    Your problem is probably that the script is associated with the wrong project (i.e. its own project, instead of the project associated with your Service Account). Here is what you need to do:

    From the Scripts editor select the following menu item: Resources > Developer Console Project.

    On this screen enter the project number for your dev console.

    cf this answer

提交回复
热议问题