Setting up a new team member today and I'm running into something odd. We are partners, not unfamiliar with GAM, and build APIs all the time.
We are doing 'gam oauth create' and enabled the reseller API, as well as the directory API but runinng gam info domain (debug output beow) still thinks that oauth doesnt contain the scope. check serviceaccount is working too:
The user clientid is allowed in our Google Workspace, and the user has permission to the partner console.
Why is the 403 forbidden happening? I feel like I'm missing something small but obvious. Any help greatly appreciated.
gam config debug_level 10 redirect stderr stdout info domain
connect: (
admin.googleapis.com, 443)
send: GET /$discovery/rest?version=directory_v1 HTTP/1.1
Host:
admin.googleapis.com content-length: 0
user-agent: GAM 7.43.04 -
https://github.com/GAM-team/GAM / GAM Team <
google-ap...@googlegroups.com> / Python 3.14.4 final / macOS-26.4.1-arm64-arm-64bit-Mach-O arm64 /
x-goog-api-client: cred-type/u
authorization: Bearer *****
accept-encoding: gzip, deflate
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Encoding: gzip
header: Date: Tue, 12 May 2026 13:05:00 GMT
header: Server: ESF
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
header: Transfer-Encoding: chunked
send: GET /admin/directory/v1/customers/my_customer?prettyPrint=true&alt=json HTTP/1.1
Host:
admin.googleapis.com accept: application/json
accept-encoding: gzip, deflate
user-agent: GAM 7.43.04 -
https://github.com/GAM-team/GAM / GAM Team <
google-ap...@googlegroups.com> / Python 3.14.4 final / macOS-26.4.1-arm64-arm-64bit-Mach-O arm64 / (gzip)
x-goog-api-client: gdcl/2.195.0 gl-python/3.14.4 cred-type/u
content-length: 0
authorization: Bearer *****
reply: 'HTTP/1.1 403 Forbidden\r\n'
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Type: application/json; charset=UTF-8
header: Content-Encoding: gzip
header: Date: Tue, 12 May 2026 13:05:01 GMT
header: Server: ESF
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
header: Transfer-Encoding: chunked
ERROR: JSON: {'error': {'code': 403, 'message': 'Not Authorized to access this resource/api', 'errors': [{'message': 'Not Authorized to access this resource/api', 'domain': 'global', 'reason': 'forbidden'}]}}
ERROR: Not Authorized to access this resource/api
ERROR: Reauthentication is needed, please run
gam oauth create