ybycode
ybycode

Reputation: 171

Test environment for the google drive API?

How to test safely an app that reads and writes to Google Drive using the API?

I created an app that runs on a server, that basically copies a template google doc to another directory, and then edits this new file.

In order to do that I:

Then the app impersonates a user of the domain (always the same user) to access the API resources.

This app works, but it has 2 problems:

Thanks!

Upvotes: 6

Views: 1715

Answers (2)

jds1993
jds1993

Reputation: 218

You can also change the sharing setting for just one organisational unit,doing that all the folders whose owners are part of that OU will be able to share it outside or your domain making that the SA have only access to those folders.

Upvotes: 2

pinoyyid
pinoyyid

Reputation: 22306

Drive does not have permissions based on folders. The closest you can get is by creating an additional Service Account and then share the folder(s) to that SA.

Upvotes: 2

Related Questions