-
Notifications
You must be signed in to change notification settings - Fork 77
Set custom quota user to avoid throttling #34
Comments
Hey @morgante, it's unfortunately not really clear to me how to use this with the oauth clients in golang used in this provider. Any suggestions or links? I tried searching the web but only found Java results. |
Unfortunately I'm not familiar with the Go SDK but I'm guessing it might be a flag where you set the access token? |
I believe that would have to happen somewhere here: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The Other than that the usage limits are per API (also mentioned on the capping page) so unless you have a script spamming the Directory API I don't expect anyone to hit this limit / needing this feature. So.. time to close this issue? |
@TheWolfNL It is possible to set caps yourself, but Google also enforces certain caps out of the box (per IP) to prevent abuse. This provider can end up making a lot of requests to the Directory API if you're creating multiple groups and managing their membership. |
I can attest to the fact this provider can easily hit quota limits on the Directory API if you control a lot of groups. Wondering if |
The admin SDK supports setting arbitrary quotaUser values: https://developers.google.com/admin-sdk/directory/v1/parameters
If this isn't set, the consumer IP will be used which can lead to throttling.
Updating the provider to use a custom/random quota user on each request would reduce throttling.
The text was updated successfully, but these errors were encountered: