Reputation: 110083
I am trying to create a service account in Google Cloud Platform that has Google Drive API access only. However, I cannot find the role at all:
Furthermore, if I create a 'general service account', then that user can add instances, etc. This has been a terrible security issue in the past, as users with that key have actually created unauthorized instances (thus the above question).
How would I create a service account that has access to Google Drive API, but nothing else?
Upvotes: 12
Views: 5310
Reputation: 137
I believe you enable the Google Drive API for your project. Then, you create a service account that has access to your project.
Once done, that service account should have access to all the APIs that have been enabled for your project.
To see if you have it enabled, go to: https://console.cloud.google.com/apis/api/drive.googleapis.com/credentials?project=
Upvotes: 1
Reputation: 170
If you want your service account should only access google drive, in admin.google.com panel,
Security >> Advanced Settings >> Manage API client access
Under type your service account ID and add google drive scope. You can find scopes here
Upvotes: 1