title: Access spreadsheets inside shared folder
body: <h2>Overview</h2>
  
  <ul>
  <li>I am creating a folder and spreadsheets using API I can access all files inside that folder using google spreadsheet API   </li>
  <li><strong>(problem)</strong> But then I upload the file from the front, Now this file can not be accessed via spreadsheet API, I have given full permission(owner) to the user. </li>
  </ul>
  
  <p>So basically the problem is that I want to let other user drop spreadsheets in my shared drive and want to access these files via python API </p>
  
  <blockquote>
    <p>error message "This operation is not supported for this document"</p>
  </blockquote>
  
  <p>JSON RESPONSE </p>
  
  <blockquote>
    <p>{
      "error": {
        "code": 403,
        "message": "The request is missing a valid API key.",
        "status": "PERMISSION_DENIED"
      }
    }</p>
  </blockquote>
  
  <h2>Background:</h2>
  
  <p>I am using python to create folders and sheets, and I wanted to share the folder for other users to update the spreadsheet files so I gave permissions to other users, but when they dropped the files in the drive I can access the file metadata but not the contents of the spreadsheets</p>
  
  <h2>Relevant Code:</h2>
  
  <p>`SCOPES =
      ['<a href="https://www.googleapis.com/auth/drive.appdata" rel="nofollow noreferrer">https://www.googleapis.com/auth/drive.appdata</a>','<a href="https://www.googleapis.com/auth/spreadsheets" rel="nofollow noreferrer">https://www.googleapis.com/auth/spreadsheets</a>', '<a href="https://www.googleapis.com/auth/drive" rel="nofollow noreferrer">https://www.googleapis.com/auth/drive</a>'] </p>
  
  <pre><code>sheet_service = build('sheets', 'v4', credentials=get_Service())
  drive_service = build('drive', 'v3',credentials=get_Service()) 
  
   def get_values(self,SAMPLE_SPREADSHEET_ID, SAMPLE_RANGE_NAME):
          sheet = sheet_service.spreadsheets()
          result = sheet.values().get(spreadsheetId=SAMPLE_SPREADSHEET_ID,
                                      range=SAMPLE_RANGE_NAME).execute()`
  
  
  Expected help &gt; bypass these permission restrictions
  </code></pre>
  
  <p>I have noticed something when I drop the file the sheet id is different from when I create it with API or from google drive</p>