dudinha-dedalus
dudinha-dedalus

Reputation: 304

Reseller API can't list Subscriptions with readonly scope

I'm developing a program to control our customers, using Google Apps Reseller API.

To not give too much access to the system, I'm trying to use the readonly scopes.

Trying to list the subscriptions sending

GET https://www.googleapis.com/apps/reseller/v1/subscriptions

with a token generate with the scope

https://www.googleapis.com/auth/apps.order.readonly 

gives me the error

{
  "error": {
    "code": 403, 
    "message": "Forbidden", 
    "errors": [
      {
        "domain": "global", 
        "message": "Forbidden", 
        "reason": "forbidden"
      }
    ]
  }
}

But if I use the scope

https://www.googleapis.com/auth/apps.order

(not a readonly scope) it works.

Is it a bug?

Upvotes: 1

Views: 243

Answers (2)

Richie Foreman
Richie Foreman

Reputation: 342

Currently, the readonly scope does not work. You'll need to use the read/write scope.

Upvotes: 1

Emily
Emily

Reputation: 1474

Yes it looks like a bug. We will triage internally.

Upvotes: 1

Related Questions