Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Drive API - Insufficient permissions to delete a file with service account

wugge
New Member

Hi,

I'm using googleapi's node package to upload files to my google drive with a service account.

Uploading works fine, but when I try to delete a file I get the following Error:

"Error: The user does not have sufficient permissions for this file."

The directory is shared (as a Content Manager) to the email of the service account user. I couldn't find a way to give the service account more permissions to be able to delete a file.

What is the proper way of doing this?

 

Thanks in advance,

Wugge

 

0 5 7,669
5 REPLIES 5