Skip to content

Admin SDK - Reseller API: Insufficient permissions #40

@smatoto

Description

@smatoto

Expected Behavior

Get resources from G Suite Reseller API

Actual Behavior

Python sample code for Admin SDK - Reseller API returns the following error:

HttpError 403 when requesting https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/login?maxResults=10&alt=json returned "Insufficient Permission"

Steps to Reproduce the Problem

  1. Just follow the steps from https://developers.google.com/admin-sdk/reseller/v1/quickstart/python

Specifications

  • Python version: 3.6.5
  • OS: Windows

Root cause

The sample code shows scopes that are for Admin SDK - Reports API (starts at line 33)

service = build('admin', 'reports_v1', http=creds.authorize(Http()))

Code should instead use the following (and adjustments must be made to call the correct resource from Reseller API):

service = build('reseller', 'v1', http=creds.authorize(Http()))

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions