-
Notifications
You must be signed in to change notification settings - Fork 923
Admin SDK - Reseller API: Insufficient permissions #40
Copy link
Copy link
Closed
Description
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
- 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()))
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels