问题
I have :
- an apps script attached to a google doc hosted on my Drive.
- a GCP project
- a team drive
I need to deploy the apps script as an API executable. To do this, the app script needs to be attached to a GCP project so in the apps script I went to Resources > Cloud Platform project, typed in my GCP project number in the "Change Project" field, clicked changed project and everything worked perfectly.
What I am trying to do now is the exact same thing but with the google doc and attached script in my Team Drive instead of in my drive. If I move it to the team drive, when I try to set up the GCP project in apps script in the same way that above, I got the following error message:
Project doesn't exist or you need edit access to it.
I guess it’s because when I move my file to the team drive I’m not the owner of it anymore so I can’t access the GCP project. But then how do I modify permissions to manage to do this ? I thought about adding a user to the GCP IAM with the good rights but is there a specific user for a team drive ?
回答1:
There are specified access in each member of the team drive.
If you are not one of the Manager and Content Manage, you are not allow to move files and folders within a Team Drive.
来源:https://stackoverflow.com/questions/56573745/how-to-associate-a-team-drive-apps-script-with-a-gcp-project