I’m trying to switch from using the main https://www.googleapis.com/auth/drive.readonly
scope that allows access to the entire Drive to the new more restricted one https://www.googleapis.com/auth/drive.meet.readonly
Everything is doing fine during the metadata listing of the file:
const drive = google.drive({ version: "v3", auth: googleAuth });
const metadataRes = await drive.files.get({
fileId: fileId,
fields: "name",
});
But when trying to get the content with the exact same file
const contentRes = await drive.files.export({
fileId: fileId,
mimeType: "text/plain",
});
Did anybody manage to get that new scope working when exporting the file content?
Looking at the doc, the drive.meet.readonly
scope is supposed to give export access: https://developers.google.com/drive/api/reference/rest/v3/files/export
Or is it just buggy?
3