Persistent "No Client Access Allowed" on GCE VM despite exhaustive setup checks (GAM 7.09.03, Debian 12, Service Account)
Hello GAM Community,
I'm trying to set up GAMADV-XTD3 (v7.09.03) on a fresh Google Compute Engine (GCE) VM running Debian 12 (Bookworm). I'm using a service account for authentication as per the secure GCE setup guide.
I am consistently encountering the following error with any GAM command (e.g., gam info domain):
What makes this particularly puzzling is that:
Here's a summary of what I've confirmed and double-checked (multiple times, including full clean reinstall attempts):
VM & GAM Installation:
GCP Configuration (Confirmed OK):
Google Workspace Domain-Wide Delegation (DWD):
Given that all standard troubleshooting steps have been exhausted, and the error persists with no debug output, I'm at a loss. Any insights or suggestions from the community would be greatly appreciated.
Thank you!
Vini Bettega
gam config enable_dasa true admin_email ad...@domain.com customer_id <Customer ID> domain domain.com save
Ross
--
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/e9c22e19-e5b9-4777-88c5-747c75f211abn%40googlegroups.com.
I attempted to configure GAM (v7.09.03) on my GCE VM (Debian 12) using the DASA (Domain-wide Authorization for Service Accounts) method, hoping to resolve the persistent ERROR: No Client Access allowed I've been facing with my service account and Domain-Wide Delegation (DWD).
Here's what was done for the DASA attempt:
gam.cfg was updated for DASA:
Initially, gam info domain produced "Not Compatible" errors:
Attempted to grant required IAM roles for DASA:
After granting "Owner" role, the error shifted back to 403 Forbidden: Running gam info domain with debug_level 4 (after setting enable_dasa = true and the "Owner" role) produced the following, very detailed 403 Forbidden error from the Admin API:
(Note: The oauth2_txt warning was still present even with this DASA attempt.)
Conclusion of DASA Attempt: The DASA method was not successfully configured, either due to the unavailability of necessary IAM roles or underlying permission issues that even the "Owner" role couldn't overcome in this context. The core problem of being "Not Authorized to access this resource/api" from the Google Workspace Admin API persists.
I have since reverted gam.cfg back to the traditional DWD configuration (i.e., enable_dasa = false, admin_email = '', service_account_delegation_email uncommented, customer_id = my_customer).
The problem remains. Any further insights on why this 403 Forbidden persists, especially with a DWD setup confirmed to be an exact copy of a working one, would be extremely valuable.
My last chance would be delete the DWD scopes and re-create it, as I mentioned before I copied all the scopes from another working GAM domain. Can someone point me somewhere I can get a DWD scope list and double check if I made a typo?