From e994c769a6aed165d45233c57cc129981516c052 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Wed, 7 Aug 2024 15:10:59 +0000 Subject: [PATCH] Allow drive.file clientaccess scope todrive actions for reports often only need to create drive files, not read other files. drive.file scope limits GAM to being able to create files and read just those files. --- src/gam/gamlib/glapi.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gam/gamlib/glapi.py b/src/gam/gamlib/glapi.py index c8af25c6..63debb11 100644 --- a/src/gam/gamlib/glapi.py +++ b/src/gam/gamlib/glapi.py @@ -499,6 +499,10 @@ _TODRIVE_CLIENT_SCOPES = [ 'api': DRIVE3, 'subscopes': [], 'scope': DRIVE_SCOPE}, + {'name': 'Drive File API - todrive_clientaccess', + 'api': DRIVE3, + 'subscopes': [], + 'scope': 'https://www.googleapis.com/auth/drive.file'}, {'name': 'Gmail API - todrive_clientaccess', 'api': GMAIL, 'subscopes': [],