Reputation: 69
Im trying to make an Oauth2 request with a service account to Firestore but it keeps saying Missing or insufficient permissions.
, I am using the scope https://www.googleapis.com/auth/datastore
. I can use the service account to write to the Google Sheets API. Any help is greatly appreciated
Upvotes: 0
Views: 549
Reputation: 69
I figured it out, under IAM in GCP console add your Service Account and give it the permissions according to: https://cloud.google.com/datastore/docs/access/iam. Then use the oauth scope: https://www.googleapis.com/auth/datastore
. I guess google decided it would be a good idea call Firebase, Datastore for the permissions.
Upvotes: 2