I have been using valmerge google apps script with my team. We have been using it in a common google spreadsheet. But abruptly they are not able to run the script. It gives an error "you are not authorised". Whereas when I tried to share the same doc with other email addresses it worked fine for them.
What could be an issue that only on couple of email addresses it is giving an authentication issue and not on others ?
Any pointer is greatly appreciated..
Thanks!
I think this is related to an issue I have opened recently. Please take a look and "star" it to keep track of updates and kind of vote for it.
Related
Hellos, I was wondering if anyone knew how to monitor server status for Google Apps Script?
It seems to have gone down today, and none of my apps worked for over an hour...
Looking at Google's server status page doesn't indicate any problems with Google Sheets, but this isn't the sheet itself, but rather the execution of the code embedded in the sheet. https://support.google.com/a?hl=en&pli=1#topic=7570177&contact=1
Any suggestions so we can monitor this more closely?
Just to follow up on this, I was unable to get any answers from Google, and the problem went away after about an hour.
It's still troubling that there is no way to know when the service goes down.
I've create a spreadsheet with a script for copy some other spreadsheet with a script inside, this worked fine for a moment.
But for several days all my scripts, on all news spreadsheets copied, they doesn't worked and they blocked when a complex line come (For example : DriveApp.getFileById(id))
(I say complex for script when onEdit, onOpen or other function can't run the line)
After somes researchs and reflexions, I think the problem come from the settings of my domain (G Suit), because when I use a new spreadsheet's script on an other account, they doesn't work, but if I use my old spreadsheet's scripts, they does work fine. I'm not sure.
The error messages I receive (it's when the script is out of time) are :
- An error has occurred on the server. We apologize and invite you to try
again later.
- Exceeded authorized execution time
I've tried to create a new spreadsheet and rewrite the script manually but I got the same error.
I'm not sure if it's only my domain, probably Google got some error too (But after 5 days it's strange).
Please, someone can help me, for say me if it's a problem with google, my domain or any other way.
(Sorry for my bad english)
Thanks in advance
Check the answer I've provided here.
You'll just have to enable Drive API for the project and from the Google Dev console.
I am having trouble finding a saved script. I followed this post to create a script that schedules email deletion, and I believe I saved it, but searched for it in Drive to no avail. The script is still running because emails are being deleted.
Things I've tried
I've read other posts that mention tracking down the spreadsheet that a script is attached to, but I didn't create a spreadsheet (unless scripts are all mysteriously attached to a spreadsheet).
I searched Drive.
I attempted to visit script.google.com while signed into my account. It said that I need permission and that I need to ask the owner for access. This is a work account managed by Google Apps. I asked my admin and he can't access script.google.com either. The only thing I can think of that's worth mentioning is that we changed domains at one point, but I can't see how that would affect ownership or permission.
So, two questions really:
Where is the script?
Who is the owner of the account?
Any help would be appreciated.
Don't know if it helps but you can try by accessing this link:
https://drive.google.com/drive/u/0/search?q=type:script
Also if you have a google apps account recheck with the admin if he has given you access.
Recheck your permissions at:
https://security.google.com/settings/security/permissions?pli=1
In there you can try to find the script if you ever ran it using your account.
Also might worth to take a look into this dev article:
https://developers.google.com/apps-script/guides/services/authorization#authorization_lifecycle_for_add-ons
Hope it helps!
You can also try visiting the Google Dashbboard at:
https://script.google.com/home/
This is another link to try in Google Drive, which will find all files in your Drive of type script, and restrict to those owned by you.
https://drive.google.com/drive/u/0/search?q=type:script%20owner:me
I wrote a script for a google spreadheet which is run by clicking on an image embedded in the spreadsheet.
Everybody with the link to the spreadsheet can edit it (except some areas with formulas etc. which are protected).
When I'm logged in with my google account, everything works fine, but when I log out and try using the spreadsheet like a "normal" user, nothing happens when I hit the image.
I didn't find anything in the options regarding "script sharing" etc.
Would be awesome if someone could give me a hint (I'm quite new to google script...).
Thanks for your answers!
Vincent
Anonymous users can't run scripts. By design. Protected ranges, sharing and all the rest of it have nothing to do with your problem.
The user - whoever they happen to be - must be logged in to run any script. Scripts will simply be ignored for anonymous users.
So the solution in your case is to tell all your users that they must log in before being able to run a script.
I have a frustrating Script Editor problem, I'm sure I'm doing something simple wrong - would be glad for any advice!
I select script editor (from within google spreadsheets):
Then I reach the permission denied error, suggesting I request access:
However, I am the owner of this spreadsheet, and I'm not receiving any permission emails:
So, any idea what's going on? I'm not receiving any emails after requesting permission.
Being owner of the spreadsheet does not necessarily mean you are the owner of the script. Try to find out who is the owner of the script and ask them to share the script with you.
While you will be able to view and edit the script, you'll still not be able to do some priviledged tasks such as depoying as a webapp, managing versions.
I can think of a couple of basic things that may cause issues...
Are you signed in to multiple accounts within the same browser? Some odd things can happen when multiple, enterprise and personal accounts are signed in at once.
I would clear your browsing data, ensure only one account is signed in and try again :)