Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to set project name in the "grant permissions" dialog for Google Apps Script Add-on

I have an add-on for Google Sheets that's currently being tested within my domain. For this post, let's call it My First Add On. When users install the add-on they're prompted for permissions, but it always appears as "Untitled project" in the dialog box:

Screenshot: Sign in with Google prompt

The project name is set to My First Add On everywhere I can find:

  • The Google Apps script project name
  • The Google Cloud Platform project name (IAM > Settings)
  • The Google Chrome Web Store add-on name (Developer Dashboard)

My add-on is published with 'private' visibility, available only to people in a given Google Group (my trusted testers).

I've searched through documentation and forums to see what I'm missing here, but can't find anything that covers this scenario.

This has to be something basic, but I'm completely stuck and the only support option available to me is to post here. I'd be grateful for any help, folks!

like image 514
Mathew Avatar asked May 01 '18 12:05

Mathew


People also ask

Why do I need to grant access to my script projects?

If you want to let third-party applications manage the content or deployment of your script projects, you must grant access to your script projects. If you want to use the Apps Script API inside your app, you must enable the Apps Script API in your application's GCP project.

What happens when a project web app permission is disabled?

If a Project Web App permission is disabled on this page, the equivalent global or category permission is disabled for users throughout Project Web App. All permissions on this page are enabled by default.

How do I enable the Apps Script API for my project?

When you run the code for the first time, you'll get a prompt to authorize the permissions. But even after you authorize the permissions, you'll still need to go to the developers console and enable the Apps Script API for the project.

How do I grant permissions to members of a project?

Select all the projects for which you want to grant permissions. Click Show info panel, followed by the Permissions tab. Enter an email address in the New members field, and select the desired role from the dropdown menu. Click Save.


Video Answer


1 Answers

I've seen something similar, where the name of the script isn't updated if you test it before saving the name (ie, create a name when prompted rather than before testing). Try clearing your cache, closing out of the tab, etc, and then launching again. I'm not sure it's something you can fix in code or listings anywhere.

like image 120
Brian Avatar answered Oct 01 '22 02:10

Brian