title: "Insufficient Permission: Request had insufficient authentication scopes" even with most gerneral scope
body: <p>I'm trying to download a spreadsheet from my google drive. I'm following <a href="https://developers.google.com/drive/api/v3/manage-downloads" rel="noreferrer">this reference</a> and having problems with permission. I've started with <a href="https://www.googleapis.com/auth/drive.file" rel="noreferrer">https://www.googleapis.com/auth/drive.file</a> and got this</p>
  <pre><code>&quot;Insufficient Permission: Request had insufficient authentication scopes.&quot;
  </code></pre>
  <p>Reading through <a href="https://developers.google.com/drive/api/v3/about-auth" rel="noreferrer">the permission documentation</a> one reads the following for <a href="https://www.googleapis.com/auth/drive" rel="noreferrer">https://www.googleapis.com/auth/drive</a>.</p>
  <blockquote>
  <p>Full, permissive scope to access all of a user's files, excluding the Application Data folder.</p>
  </blockquote>
  <p>but even using this scope I still got the same error message.</p>
  <p>My code is this</p>
  <pre class="lang-python prettyprint-override"><code>
  import io
  import pickle
  from googleapiclient.discovery import build
  from google_auth_oauthlib.flow import InstalledAppFlow
  from google.auth.transport.requests import Request
  from googleapiclient.http import MediaIoBaseDownload
  
  file_id = &quot;FILE ID&quot;
  
  # If modifying these scopes, delete the file token.pickle.
  SCOPES = ['https://www.googleapis.com/auth/drive']
  
  with open('token.pickle', 'rb') as token:
     creds = pickle.load(token)
  
  service = build('drive', 'v3', credentials=creds)
  
  request = service.files().export_media(fileId=file_id, mimeType='application/vnd.openxmlformats-officedocument.spreadsheetml.sheet')
  
  fh = io.BytesIO()
  downloader = MediaIoBaseDownload(fh, request)
  done = False
  while done is False:
     status, done = downloader.next_chunk()
     print(&quot;Download %d%%.&quot; % int(status.progress() * 100))
  
  </code></pre>