Y2i
Y2i

Reputation: 3868

PERMISSION_DENIED when calling REST runQuery Datastore API from Android as a project non-owner

I'm trying to run runQuery REST method from an Android App. The query runs and returns correct results if I log-in using a project owner account. If I login using a non-project owner account, I'm getting a PERMISSION_DENIED response:

{
   "error": {
      "errors": [
         {
            "domain": "global",
            "reason": "PERMISSION_DENIED",
            "message": "Unauthorized."
         }
      ],
      "code": 403,
      "message": "Unauthorized."
   }
}

My goal is to be able to run queries as non-project owner. Is it possible?

Thank you!

Upvotes: 0

Views: 55

Answers (1)

Ed Davisson
Ed Davisson

Reputation: 2927

The Cloud Datastore API currently requires the caller to be in one of the admin roles on the project.

Upvotes: 1

Related Questions