title: Drive API sharingRateLimitExceeded error
body: <p>We have an application that manages the sharing permission for Google Drive files and folders using the Drive API. When our application tries to update the sharing settings of certain files or folders we get a '<strong>sharing</strong>RateLimitExceeded' error: </p>
  
  <pre><code>Caused by: com.google.api.server.spi.response.UnauthorizedException: 403 FORBIDDEN {   "code" : 403,   "errors" : [ {
      "domain" : "global",
      "message" : "Rate limit exceeded. User message: \"These item(s) could not be shared because a rate limit was exceeded: SupportMenuItem.class\"",
      "reason" : "sharingRateLimitExceeded"   } ],   "message" : "Rate limit exceeded. User message: \"These item(s) could not be shared because a rate limit was exceeded: FILENAME\"" }
  </code></pre>
  
  <p>We already configured the API call to not send emails and our service account impersonates different users when changing permissions to avoid exceeding rate limits.</p>
  
  <p>How do we find out which sharing limit is being exceeded? And once we know which sharing limit is being exceeded, where can we find how high that sharing limit is? Is it a per minute sharing limit or a per day sharing limit? We need more information on the error so we can adjust our script so the sharing limits are not exceeded anymore. The information on the error in the <a href="https://developers.google.com/drive/v3/web/handle-errors#403_sharing_rate_limit_exceeded" rel="noreferrer">documentation</a> is to limited to be of any value to us.</p>