Getting User Rate Limit Error

547 views
Skip to first unread message

Lakshmanan V

unread,
Aug 10, 2021, 12:35:44 PM8/10/21
to google-ap...@googlegroups.com
Hi Team,

I am trying to run the below command, but after reaching 44K getting user rate limit error, how to overcome this problem.

                    gam all user show imap > userimapstatus.csv 

User: p...@xxxxxxx.com, Service not applicable/Does not exist (44645/63151)
User: pnxxxx...@xxxxxxx.com, Service not applicable/Does not exist (44654/63151)
User: poxxxx...@xxxxxx.com, Service not applicable/Does not exist (44659/63151)
User: pxxx...@sxxxxxxq.com, Service not applicable/Does not exist (44671/63151)
User: pxxx...@sxxxxxxxxxxxxq.com, Service not applicable/Does not exist (44672/63151)
User: px...@xxxxxq.com, Service not applicable/Does not exist (44685/63151)
User: polx...@xxxxxxq.com, Service not applicable/Does not exist (44686/63151)
User: poxxxx...@xxxxxxxxxx.com, Service not applicable/Does not exist (44797/63151)
Temporary error: rateLimitExceeded - User-rate limit exceeded.  Retry after 2021-08-10T13:04:52.399Z, Backing off: 16 seconds, Retry: 4/10
Temporary error: rateLimitExceeded - User-rate limit exceeded.  Retry after 2021-08-10T13:04:52.399Z, Backing off: 32 seconds, Retry: 5/10
Temporary error: rateLimitExceeded - User-rate limit exceeded.  Retry after 2021-08-10T13:04:52.399Z, Backing off: 60 seconds, Retry: 6/10
Temporary error: rateLimitExceeded - User-rate limit exceeded.  Retry after 2021-08-10T13:04:52.399Z, Backing off: 60 seconds, Retry: 7/10
Temporary error: rateLimitExceeded - User-rate limit exceeded.  Retry after 2021-08-10T13:04:52.399Z, Backing off: 60 seconds, Retry: 8/10
Temporary error: rateLimitExceeded - User-rate limit exceeded.  Retry after 2021-08-10T13:04:52.399Z, Backing off: 60 seconds, Retry: 9/10

ERROR: 429: rateLimitExceeded - User-rate limit exceeded.  Retry after 2021-08-10T13:04:52.399Z

Jay Lee

unread,
Aug 10, 2021, 12:40:46 PM8/10/21
to google-ap...@googlegroups.com
Interesting that the API is now returning a "retry after" time. How far in the future is that time it's saying to try after? (Note that it's universal timezone that it's showing)

Jay Lee


--
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/CAE-X_uzj0EWsPyPfvn6%2BS4u1_ZRwR_%2BU5VuYzwMVc9htJsbvpA%40mail.gmail.com.

Lakshmanan V

unread,
Aug 10, 2021, 1:10:33 PM8/10/21
to google-ap...@googlegroups.com
Hi Jay,

Even I tried it pausing every day after 2 to 4 hours and continue next day, like that 3 days, even I am getting same error.

If I run continuously one day also getting same error.

Using gam adv xtd3 version 6.04.04

Jay Lee

unread,
Aug 10, 2021, 1:13:40 PM8/10/21
to google-ap...@googlegroups.com
What I'm asking is how far in the future is the time that the error is saying to wait?

Jay Lee


Lakshmanan V

unread,
Aug 10, 2021, 1:57:55 PM8/10/21
to google-ap...@googlegroups.com
Hi Jay,

Just 5 mins after asking to retry

Jay Lee

unread,
Aug 10, 2021, 2:00:55 PM8/10/21
to google-ap...@googlegroups.com
OK, I'm trying to reproduce.

Jay Lee


Jay Lee

unread,
Aug 10, 2021, 2:12:35 PM8/10/21
to google-ap...@googlegroups.com
So one thing is you seem to be running the command for a lot of users that don't actually have Gmail service enabled. Can you reduce the users you are running the command against to just users with Gmail service enabled?

Jay Lee

Lakshmanan V

unread,
Aug 10, 2021, 2:29:07 PM8/10/21
to google-ap...@googlegroups.com
Hi Jay,

Can you guide me how to do that

Jay Lee

unread,
Aug 10, 2021, 2:36:17 PM8/10/21
to google-ap...@googlegroups.com
It depends how you are enabling / disabling Gmail service for users. In an ideal world you'd be enabling the service by group membership and then instead of running "gam all users ..." you'd run "gam group svc-gmail show imap" or whatever..

Jay Lee


Brian Kim

unread,
Aug 10, 2021, 2:37:36 PM8/10/21
to GAM for Google Workspace
Since you are using GAMADV-XTD3, there are a few ways to do it instead of all users

For example, if you had Enterprise Plus licenses assigned to your users who also have Gmail enabled

gam license enterprise show imap

If you use OU or groups to turn services on/off, you can use other collections of users.

Lakshmanan V

unread,
Aug 10, 2021, 4:00:32 PM8/10/21
to google-ap...@googlegroups.com

Kim Nilsson

unread,
Aug 12, 2021, 2:43:04 AM8/12/21
to GAM for Google Workspace
AAAAAHHHHH, I've seen this twice now!

Brian, I see that you are using the license option to produce a list of users. That's brilliant! :-)

Just wish it was possible to print users with their licences, so I could use filtering. Sadly, license isn't a user attribute.

/Kim

Ross Scroggs

unread,
Aug 12, 2021, 9:23:41 AM8/12/21
to google-ap...@googlegroups.com
Happiluy there is with Advanced GAM:
gam redirect csv userslicenses.csv print users fields primaryemail,name licenses

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.
Reply all
Reply to author
Forward
0 new messages