GAM-team / got-your-back

Got Your Back (GYB) is a command line tool for backing up your Gmail messages to your computer using Gmail's API over HTTPS.

Home Page:https://github.com/GAM-team/got-your-back/wiki

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Populating `quotaUser` on requests

kiwiz opened this issue · comments

commented

The issue tracker is for reporting product deficiencies. How do I questions should be posted to the discussion forum at https://groups.google.com/group/got-your-back. When in doubt, start at the discussion forum and return here only when instructed to do so.

Please confirm the following:
[x] I have upgraded to the latest GYB release from https://github.com/jay0lee/got-your-back/releases and I still have this issue.
[x] I am typing the command as described in the GAM Wiki at https://github.com/jay0lee/got-your-back/wiki

Full steps to reproduce the issue:

  1. Configure GYB via a service account
  2. Run GYB for multiple users
  3. Hit rate limits

Proposed improvement:
According to the docs, all Google APIs support a quotaUser parameter to specify the user rate limit bucket to charge requests against. When using a service account to perform exports, this should allow the account to take full advantage of the available rate limit buckets. From a quick review of the GYB source, it doesn't look like this parameter is populated anywhere.

Assuming my reasoning is correct adding this parameter would allow a service account to service more requests before hitting RLs.