I am being tasked to assist my old team with getting information on forwarding
$ gam all users print forwardingaddress todrive
Getting all Users in Google Workspace account (may take some time on a large account)...
Got 21476 Users...
done getting 21476 Users.
ERROR: 400: Mail service not enabled - serviceNotAvailable
So I ran this command on myself and it is able to send a sheet to drive
PROD [amarks@ausc-toolbox1 ~]$ gam user amarks print forwardingaddress todrive
Drive file uploaded to:
https://docs.google.com/spreadsheets/d/1Q-HXS1JbM3Y5D6yH1xxxxxxxxxxxxxxxxxxxx/edit?usp=drivesdk
So i checked my service account and all is well (note I rotated my key since it wasnot used for a long time) What am i missing here?
PROD [amarks@toolbox1 ~]$ gam user amarks check serviceaccount
Computer clock status:
Your system time differs from admin.googleapis.com by less than 1 second PASS
Service Account Private Key Authentication:
Authenticating... PASS
Checking key age. Google recommends rotating keys on a routine basis...
Key is 0 days old PASS
Domain-Wide Delegation authentication as ama...@indeed.com:
https://www.googleapis.com/auth/apps.alerts PASS
https://www.googleapis.com/auth/calendar PASS
https://www.googleapis.com/auth/cloud-identity PASS
https://www.googleapis.com/auth/drive PASS
https://www.googleapis.com/auth/drive.activity PASS
https://www.googleapis.com/auth/gmail.settings.basic PASS
https://www.googleapis.com/auth/gmail.settings.sharing PASS
https://www.googleapis.com/auth/spreadsheets PASS
All scopes passed!
Service account xxxxxxxxxx is fully authorized.
--
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 on the web visit https://groups.google.com/d/msgid/google-apps-manager/9d660614-99b5-479d-8412-1dd794c664d6n%40googlegroups.com.
The same command will work: gam all users print forwardingaddress todrive
You can speed it up by introducing parallel processing
gam config auto_batch_min 1 redirect csv - multiprocess todrive all users print forwardingaddressTo view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/66d0a1c0-3aef-484b-a98f-3dba29c7a657n%40googlegroups.com.
User: ama...@indeed.com, Service not applicable/Does not exist, I have two forwards I set up as a test.
Do I have a missing scope?
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/7e469a68-6054-403f-a519-aa8209d4417en%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/7e469a68-6054-403f-a519-aa8209d4417en%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/b2bb5cb4-ab71-4dd4-b1a3-963cdca77d22n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS_wOF4z%2B5nx1nFVXrFvDnGLVBWjaQEtR%2BVq_Rm04Wv%2B0Q%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CA%2BQ8pe-qHguAWKotiHtMqdSMhCu6T8zbKxB0jnrxVM9uWui7yw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-manager/CAJkvRS9L5iG1%2BGnHj7CSmnWORdGWX2_Q7sC%3DCTmJac42n2H4LQ%40mail.gmail.com.