title: Google Drive API - Files stored in a GSuite Shared Drive (only) get a 404 error
body: <p>My application has scopes drive.file, drive.readonly and drive.metadata.readonly.
  Using <a href="https://github.com/googleapis/google-api-php-client" rel="nofollow noreferrer">https://github.com/googleapis/google-api-php-client</a>  v2.2.2</p>
  
  <p>It works fine fetching files when authenticated as a Google Drive user, but only when those files are owned by another user (or the same user).</p>
  
  <p>Files stored on a Shared Drive (G Suite Business feature) and shared with the user result in a 404 error:</p>
  
  <pre><code> "error": {
    "errors": [
     {
      "domain": "global",
      "reason": "notFound",
      "message": "File not found: 1gasqkgWcabla8sksT5FUtZGzlfIwGbc_aI4g2gl9bla.",
      "locationType": "parameter",
      "location": "fileId"
     }
    ],
    "code": 404,
    "message": "File not found: 1gasqkgWcabla8sksT5FUtZGzlfIwGbc_aI4g2gl9bla."
   }
  </code></pre>
  
  <p>I have verified that the file in question is indeed readable by that user via Drive/Docs etc.</p>
  
  <p>I have been into the API Console and checked the "Shared Drives support" under Drive UI integration - this made no difference.
  Neither did it help to add the wider 'drive' scope.</p>