I've an app script that create a PDF file, and return the download url to the client, but the file is not downloadable if the user does not have access.
I got this url generated by the code below, how can I make it downloadable regardless for any one click it.
SpreadsheetApp.flush();
var theBlob = destSpreadsheet.getBlob().setName(REPORT);
var newFile = folder.createFile(theBlob);
var link = newFile.getDownloadUrl()
//Delete the temporary sheet
DriveApp.getFileById(destSpreadsheet.getId()).setTrashed(true);
return link;