The Sheets API doesn't provide the ability to modify permissions. To do 
that you'll need to use the Drive API:

https://developers.google.com/drive/v3/web/manage-sharing

- Eric

On Wednesday, March 29, 2017 at 3:06:13 AM UTC-4, [email protected] wrote:
>
> Hi,
>
> I'm building an application that create a test containing a google sheet 
> link. The sheet is created using a service account and the issue I'm facing 
> is I cannot make the sheet available to everyone via the API call.
>
> Sheets.Spreadsheets.Create create = sheetsClient.spreadsheets().create(new 
> Spreadsheet());
> Spreadsheet spreadsheet = create.execute();
> return spreadsheet.getSpreadsheetUrl();
>
>
> Which works fine and gives me a valid SpreadsheetUrl. However, when I access 
> the url I get a request permission page, and since the link is created by a 
> service account 
>
> I cannot change the permission of the link. Is there a way I can set the 
> permission in the code? I also set the SCOPE to 
>
>
> SheetsScopes.SPREADSHEETS
>
>
> Thanks!
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Spreadsheets API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to