Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin SDK - Reseller API: Insufficient permissions #40

Closed
smatoto opened this issue Sep 12, 2018 · 0 comments
Closed

Admin SDK - Reseller API: Insufficient permissions #40

smatoto opened this issue Sep 12, 2018 · 0 comments
Assignees

Comments

@smatoto
Copy link

smatoto commented Sep 12, 2018

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()))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants