Failed to access Google file. Files with a service account.

I’m working on uploading a file to Google Drive with a service account, I can paste the file into Google Drive, but I can’t view this file in Google Drive.

I create ABC@gmail.com. create a service account using ABC@gmail.com. with a P12 certificate and Service Client email id, I can insert the file to disk. But it was not possible to see this file on Google’s ABC@gmail.com disk. While the list of files from the application will display 5 files, but on my disk ABC@gmail.com contains only 1 file.

Question

  • How can I view the downloaded file in Google Drive with a service account
  • The file was uploaded successfully, while I can see the files in ABC@gmail.com Google Drive
+1
source share
1 answer

The service account has a separate drive (and everything else), which can only be seen through the api, and not through the web interface. Why are you using a service account? Thats for other occasions. Use regular 3-night oauth on this gmail account to get an update token so you can put it as an owner. Otherwise, continue to do what you are doing, but also share it with this email so you can see it on this drive "share with me."

0
source

All Articles