Linking Google Cloud Platform Project to Google Apps Script Project for New IDE

352 views
Skip to first unread message

Tanaike

unread,
Mar 28, 2021, 11:56:53 PM3/28/21
to Google Apps Script Community
This is the document for linking Google Cloud Platform Project to Google Apps Script Project for New IDE. And also, several sample scripts using Google Apps Script API and Google Photos API are introduced.


Boris Baublys

unread,
Mar 29, 2021, 12:30:50 AM3/29/21
to Google Apps Script Community
Tanaike, thanks, helpful.

понедельник, 29 марта 2021 г. в 06:56:53 UTC+3, Tanaike:

Tanaike

unread,
Mar 29, 2021, 2:31:00 AM3/29/21
to Google Apps Script Community
Thank you.

kle...@ritenourschools.org

unread,
Mar 29, 2021, 12:39:44 PM3/29/21
to Google Apps Script Community
Tried Sample 1 from Tanaike GitHub https://github.com/tanaikech/Linking-Google-Cloud-Platform-Project-to-Google-Apps-Script-Project-for-New-IDE
as I am trying to understand libraries. When I go the first error 403 I went to the link
to "enable Google Apps Script API at API console" and got:

You do not have sufficient permissions to view this page

RETRYTROUBLESHOOT

There was an error while loading /apis/api/script.googleapis.com/overview?project=sys-21160705319071591188149124&pli=1.

You are missing at least one of the following required permissions:

Project

resourcemanager.projects.get
serviceusage.services.get

Check that the project ID is valid and you have permissions to access it. Learn more

Send feedback

Is the information out of data or do I have to be some special type of person to try this library?
L.Klein
On Monday, March 29, 2021 at 1:31:00 AM UTC-5 Tanaike wrote:
Thank you.

Tanaike

unread,
Mar 29, 2021, 7:53:01 PM3/29/21
to Google Apps Script Community
Thank you for replying. I apologize for the inconvenience. Unfortunately, I cannot replicate your situation. When I tested the sample script, no error occurs. This is due to my poor skill. I deeply apologize for this. In order to correctly understand about your current issue, can you provide the detail flow for replicating your issue? By this, I would like to confirm it.

Kim Nilsson

unread,
Mar 30, 2021, 2:46:00 AM3/30/21
to Google Apps Script Community
L.Klein,

are you in a Google Workspace domain and are you not the superadmin?
If so, it could be that the admin has restricted certain Cloud project permissions.
Sometimes you can give yourself permissions on your project, or in the domain, but not always, depending on what the admin has changed.

Bruce Mcpherson

unread,
Mar 30, 2021, 5:00:44 AM3/30/21
to google-apps-sc...@googlegroups.com
I made a library a few years ago for cloud storage and apps script. This write up covers a number of scenarios. although it may be a little out of date as it pre-dates the new Ide

i used the  same library in a post i did a couple of weeks ago using the new IDE and it worked fine 

The 1st example doesn't change the Apps Script project, but instead does an oauth2 dance to get authorized to another project that holds the storage bucket. The second uses the default apps script project, but had no issue accessing another in the same organization.

Perhaps you'll find something of use in these writeups.

scrviz link to the library is here






--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/305b3e69-d43c-49b7-b5f4-7133dd1c3cabn%40googlegroups.com.

Tanaike

unread,
Mar 30, 2021, 7:31:06 AM3/30/21
to Google Apps Script Community
@Kim Nilsson, @Bruce Mcpherson Thank you for additional information.
Reply all
Reply to author
Forward
0 new messages