title: Google Drive API - Permissions - Rate limit exceeded. User message: Sorry, you have exceeded your sharing quota
body: <p>I've been programatically creating and sharing documents using the Google Drive API. Yesterday I started to receive this error message with every request to insert a permission:</p>
  
  <pre><code>com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
  {
    "code" : 403,
    "errors" : [ {
       "domain" : "usageLimits",
       "location" : "user.sharing",
       "locationType" : "other",
       "message" : "Rate limit exceeded. User message: \"Sorry, you have exceeded your sharing quota.\"",
       "reason" : "userRateLimitExceeded"
       } ],
    "message" : "Rate limit exceeded. User message: \"Sorry, you have exceeded your sharing quota.\""
  }
  </code></pre>
  
  <p>I can still programatically create documents, but the request to insert a permission always fails.</p>
  
  <p>This is being done through a Service Account, the idea being that the Service Account would manage these documents for an application and share with authorized users as required.</p>
  
  <p>The error started to occur after inserting somewhere around 50-100 permissions. I've done some research and it sounds like there may be a "feature" in the Google Drive API which limits the number of permissions that can be inserted. Is there some way around this limit?</p>
  
  <hr>
  
  <p>Update:</p>
  
  <p>For the record, I'm able to create exactly 51 permissions per day. Creating the 52nd permission always fails for a 24 hour period. Unfortunately this restriction renders the permissions API completely useless for Service Accounts.</p>