Service = discovery.build('drive', 'v3', credentials=credentials) Ĭredentials = service_service_account_file(secret_cred_file, scopes=SCOPES) The email address of the service account has been properly added to all folders in the shared drive.Īny idea? Basically all I need is to know when is the last time a sheet was modified by any given user. The account has access to all Cloud APIs, has Domain-wide Delegation with all scopes related to Drive API included in the API control menu in GSuite. However, when I use the same service account for the Drive API, it does not return any info on files outside its own folder (which contains only one file: "Getting Started"). I have created a service account in the GCP Drive API menu and it can access/edit/etc Google Sheets without any problem the via the Sheets API. The last time a Google Sheets file on a shared drive was modified. I have been trying to access some simple information on Google Shared Drive files from a Python 3.7 script:
0 Comments
Leave a Reply. |