Error 403: Insufficient Permission

16,773 views
Skip to first unread message

Marcos Ferreira da Silva

unread,
Dec 20, 2013, 11:27:01 AM12/20/13
to google-ap...@googlegroups.com
I'm using the gam-3:03 and I enabled the following options in the google API panel.
  • Admin SDK
  • Audit API
  • Groups Settins API
I start early gam choose the options:

8  : Admin Settings API
9  : Groups Settings API
11 : Audit Reports API 

When I finish shows the error:

Error 403: Insufficient Permission - insufficientPermissions

If I run from the command line I get the same error

gam.py info domain
Google Apps Domain: uniube.br
Error 403: Insufficient Permission - insufficientPermissions



Can someone help me?

Jay Lee

unread,
Dec 20, 2013, 12:20:08 PM12/20/13
to google-ap...@googlegroups.com
Is the user you authenticated as a Super Admin?


Regards,

Jay Lee
Director of Google Apps Deployments   |  Dito


--
You received this message because you are subscribed to the Google Groups "Google Apps Manager" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/36ed7d65-0335-4de8-99f9-8bac152c1f5a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Marcos Ferreira da Silva

unread,
Dec 20, 2013, 12:34:11 PM12/20/13
to google-ap...@googlegroups.com
I am using superadmin user.

______________________________
Marcos Ferreira da Silva
Analista de Suporte em TI  -  LPIC-2 
TI Suporte - gerência e suporte em TI
Uberlândia - MG    (34) 9154-0150

 


2013/12/20 Jay Lee <j...@ditoweb.com>

--
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Manager" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/rtRUZ-lb0L4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.

Karl

unread,
Feb 1, 2014, 11:41:34 AM2/1/14
to google-ap...@googlegroups.com
Got the same error, this solved it for me:

In the Google Admin panel do the following:
Security->Advanced 
settings->Authentication->Manage third party OAuth Client access

And delete if theres anything like this "380063494358.apps.googleusercontent.com

Try to connect gam again, and it worked for me
2013/12/20 Jay Lee <j...@ditoweb.com>
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-manager+unsub...@googlegroups.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Manager" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-manager/rtRUZ-lb0L4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-apps-manager+unsub...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.

Marcos Ferreira da Silva

unread,
Feb 27, 2014, 9:35:12 AM2/27/14
to google-ap...@googlegroups.com
Now I am trying with version 3.04.
I am trying to activate the delegation of email to another user. 
In version 2 works but this version 3 could never make it work.
Always appears the message "Error 403: Insufficient Permission - insufficientPermissions"

______________________________
Marcos Ferreira da Silva
Analista de Suporte em TI  -  LPIC-2 
TI Suporte - gerência e suporte em TI
Uberlândia - MG    (34) 9154-0150

 


To unsubscribe from this group and all its topics, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.

Jay Lee

unread,
Feb 27, 2014, 9:49:08 AM2/27/14
to google-ap...@googlegroups.com
Try running:

gam oauth revoke

and then rerunning a command like "gam info domain". This time leave all APIs selected, just choose the last option to continue.



Regards,

Jay Lee
Director, Apps Deployments   |  Dito
☎ (267) 712-9533  |  ✉ j...@ditoweb.com

  


To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.

To post to this group, send email to google-ap...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-apps-manager.

Marcos Ferreira da Silva

unread,
Feb 27, 2014, 10:00:47 AM2/27/14
to google-ap...@googlegroups.com
I revoked but showed the same errors. 
I deleted and created the OAuth.

./gam.py info domain

Select the authorized scopes for this token. Include a 'r' to grant read-only access or an 'a' to grant action-only access.

[ ]  0)  Group Directory API (supports read-only)
[ ]  1)  Organizational Unit Directory API (supports read-only)
[ ]  2)  User Directory API (supports read-only)
[ ]  3)  Chrome OS Device Directory API (supports read-only)
[ ]  4)  Mobile Device Directory API (supports read-only and action)
[ ]  5)  User Email Settings API
[ ]  6)  Calendar Resources API
[ ]  7)  Audit Monitors, Activity and Mailbox Exports API
[*]  8)  Admin Settings API
[*]  9)  Groups Settings API
[ ] 10)  Calendar Data API (supports read-only)
[*] 11)  Audit Reports API
[ ] 12)  Usage Reports API
[ ] 13)  Drive API (create report documents for admin user only)
[ ] 14)  License Manager API
[ ] 15)  User Security Directory API
[ ] 16)  Notifications Directory API
[ ] 17)  Site Verification API

     18)  Select all scopes
     19)  Unselect all scopes
     20)  Continue
20
Go to the following link in your browser:


Enter verification code: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Authentication successful.
Google Apps Domain: xxxxxx.xxx
Error 403: Insufficient Permission - insufficientPermissions



______________________________
Marcos Ferreira da Silva
Analista de Suporte em TI  -  LPIC-2 
TI Suporte - gerência e suporte em TI
Uberlândia - MG    (34) 9154-0150

 


Marcos Ferreira da Silva

unread,
Feb 27, 2014, 12:21:00 PM2/27/14
to google-ap...@googlegroups.com
At google apis page:

Dashboard

Project Summary Name API Project
Project Domain xxxxx.xx
Project Number 012345678901
Project ID Register...
Google+ Page Request connection
Owners xxxx@xxxxx.xx - you

Service Status
Admin SDK No known issues

API Access

