I would never have found this. Thank you very much.
I changed the following (var url = ...):
' user@yourdomain.com /private/full/'
by
user + '/private/full/'
Where
user = Session.getActiveUser (). getUserLoginId ()
and also in googleOAuth_ I put my domain values:
oAuthConfig.setConsumerKey ("mydomain.com"); oAuthConfig.setConsumerSecret ("xXxXxXxXxXxXxXxXx");
And it works great!
I am very interested that the domain administrator can act on behalf of the user (as soon as we gave permission) with some documents of the organization, but was created by the user.
Also user resources (documents, spreadsheet, ...) so that the program can access (working with administrator permissions) without requiring attention (or you do not have enough experience) of the user, such as security copies, ...
In my case, I create a program for evaluating the form of Google Docs, which was created by the user (teacher), like the Flubaroo gadget, but in a graphical environment (GUI) programmed by Google Sites with Google Apps Script (GAS).
Thanks again for your time.
Sergi
source share