Authorizing Service Account

39 views
Skip to first unread message

JPAN ADMIN

unread,
May 12, 2025, 12:13:08 PMMay 12
to GAM for Google Workspace
Hey Folks,

Trying to set up Gam for the first time on a windows machine. I near the end of the steps found at https://github.com/GAM-team/GAM/wiki/How-to-Install-GAM7#windows
but I am unable to Enable GAM7 service account access. I keep getting the following error:

C:\>gam user jpan-...@cedar.com update serviceaccount

ERROR: Service Account OAuth2 File: C:\GAMConfig\oauth2service.json, Does not exist or has invalid format, ('Could not deserialize key data. The data may be in an incorrect format, the provided password may be incorrect, it may be encrypted with an unsupported algorithm, or it may be an unsupported key type (e.g. EC curves with explicit parameters).', [<OpenSSLError(code=503841036, lib=60, reason=524556, reason_text=unsupported)>])
Please run

gam create|use project
gam user <user> update serviceaccount

to create and authorize a Service account.

Whats wrong with my oauth2service.json file?
{
  "auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
  "auth_uri": "https://accounts.google.com/o/oauth2/v2/auth",
  "client_email": "gam-proj...@gam-project-g3s71.iam.gserviceaccount.com",
  "client_id": "redacted",
  "client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/gam-project-g3s71%redacted",
  "key_type": "default",
  "private_key": "",
  "private_key_id": "",
  "project_id": "gam-project-g3s71",
  "token_uri": "https://oauth2.googleapis.com/token",
  "type": "service_account"
}


Appreciate any advice.

Ross Scroggs

unread,
May 12, 2025, 12:17:04 PMMay 12
to google-ap...@googlegroups.com
It has no private key in it.

Try: gam upload sakey

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/873ace1b-ca42-4843-895d-15fb637dad2fn%40googlegroups.com.

Ross Scroggs

unread,
May 12, 2025, 2:13:48 PMMay 12
to google-ap...@googlegroups.com
Send me  private Meet/Zoom invitation and I'll help.

Ross
----
Ross Scroggs


Reply all
Reply to author
Forward
0 new messages