Limit on number of GAM commands in powershell script?

24 views
Skip to first unread message

JAYTON RIZZO

unread,
Dec 17, 2025, 12:50:58 PM (2 days ago) Dec 17
to GAM for Google Workspace
I just posted here, but can't seem to find my previous post, so here's a new thread and I just hope that my other one isn't still out there. Anyway.

I've got a powershell script that calls GAM for user onboarding, is there a limit to the number of GAM calls that I can make inside a script before GAM just stops working for some reason? the last update command in the script doesn't get executed regardless of what it is.

Automated System

unread,
Dec 17, 2025, 1:26:43 PM (2 days ago) Dec 17
to google-ap...@googlegroups.com
Hello,

We have received your email regarding: "[GAM] Limit on number of GAM
commands in powershell script?".

Your request has been logged in our system.
UNIQUE CODE: REF-3F962B-25

Please keep this code for your records.

Trent Watson

unread,
Dec 18, 2025, 9:10:59 AM (yesterday) Dec 18
to GAM for Google Workspace
Your old thread is still out there, but that happens man! You can always go to groups.google.com and see... everything. It is useful for searching for solutions other people have found.

For this issue.. I have used gam is some pretty big foreach loops in PowerShell and not had an issue. It is possible that you would hit an API limit, but that seems odd. Have you tried putting your script in a try catch block and seeing what it throws? Ross also asked to meet in your other thread and I'm sure he could help you out.
Reply all
Reply to author
Forward
0 new messages