7
votes

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:

enter image description here

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?

1
Additionally, you can refer to this documentation on how to set-up a service account. Also, the scopes that was mentioned in the answer below.MαπμQμαπkγVπ.0

1 Answers

2
votes

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