Erock618
Erock618

Reputation: 503

Gdrive API error 403 for transferring ownership "Rate limit exceeded. User message: "Sorry, you have exceeded your sharing quota."

There is no documentation on any sharing quota. My limited understanding based on some searches is that it's in place to prevent some kind of spamming.

Google will not let a user transfer ownership of a file outside of the domain in which it is already owned, so I'm obviously not spamming people in my own private Gsuite domain.

Is there a way to lift this restriction? Is there any documentation on this?

Upvotes: 0

Views: 1145

Answers (1)

ale13
ale13

Reputation: 6052

As stated by this documentation here:

A sharingRateLimitExceeded error occurs when the user has reached a sharing limit. This error is often linked with an email limit.

In order to fix the error, you can try the following:

  • Do not send emails when sharing lot of files.

  • If one user is making a lot of requests on behalf of many users of a G Suite domain, consider a Service Account with authority delegation to impersonate the owner of each document to share (setting the quotaUser parameter).

Moreover, you can check the status of your quota for the Drive API by accessing the Google Cloud Project for it and checking the Quotas section:

GCP Quotas Drive API

Reference

Upvotes: 2

Related Questions