Product name: GAM
Google account: x...@xxxxx.xx
Home page URL:

Client ID for installed applications
Client secret: 000000000000000000000000
Redirect URIs: urn:ietf:wg:oauth:2.0:oob http://localhost

Simple API Access

API key: 2222222222222222222_333333333_444444444
Referers: Any referer allowed
Activated on: Sep 27, 2013 6:44 AM
Activated by: x...@xxxxx.xx – you

Notification Endpoints

Allowed Domains: No domains allowed


I created a new "Client ID for installed applications" and I downloaded the json file.

gam-3.04]# python gam.py info domain

Select the authorized scopes for this token. Include a 'r' to grant read-only access or an 'a' to grant action-only access.

[ ]  0)  Group Directory API (supports read-only)
[ ]  1)  Organizational Unit Directory API (supports read-only)
[ ]  2)  User Directory API (supports read-only)
[ ]  3)  Chrome OS Device Directory API (supports read-only)
[ ]  4)  Mobile Device Directory API (supports read-only and action)
[ ]  5)  User Email Settings API
[ ]  6)  Calendar Resources API
[ ]  7)  Audit Monitors, Activity and Mailbox Exports API
[*]  8)  Admin Settings API
[ ]  9)  Groups Settings API
[ ] 10)  Calendar Data API (supports read-only)
[ ] 11)  Audit Reports API
[ ] 12)  Usage Reports API
[ ] 13)  Drive API (create report documents for admin user only)
[ ] 14)  License Manager API
[ ] 15)  User Security Directory API
[ ] 16)  Notifications Directory API
[ ] 17)  Site Verification API

     18)  Select all scopes
     19)  Unselect all scopes
     20)  Continue

Go to the following link in your browser:


Enter verification code: 11111111111111111111111111111111111111111111111111111111111111
Authentication successful.
Google Apps Domain: xxxxxx.xx
Error 403: Insufficient Permission - insufficientPermissions

______________________________
Marcos Ferreira da Silva
Analista de Suporte em TI  -  LPIC-2 
TI Suporte - gerência e suporte em TI
Uberlândia - MG    (34) 9154-0150

 


Jay Lee

unread,
Feb 27, 2014, 12:55:19 PM2/27/14
to google-ap...@googlegroups.com
The "gam info domain" command needs at least read access to users (option 2r) in order to work properly.

I strongly suggest you start with all scopes selected while getting familiar with GAM. Once you've got the basics down you can play with limiting GAM to the least permissions needed for your scripts.


Regards,

Jay Lee
Director, Apps Deployments   |  Dito
☎ (267) 712-9533  |  ✉ j...@ditoweb.com

  


Marcos Ferreira da Silva

unread,
Feb 27, 2014, 1:14:15 PM2/27/14
to google-ap...@googlegroups.com
Now I got successfull.

Authentication successful.
Google Apps Domain: xxxxxx.xx
Customer ID: 00000000
Default Language: pt_BR
Organization Name: webmail xxxxxx
Maximum Users: 3000
Current Users: 2478
Domain is Verified: true
Domain Edition: education
Customer PIN: 111111111
Domain Creation Time: 2008-12-16 04:05:25 -0800
Domain Country Code: BR
MX Verification Verified: true
MX Verification Method: mx
SSO Signon Page:
SSO Logout Page:
SSO Password Page:
SSO Enabled: false
SSO Whitelist IPs:
SSO Use Domain Specific Issuer: false
User Migration Enabled: true
Outbound Gateway Smart Host: None
Outbound Gateway SMTP Mode: None

But when I try to delegate I receive an error.

 gam-3.04]# python gam.py user  xx...@xxxxx.xx delegate to y...@xxxxx.xx
Giving y...@xxxxx.xx delegate access to x...@xxxxx.xx (1 of 1)
Error: 600: Unknown Error: {'status': 401, 'body': '<HTML>\n<HEAD>\n<TITLE>Token invalid - AuthSub token has wrong scope</TITLE>\n</HEAD>\n<BODY BGCOLOR="#FFFFFF" TEXT="#000000">\n<H1>Token invalid - AuthSub token has wrong scope</H1>\n<H2>Error 401</H2>\n</BODY>\n</HTML>\n', 'reason': 'Token invalid - AuthSub token has wrong scope'}


______________________________
Marcos Ferreira da Silva
Analista de Suporte em TI  -  LPIC-2 
TI Suporte - gerência e suporte em TI
Uberlândia - MG    (34) 9154-0150

 


Jay Lee

unread,
Feb 27, 2014, 2:03:56 PM2/27/14
to google-ap...@googlegroups.com
Are both addresses users within the Google Apps domain and are their acounts not suspended or requiring a password change?


Regards,

Jay Lee
Director, Apps Deployments   |  Dito
☎ (267) 712-9533  |  ✉ j...@ditoweb.com

  


Marcos Ferreira da Silva

unread,
Feb 27, 2014, 3:02:32 PM2/27/14
to google-ap...@googlegroups.com
Enabling all options worked.
But a only need an option to delegate an account to another user.
What the options that I have to ckeck to enable only what I want?

I discovered that the new google panel disabled my delegate option that was checked in old version.

______________________________
Marcos Ferreira da Silva
Analista de Suporte em TI  -  LPIC-2 
TI Suporte - gerência e suporte em TI
Uberlândia - MG    (34) 9154-0150

 


Reply all
Reply to author
Forward
0 new messages