A
A
aminodovborisov2021-01-27 18:18:09
Google Workspace
aminodovborisov, 2021-01-27 18:18:09

Why does doGet not work correctly if I log in under a different domain?

Hello!
I have a script on Google Apps Script which is launched by a link.
When you follow a link to a script, as you know, authorization is required.
If the link is followed by a person logged in through %any-email%@gmail.com, then everything works fine. The script works as programmed and eventually returns an HtmlOutput.
But if the link is followed by a person logged in through some other domain, then HtmlOutput is not displayed. An error appears (see picture). The script itself works out everything as it should - it makes the necessary edits to the necessary sheets.
Moreover, sometimes this output works as it should, and sometimes it doesn’t. Patterns are not known.
Has anyone experienced this? How did you deal with it?
6011842c4cbf3847428629.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2021-01-27
@aminodovborisov

This application must be authorized by the system administrator. Well, or vice versa, the system administrator forbade the installation of any applications, except for those that he allowed.
Contact the administrator of the Google Workspace whose domain is having issues.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question