I am having hard times understanding permission on the google drive api. With the current service account (owner role) with a broad scope (https://www.googleapis.com/auth/drive, which should cover all). I have no problems mainpulating files, files permissions, etc..
Once I get into the drive/teamDrive, things get stuck; everything is forbidden except listing.
Ex.:
https://developers.google.com/drive/api/v3/reference/drives/create
When trying, it invariably returns the following :
{
"error": {
"code": 403,
"message": "The user does not have sufficient permissions for this file.",
"errors": [
{
"message": "The user does not have sufficient permissions for this file.",
"domain": "global",
"reason": "insufficientFilePermissions"
}
]
}
}
According to the doc, the are no specific permissions for drive/teamDrive